Class AbstractJavaAccessNode
- java.lang.Object
- 
- net.sourceforge.pmd.lang.ast.AbstractNode
- 
- 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
 
 public abstract class AbstractJavaAccessNode extends AbstractJavaNode implements AccessNode 
- 
- 
Field Summary- 
Fields inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNodeparser
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractJavaAccessNode(int i)AbstractJavaAccessNode(JavaParser parser, int i)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTAnnotationgetAnnotation(java.lang.String annotQualifiedName)Get specific annotaion on this node.java.util.List<ASTAnnotation>getDeclaredAnnotations()Get all annotations present on this node.intgetModifiers()booleanisAbstract()booleanisAnnotationPresent(java.lang.String annotQualifiedName)Checks whether the annotation is present on this node.booleanisAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames)Checks whether any annotation is present on this node.booleanisDefault()booleanisFinal()booleanisNative()booleanisPackagePrivate()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisStrictfp()booleanisSynchronized()booleanisTransient()booleanisVolatile()voidsetAbstract(boolean isAbstract)voidsetDefault(boolean isDefault)voidsetFinal(boolean isFinal)voidsetModifiers(int modifiers)voidsetNative(boolean isNative)voidsetPrivate(boolean isPrivate)voidsetProtected(boolean isProtected)voidsetPublic(boolean isPublic)voidsetStatic(boolean isStatic)voidsetStrictfp(boolean isStrictfp)voidsetSynchronized(boolean isSynchronized)voidsetTransient(boolean isTransient)voidsetVolatile(boolean isVolative)- 
Methods inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNodechildrenAccept, comment, comment, getScope, getXPathNodeName, jjtAccept, jjtClose, jjtOpen, setScope
 - 
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNodeappendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNodechildrenAccept, getScope, jjtAccept, setScope
 - 
Methods inherited from interface net.sourceforge.pmd.lang.ast.NodefindChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, 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- 
AbstractJavaAccessNodepublic AbstractJavaAccessNode(int i) 
 - 
AbstractJavaAccessNodepublic AbstractJavaAccessNode(JavaParser parser, int i) 
 
- 
 - 
Method Detail- 
getModifierspublic int getModifiers() - Specified by:
- getModifiersin interface- AccessNode
 
 - 
setModifierspublic void setModifiers(int modifiers) - Specified by:
- setModifiersin interface- AccessNode
 
 - 
isPublicpublic boolean isPublic() - Specified by:
- isPublicin interface- AccessNode
 
 - 
setPublicpublic void setPublic(boolean isPublic) - Specified by:
- setPublicin interface- AccessNode
 
 - 
isProtectedpublic boolean isProtected() - Specified by:
- isProtectedin interface- AccessNode
 
 - 
setProtectedpublic void setProtected(boolean isProtected) - Specified by:
- setProtectedin interface- AccessNode
 
 - 
isPrivatepublic boolean isPrivate() - Specified by:
- isPrivatein interface- AccessNode
 
 - 
setPrivatepublic void setPrivate(boolean isPrivate) - Specified by:
- setPrivatein interface- AccessNode
 
 - 
isAbstractpublic boolean isAbstract() - Specified by:
- isAbstractin interface- AccessNode
 
 - 
setAbstractpublic void setAbstract(boolean isAbstract) - Specified by:
- setAbstractin interface- AccessNode
 
 - 
isStaticpublic boolean isStatic() - Specified by:
- isStaticin interface- AccessNode
 
 - 
setStaticpublic void setStatic(boolean isStatic) - Specified by:
- setStaticin interface- AccessNode
 
 - 
isFinalpublic boolean isFinal() - Specified by:
- isFinalin interface- AccessNode
 
 - 
setFinalpublic void setFinal(boolean isFinal) - Specified by:
- setFinalin interface- AccessNode
 
 - 
isSynchronizedpublic boolean isSynchronized() - Specified by:
- isSynchronizedin interface- AccessNode
 
 - 
setSynchronizedpublic void setSynchronized(boolean isSynchronized) - Specified by:
- setSynchronizedin interface- AccessNode
 
 - 
isNativepublic boolean isNative() - Specified by:
- isNativein interface- AccessNode
 
 - 
setNativepublic void setNative(boolean isNative) - Specified by:
- setNativein interface- AccessNode
 
 - 
isTransientpublic boolean isTransient() - Specified by:
- isTransientin interface- AccessNode
 
 - 
setTransientpublic void setTransient(boolean isTransient) - Specified by:
- setTransientin interface- AccessNode
 
 - 
isVolatilepublic boolean isVolatile() - Specified by:
- isVolatilein interface- AccessNode
 
 - 
setVolatilepublic void setVolatile(boolean isVolative) - Specified by:
- setVolatilein interface- AccessNode
 
 - 
isStrictfppublic boolean isStrictfp() - Specified by:
- isStrictfpin interface- AccessNode
 
 - 
setStrictfppublic void setStrictfp(boolean isStrictfp) - Specified by:
- setStrictfpin interface- AccessNode
 
 - 
isDefaultpublic boolean isDefault() - Specified by:
- isDefaultin interface- AccessNode
 
 - 
setDefaultpublic void setDefault(boolean isDefault) - Specified by:
- setDefaultin interface- AccessNode
 
 - 
isPackagePrivatepublic boolean isPackagePrivate() - Specified by:
- isPackagePrivatein interface- AccessNode
 
 - 
getDeclaredAnnotationspublic java.util.List<ASTAnnotation> getDeclaredAnnotations() Description copied from interface:AnnotatableGet all annotations present on this node.- Specified by:
- getDeclaredAnnotationsin interface- Annotatable
- Returns:
- all annotations present on this node.
 
 - 
getAnnotationpublic ASTAnnotation getAnnotation(java.lang.String annotQualifiedName) Description copied from interface:AnnotatableGet specific annotaion on this node.- Specified by:
- getAnnotationin interface- Annotatable
- Parameters:
- annotQualifiedName- qulified name of the annotation.
- Returns:
- ASTAnnotaionnode if the annotation is present on this node, else- null
 
 - 
isAnnotationPresentpublic boolean isAnnotationPresent(java.lang.String annotQualifiedName) Description copied from interface:AnnotatableChecks whether the annotation is present on this node.- Specified by:
- isAnnotationPresentin interface- Annotatable
- Parameters:
- annotQualifiedName- qulified name of the annotation.
- Returns:
- trueif the annotation is present on this node, else- false
 
 - 
isAnyAnnotationPresentpublic boolean isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames) Description copied from interface:AnnotatableChecks whether any annotation is present on this node.- Specified by:
- isAnyAnnotationPresentin interface- Annotatable
- Parameters:
- annotQualifiedNames- collection that cotains qulified name of annotations.
- Returns:
- trueif any annotation is present on this node, else- false
 
 
- 
 
-