net.sourceforge.pmd.lang.ast.Node
, net.sourceforge.pmd.lang.ast.SignedNode<ASTFieldDeclaration>
, AccessNode
, Annotatable
, Dimensionable
, JavaNode
, TypeNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
public class ASTFieldDeclaration extends AbstractJavaAccessTypeNode implements Dimensionable, net.sourceforge.pmd.lang.ast.SignedNode<ASTFieldDeclaration>
typeDefinition
parser
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor | Description |
---|---|
ASTFieldDeclaration(int id) |
|
ASTFieldDeclaration(JavaParser p,
int id) |
Modifier and Type | Method | Description |
---|---|---|
ASTAnnotation |
getAnnotation(java.lang.String annotQualifiedName) |
Get specific annotaion on this node.
|
int |
getArrayDepth() |
|
java.util.List<ASTAnnotation> |
getDeclaredAnnotations() |
Get all annotations present on this node.
|
JavaFieldSignature |
getSignature() |
|
java.lang.String |
getVariableName() |
Gets the variable name of this field.
|
boolean |
isAnnotationMember() |
|
boolean |
isAnnotationPresent(java.lang.String annotQualifiedName) |
Checks whether the annotation is present on this node.
|
boolean |
isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames) |
Checks whether any annotation is present on this node.
|
boolean |
isArray() |
|
boolean |
isFinal() |
|
boolean |
isInterfaceMember() |
|
boolean |
isPackagePrivate() |
|
boolean |
isPrivate() |
|
boolean |
isProtected() |
|
boolean |
isPublic() |
|
boolean |
isStatic() |
|
boolean |
isSyntacticallyFinal() |
|
boolean |
isSyntacticallyPublic() |
|
boolean |
isSyntacticallyStatic() |
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
getModifiers, isAbstract, isDefault, isNative, isStrictfp, isSynchronized, isTransient, isVolatile, setAbstract, setDefault, setFinal, setModifiers, setNative, setPrivate, setProtected, setPublic, setStatic, setStrictfp, setSynchronized, setTransient, setVolatile
getType, getTypeDefinition, setType, setTypeDefinition
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScope
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
childrenAccept, getScope, setScope
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
public ASTFieldDeclaration(int id)
public ASTFieldDeclaration(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class AbstractJavaNode
public boolean isSyntacticallyPublic()
public boolean isPublic()
isPublic
in interface AccessNode
isPublic
in class AbstractJavaAccessNode
public boolean isSyntacticallyStatic()
public boolean isStatic()
isStatic
in interface AccessNode
isStatic
in class AbstractJavaAccessNode
public boolean isSyntacticallyFinal()
public boolean isFinal()
isFinal
in interface AccessNode
isFinal
in class AbstractJavaAccessNode
public boolean isPrivate()
isPrivate
in interface AccessNode
isPrivate
in class AbstractJavaAccessNode
public boolean isPackagePrivate()
isPackagePrivate
in interface AccessNode
isPackagePrivate
in class AbstractJavaAccessNode
public boolean isProtected()
isProtected
in interface AccessNode
isProtected
in class AbstractJavaAccessNode
public boolean isAnnotationMember()
public boolean isInterfaceMember()
public boolean isArray()
isArray
in interface Dimensionable
public int getArrayDepth()
getArrayDepth
in interface Dimensionable
public java.lang.String getVariableName()
null
if
the child node is not found.public JavaFieldSignature getSignature()
getSignature
in interface net.sourceforge.pmd.lang.ast.SignedNode<ASTFieldDeclaration>
public java.util.List<ASTAnnotation> getDeclaredAnnotations()
Annotatable
getDeclaredAnnotations
in interface Annotatable
public ASTAnnotation getAnnotation(java.lang.String annotQualifiedName)
Annotatable
getAnnotation
in interface Annotatable
annotQualifiedName
- qulified name of the annotation.ASTAnnotaion
node if the annotation is present on this node, else null
public boolean isAnnotationPresent(java.lang.String annotQualifiedName)
Annotatable
isAnnotationPresent
in interface Annotatable
annotQualifiedName
- qulified name of the annotation.true
if the annotation is present on this node, else false
public boolean isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames)
Annotatable
isAnyAnnotationPresent
in interface Annotatable
annotQualifiedNames
- collection that cotains qulified name of annotations.true
if any annotation is present on this node, else false
Copyright © 2002–2018 PMD. All rights reserved.