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:
net.sourceforge.pmd.lang.ast.Node,AccessNode,Annotatable,JavaNode,net.sourceforge.pmd.lang.symboltable.ScopedNode
- Direct Known Subclasses:
AbstractJavaAccessTypeNode,AbstractMethodLikeNode,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
-
-
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 annotQualifiedName)Get specific annotaion on this node.List<ASTAnnotation>getDeclaredAnnotations()Get all annotations present on this node.intgetModifiers()Deprecated.booleanisAbstract()Deprecated.booleanisAnnotationPresent(String annotQualifiedName)Checks whether the annotation is present on this node.booleanisAnyAnnotationPresent(Collection<String> annotQualifiedNames)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 isVolative)Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
childrenAccept, comment, comment, 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, 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, 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, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
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 isVolative)
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 annotQualifiedName)
Description copied from interface:AnnotatableGet specific annotaion on this node.- Specified by:
getAnnotationin interfaceAnnotatable- Parameters:
annotQualifiedName- qulified name of the annotation.- Returns:
ASTAnnotaionnode if the annotation is present on this node, elsenull
-
isAnnotationPresent
public boolean isAnnotationPresent(String annotQualifiedName)
Description copied from interface:AnnotatableChecks whether the annotation is present on this node.- Specified by:
isAnnotationPresentin interfaceAnnotatable- Parameters:
annotQualifiedName- qulified name of the annotation.- Returns:
trueif the annotation is present on this node, elsefalse
-
isAnyAnnotationPresent
public boolean isAnyAnnotationPresent(Collection<String> annotQualifiedNames)
Description copied from interface:AnnotatableChecks whether any annotation is present on this node.- Specified by:
isAnyAnnotationPresentin interfaceAnnotatable- Parameters:
annotQualifiedNames- collection that cotains qulified name of annotations.- Returns:
trueif any annotation is present on this node, elsefalse
-
-