net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.ast.QualifiableNode, net.sourceforge.pmd.lang.ast.SignedNode<ASTMethodOrConstructorDeclaration>, AccessNode, Annotatable, ASTMethodOrConstructorDeclaration, JavaNode, JavaQualifiableNode, MethodLikeNode, net.sourceforge.pmd.lang.symboltable.ScopedNodepublic class ASTConstructorDeclaration extends AbstractMethodOrConstructorDeclaration
MethodLikeNode.MethodLikeKindparser| Constructor | Description |
|---|---|
ASTConstructorDeclaration(int id) |
|
ASTConstructorDeclaration(JavaParser p,
int id) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsComment() |
|
ASTAnnotation |
getAnnotation(java.lang.String annotQualifiedName) |
Get specific annotaion on this node.
|
java.util.List<ASTAnnotation> |
getDeclaredAnnotations() |
Get all annotations present on this node.
|
ASTFormalParameters |
getFormalParameters() |
|
MethodLikeNode.MethodLikeKind |
getKind() |
Returns a token indicating whether this node is a lambda
expression or a method or constructor declaration.
|
int |
getParameterCount() |
|
ASTFormalParameters |
getParameters() |
Deprecated.
to be removed with PMD 7.0.0 - use getFormalParameters() instead
|
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.
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
void |
setContainsComment() |
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, setVolatilechildrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScopegetQualifiedName, setQualifiedNamegetSignatureappendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, 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, toStringgetModifiers, 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, setVolatilechildrenAccept, getScope, setScopegetQualifiedNamefindChildNodesWithXPath, 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, setUserDatapublic ASTConstructorDeclaration(int id)
public ASTConstructorDeclaration(JavaParser p, int id)
public MethodLikeNode.MethodLikeKind getKind()
MethodLikeNodepublic java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept in interface JavaNodejjtAccept in class AbstractJavaNodepublic boolean containsComment()
public void setContainsComment()
@Deprecated public ASTFormalParameters getParameters()
public int getParameterCount()
public ASTFormalParameters getFormalParameters()
public java.util.List<ASTAnnotation> getDeclaredAnnotations()
AnnotatablegetDeclaredAnnotations in interface Annotatablepublic ASTAnnotation getAnnotation(java.lang.String annotQualifiedName)
AnnotatablegetAnnotation in interface AnnotatableannotQualifiedName - qulified name of the annotation.ASTAnnotaion node if the annotation is present on this node, else nullpublic boolean isAnnotationPresent(java.lang.String annotQualifiedName)
AnnotatableisAnnotationPresent in interface AnnotatableannotQualifiedName - qulified name of the annotation.true if the annotation is present on this node, else falsepublic boolean isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames)
AnnotatableisAnyAnnotationPresent in interface AnnotatableannotQualifiedNames - collection that cotains qulified name of annotations.true if any annotation is present on this node, else falseCopyright © 2002–2018 PMD. All rights reserved.