Class AbstractJavaAccessNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<JavaNode>
-
- net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
-
- net.sourceforge.pmd.lang.java.ast.AbstractJavaAccessNode
-
- All Implemented Interfaces:
Node
,AccessNode
,Annotatable
,JavaNode
,ScopedNode
- Direct Known Subclasses:
AbstractJavaAccessTypeNode
,AbstractMethodLikeNode
,ASTLocalVariableDeclaration
,ASTRecordConstructorDeclaration
@Deprecated @InternalApi public abstract class AbstractJavaAccessNode extends AbstractJavaNode implements AccessNode
Deprecated.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
parser
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaAccessNode(int i)
Deprecated.AbstractJavaAccessNode(JavaParser parser, int i)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ASTAnnotation
getAnnotation(String annotQualifiedName)
Get specific annotaion on this node.List<ASTAnnotation>
getDeclaredAnnotations()
Get all annotations present on this node.int
getModifiers()
Deprecated.boolean
isAbstract()
Deprecated.boolean
isAnnotationPresent(String annotQualifiedName)
Checks whether the annotation is present on this node.boolean
isAnyAnnotationPresent(Collection<String> annotQualifiedNames)
Checks whether any annotation is present on this node.boolean
isDefault()
Deprecated.boolean
isFinal()
Deprecated.boolean
isNative()
Deprecated.boolean
isPackagePrivate()
Deprecated.boolean
isPrivate()
Deprecated.boolean
isProtected()
Deprecated.boolean
isPublic()
Deprecated.boolean
isStatic()
Deprecated.boolean
isStrictfp()
Deprecated.boolean
isSynchronized()
Deprecated.boolean
isTransient()
Deprecated.boolean
isVolatile()
Deprecated.void
setAbstract(boolean isAbstract)
Deprecated.void
setDefault(boolean isDefault)
Deprecated.void
setFinal(boolean isFinal)
Deprecated.void
setModifiers(int modifiers)
Deprecated.void
setNative(boolean isNative)
Deprecated.void
setPrivate(boolean isPrivate)
Deprecated.void
setProtected(boolean isProtected)
Deprecated.void
setPublic(boolean isPublic)
Deprecated.void
setStatic(boolean isStatic)
Deprecated.void
setStrictfp(boolean isStrictfp)
Deprecated.void
setSynchronized(boolean isSynchronized)
Deprecated.void
setTransient(boolean isTransient)
Deprecated.void
setVolatile(boolean isVolative)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
childrenAccept, comment, comment, getRoot, getScope, getXPathNodeName, jjtAccept, jjtClose, jjtOpen, setScope
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
children, childrenAccept, getChild, getParent, getRoot, jjtAccept, setScope
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode
getScope
-
-
-
-
Constructor Detail
-
AbstractJavaAccessNode
@Deprecated @InternalApi public AbstractJavaAccessNode(int i)
Deprecated.
-
AbstractJavaAccessNode
@Deprecated @InternalApi public AbstractJavaAccessNode(JavaParser parser, int i)
Deprecated.
-
-
Method Detail
-
getModifiers
public int getModifiers()
Deprecated.- Specified by:
getModifiers
in interfaceAccessNode
-
setModifiers
@InternalApi @Deprecated public void setModifiers(int modifiers)
Deprecated.- Specified by:
setModifiers
in interfaceAccessNode
-
isPublic
public boolean isPublic()
Deprecated.- Specified by:
isPublic
in interfaceAccessNode
-
setPublic
@InternalApi @Deprecated public void setPublic(boolean isPublic)
Deprecated.- Specified by:
setPublic
in interfaceAccessNode
-
isProtected
public boolean isProtected()
Deprecated.- Specified by:
isProtected
in interfaceAccessNode
-
setProtected
@InternalApi @Deprecated public void setProtected(boolean isProtected)
Deprecated.- Specified by:
setProtected
in interfaceAccessNode
-
isPrivate
public boolean isPrivate()
Deprecated.- Specified by:
isPrivate
in interfaceAccessNode
-
setPrivate
@InternalApi @Deprecated public void setPrivate(boolean isPrivate)
Deprecated.- Specified by:
setPrivate
in interfaceAccessNode
-
isAbstract
public boolean isAbstract()
Deprecated.- Specified by:
isAbstract
in interfaceAccessNode
-
setAbstract
@InternalApi @Deprecated public void setAbstract(boolean isAbstract)
Deprecated.- Specified by:
setAbstract
in interfaceAccessNode
-
isStatic
public boolean isStatic()
Deprecated.- Specified by:
isStatic
in interfaceAccessNode
-
setStatic
@InternalApi @Deprecated public void setStatic(boolean isStatic)
Deprecated.- Specified by:
setStatic
in interfaceAccessNode
-
isFinal
public boolean isFinal()
Deprecated.- Specified by:
isFinal
in interfaceAccessNode
-
setFinal
@InternalApi @Deprecated public void setFinal(boolean isFinal)
Deprecated.- Specified by:
setFinal
in interfaceAccessNode
-
isSynchronized
public boolean isSynchronized()
Deprecated.- Specified by:
isSynchronized
in interfaceAccessNode
-
setSynchronized
@InternalApi @Deprecated public void setSynchronized(boolean isSynchronized)
Deprecated.- Specified by:
setSynchronized
in interfaceAccessNode
-
isNative
public boolean isNative()
Deprecated.- Specified by:
isNative
in interfaceAccessNode
-
setNative
@InternalApi @Deprecated public void setNative(boolean isNative)
Deprecated.- Specified by:
setNative
in interfaceAccessNode
-
isTransient
public boolean isTransient()
Deprecated.- Specified by:
isTransient
in interfaceAccessNode
-
setTransient
@InternalApi @Deprecated public void setTransient(boolean isTransient)
Deprecated.- Specified by:
setTransient
in interfaceAccessNode
-
isVolatile
public boolean isVolatile()
Deprecated.- Specified by:
isVolatile
in interfaceAccessNode
-
setVolatile
@InternalApi @Deprecated public void setVolatile(boolean isVolative)
Deprecated.- Specified by:
setVolatile
in interfaceAccessNode
-
isStrictfp
public boolean isStrictfp()
Deprecated.- Specified by:
isStrictfp
in interfaceAccessNode
-
setStrictfp
@InternalApi @Deprecated public void setStrictfp(boolean isStrictfp)
Deprecated.- Specified by:
setStrictfp
in interfaceAccessNode
-
isDefault
public boolean isDefault()
Deprecated.- Specified by:
isDefault
in interfaceAccessNode
-
setDefault
@InternalApi @Deprecated public void setDefault(boolean isDefault)
Deprecated.- Specified by:
setDefault
in interfaceAccessNode
-
isPackagePrivate
public boolean isPackagePrivate()
Deprecated.- Specified by:
isPackagePrivate
in interfaceAccessNode
-
getDeclaredAnnotations
public List<ASTAnnotation> getDeclaredAnnotations()
Description copied from interface:Annotatable
Get all annotations present on this node.- Specified by:
getDeclaredAnnotations
in interfaceAnnotatable
- Returns:
- all annotations present on this node.
-
getAnnotation
public ASTAnnotation getAnnotation(String annotQualifiedName)
Description copied from interface:Annotatable
Get specific annotaion on this node.- Specified by:
getAnnotation
in interfaceAnnotatable
- Parameters:
annotQualifiedName
- qulified name of the annotation.- Returns:
ASTAnnotaion
node if the annotation is present on this node, elsenull
-
isAnnotationPresent
public boolean isAnnotationPresent(String annotQualifiedName)
Description copied from interface:Annotatable
Checks whether the annotation is present on this node.- Specified by:
isAnnotationPresent
in interfaceAnnotatable
- Parameters:
annotQualifiedName
- qulified name of the annotation.- Returns:
true
if the annotation is present on this node, elsefalse
-
isAnyAnnotationPresent
public boolean isAnyAnnotationPresent(Collection<String> annotQualifiedNames)
Description copied from interface:Annotatable
Checks whether any annotation is present on this node.- Specified by:
isAnyAnnotationPresent
in interfaceAnnotatable
- Parameters:
annotQualifiedNames
- collection that cotains qulified name of annotations.- Returns:
true
if any annotation is present on this node, elsefalse
-
-