net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.ast.SignedNode<ASTFieldDeclaration>, AccessNode, Dimensionable, JavaNode, TypeNode, net.sourceforge.pmd.lang.symboltable.ScopedNodepublic class ASTFieldDeclaration extends AbstractJavaAccessTypeNode implements Dimensionable, net.sourceforge.pmd.lang.ast.SignedNode<ASTFieldDeclaration>
parserbeginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent| Constructor | Description |
|---|---|
ASTFieldDeclaration(int id) |
|
ASTFieldDeclaration(JavaParser p,
int id) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getArrayDepth() |
|
JavaFieldSignature |
getSignature() |
|
java.lang.String |
getVariableName() |
Gets the variable name of this field.
|
boolean |
isAnnotationMember() |
|
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, setVolatilegetType, getTypeDefinition, setType, setTypeDefinitionchildrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScopeappendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, 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, toStringfindChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserDatapublic ASTFieldDeclaration(int id)
public ASTFieldDeclaration(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept in interface JavaNodejjtAccept in class AbstractJavaNodepublic boolean isSyntacticallyPublic()
public boolean isPublic()
isPublic in interface AccessNodeisPublic in class AbstractJavaAccessNodepublic boolean isSyntacticallyStatic()
public boolean isStatic()
isStatic in interface AccessNodeisStatic in class AbstractJavaAccessNodepublic boolean isSyntacticallyFinal()
public boolean isFinal()
isFinal in interface AccessNodeisFinal in class AbstractJavaAccessNodepublic boolean isPrivate()
isPrivate in interface AccessNodeisPrivate in class AbstractJavaAccessNodepublic boolean isPackagePrivate()
isPackagePrivate in interface AccessNodeisPackagePrivate in class AbstractJavaAccessNodepublic boolean isProtected()
isProtected in interface AccessNodeisProtected in class AbstractJavaAccessNodepublic boolean isAnnotationMember()
public boolean isInterfaceMember()
public boolean isArray()
isArray in interface Dimensionablepublic int getArrayDepth()
getArrayDepth in interface Dimensionablepublic 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>Copyright © 2002–2018 PMD. All rights reserved.