net.sourceforge.pmd.lang.ast.Node
, AccessNode
, Annotatable
, JavaNode
, TypeNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
AbstractAnyTypeDeclaration
, ASTFieldDeclaration
, ASTFormalParameter
public abstract class AbstractJavaAccessTypeNode extends AbstractJavaAccessNode implements TypeNode
Modifier and Type | Field | Description |
---|---|---|
protected JavaTypeDefinition |
typeDefinition |
Type definition, used to get the type of the node.
|
parser
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor | Description |
---|---|
AbstractJavaAccessTypeNode(int i) |
|
AbstractJavaAccessTypeNode(JavaParser parser,
int i) |
Modifier and Type | Method | Description |
---|---|---|
ASTAnnotation |
getAnnotation(java.lang.String annotQualifiedName) |
Get specific annotaion on this node.
|
java.util.List<ASTAnnotation> |
getDeclaredAnnotations() |
Get all annotations present on this node.
|
java.lang.Class<?> |
getType() |
Get the Java Class associated with this node.
|
JavaTypeDefinition |
getTypeDefinition() |
Get the TypeDefinition associated with this node.
|
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.
|
void |
setType(java.lang.Class<?> type) |
Set the Java Class associated with this node.
|
void |
setTypeDefinition(JavaTypeDefinition typeDefinition) |
Set the TypeDefinition associated with this node.
|
getModifiers, isAbstract, isDefault, isFinal, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setAbstract, setDefault, setFinal, setModifiers, setNative, setPrivate, setProtected, setPublic, setStatic, setStrictfp, setSynchronized, setTransient, setVolatile
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtAccept, 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, jjtAccept, 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
protected JavaTypeDefinition typeDefinition
public AbstractJavaAccessTypeNode(int i)
public AbstractJavaAccessTypeNode(JavaParser parser, int i)
public java.lang.Class<?> getType()
TypeNode
public void setType(java.lang.Class<?> type)
TypeNode
public JavaTypeDefinition getTypeDefinition()
TypeNode
getType()
.getTypeDefinition
in interface TypeNode
null
public void setTypeDefinition(JavaTypeDefinition typeDefinition)
TypeNode
setTypeDefinition
in interface TypeNode
typeDefinition
- A TypeDefinition objectpublic 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.