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,ASTCompactConstructorDeclaration,ASTLocalVariableDeclaration
@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
-
Fields inherited from interface net.sourceforge.pmd.lang.java.ast.AccessNode
ABSTRACT, DEFAULT, FINAL, NATIVE, NON_SEALED, PRIVATE, PROTECTED, PUBLIC, SEALED, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE
-
-
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 ASTAnnotationgetAnnotation(String binaryName)Returns a specific annotation on this node, or null if absent.List<ASTAnnotation>getDeclaredAnnotations()Get all annotations present on this node.intgetModifiers()Deprecated.booleanisAbstract()Deprecated.booleanisAnnotationPresent(String binaryName)Checks whether the annotation is present on this node.booleanisAnyAnnotationPresent(Collection<String> binaryNames)Checks whether any annotation is present on this node.booleanisDefault()Deprecated.booleanisFinal()Deprecated.booleanisNative()Deprecated.booleanisPackagePrivate()Deprecated.booleanisPrivate()Deprecated.booleanisProtected()Deprecated.booleanisPublic()Deprecated.booleanisStatic()Deprecated.booleanisStrictfp()Deprecated.booleanisSynchronized()Deprecated.booleanisTransient()Deprecated.booleanisVolatile()Deprecated.voidsetAbstract(boolean isAbstract)Deprecated.voidsetDefault(boolean isDefault)Deprecated.voidsetFinal(boolean isFinal)Deprecated.voidsetModifiers(int modifiers)Deprecated.voidsetNative(boolean isNative)Deprecated.voidsetPrivate(boolean isPrivate)Deprecated.voidsetProtected(boolean isProtected)Deprecated.voidsetPublic(boolean isPublic)Deprecated.voidsetStatic(boolean isStatic)Deprecated.voidsetStrictfp(boolean isStrictfp)Deprecated.voidsetSynchronized(boolean isSynchronized)Deprecated.voidsetTransient(boolean isTransient)Deprecated.voidsetVolatile(boolean isVolatile)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:
getModifiersin interfaceAccessNode
-
setModifiers
@InternalApi @Deprecated public void setModifiers(int modifiers)
Deprecated.- Specified by:
setModifiersin interfaceAccessNode
-
isPublic
public boolean isPublic()
Deprecated.- Specified by:
isPublicin interfaceAccessNode
-
setPublic
@InternalApi @Deprecated public void setPublic(boolean isPublic)
Deprecated.- Specified by:
setPublicin interfaceAccessNode
-
isProtected
public boolean isProtected()
Deprecated.- Specified by:
isProtectedin interfaceAccessNode
-
setProtected
@InternalApi @Deprecated public void setProtected(boolean isProtected)
Deprecated.- Specified by:
setProtectedin interfaceAccessNode
-
isPrivate
public boolean isPrivate()
Deprecated.- Specified by:
isPrivatein interfaceAccessNode
-
setPrivate
@InternalApi @Deprecated public void setPrivate(boolean isPrivate)
Deprecated.- Specified by:
setPrivatein interfaceAccessNode
-
isAbstract
public boolean isAbstract()
Deprecated.- Specified by:
isAbstractin interfaceAccessNode
-
setAbstract
@InternalApi @Deprecated public void setAbstract(boolean isAbstract)
Deprecated.- Specified by:
setAbstractin interfaceAccessNode
-
isStatic
public boolean isStatic()
Deprecated.- Specified by:
isStaticin interfaceAccessNode
-
setStatic
@InternalApi @Deprecated public void setStatic(boolean isStatic)
Deprecated.- Specified by:
setStaticin interfaceAccessNode
-
isFinal
public boolean isFinal()
Deprecated.- Specified by:
isFinalin interfaceAccessNode
-
setFinal
@InternalApi @Deprecated public void setFinal(boolean isFinal)
Deprecated.- Specified by:
setFinalin interfaceAccessNode
-
isSynchronized
public boolean isSynchronized()
Deprecated.- Specified by:
isSynchronizedin interfaceAccessNode
-
setSynchronized
@InternalApi @Deprecated public void setSynchronized(boolean isSynchronized)
Deprecated.- Specified by:
setSynchronizedin interfaceAccessNode
-
isNative
public boolean isNative()
Deprecated.- Specified by:
isNativein interfaceAccessNode
-
setNative
@InternalApi @Deprecated public void setNative(boolean isNative)
Deprecated.- Specified by:
setNativein interfaceAccessNode
-
isTransient
public boolean isTransient()
Deprecated.- Specified by:
isTransientin interfaceAccessNode
-
setTransient
@InternalApi @Deprecated public void setTransient(boolean isTransient)
Deprecated.- Specified by:
setTransientin interfaceAccessNode
-
isVolatile
public boolean isVolatile()
Deprecated.- Specified by:
isVolatilein interfaceAccessNode
-
setVolatile
@InternalApi @Deprecated public void setVolatile(boolean isVolatile)
Deprecated.- Specified by:
setVolatilein interfaceAccessNode
-
isStrictfp
public boolean isStrictfp()
Deprecated.- Specified by:
isStrictfpin interfaceAccessNode
-
setStrictfp
@InternalApi @Deprecated public void setStrictfp(boolean isStrictfp)
Deprecated.- Specified by:
setStrictfpin interfaceAccessNode
-
isDefault
public boolean isDefault()
Deprecated.- Specified by:
isDefaultin interfaceAccessNode
-
setDefault
@InternalApi @Deprecated public void setDefault(boolean isDefault)
Deprecated.- Specified by:
setDefaultin interfaceAccessNode
-
isPackagePrivate
public boolean isPackagePrivate()
Deprecated.- Specified by:
isPackagePrivatein interfaceAccessNode
-
getDeclaredAnnotations
public List<ASTAnnotation> getDeclaredAnnotations()
Description copied from interface:AnnotatableGet all annotations present on this node.- Specified by:
getDeclaredAnnotationsin interfaceAnnotatable- Returns:
- all annotations present on this node.
-
getAnnotation
public ASTAnnotation getAnnotation(String binaryName)
Description copied from interface:AnnotatableReturns a specific annotation on this node, or null if absent.- Specified by:
getAnnotationin interfaceAnnotatable- Parameters:
binaryName- Binary name of the annotation type. Note: for now, canonical names are tolerated, this may be changed in PMD 7.
-
isAnnotationPresent
public boolean isAnnotationPresent(String binaryName)
Description copied from interface:AnnotatableChecks whether the annotation is present on this node.- Specified by:
isAnnotationPresentin interfaceAnnotatable- Parameters:
binaryName- Binary name of the annotation type. Note: for now, canonical names are tolerated, this may be changed in PMD 7.- Returns:
trueif the annotation is present on this node, elsefalse
-
isAnyAnnotationPresent
public boolean isAnyAnnotationPresent(Collection<String> binaryNames)
Description copied from interface:AnnotatableChecks whether any annotation is present on this node.- Specified by:
isAnyAnnotationPresentin interfaceAnnotatable- Parameters:
binaryNames- Collection that contains binary names of annotations. Note: for now, canonical names are tolerated, this may be changed in PMD 7.- Returns:
trueif any annotation is present on this node, elsefalse
-
-