public final class ConstructorDeclaration extends BodyDeclaration implements DocumentableNode, WithDeclaration
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
ConstructorDeclaration() |
ConstructorDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
BlockStmt |
getBlock() |
java.lang.String |
getDeclarationAsString()
As
WithDeclaration.getDeclarationAsString(boolean, boolean) including
both the modifiers and the throws clause. |
java.lang.String |
getDeclarationAsString(boolean includingModifiers,
boolean includingThrows)
The declaration returned has this schema:
[accessSpecifier] className ([paramlist])
[throws exceptionsList]
|
JavadocComment |
getJavaDoc() |
int |
getModifiers()
Return the modifiers of this member declaration.
|
java.lang.String |
getName() |
NameExpr |
getNameExpr() |
java.util.List<Parameter> |
getParameters() |
java.util.List<NameExpr> |
getThrows() |
java.util.List<TypeParameter> |
getTypeParameters() |
void |
setBlock(BlockStmt block) |
void |
setJavaDoc(JavadocComment javadocComment) |
void |
setModifiers(int modifiers) |
void |
setName(java.lang.String name) |
void |
setNameExpr(NameExpr name) |
void |
setParameters(java.util.List<Parameter> parameters) |
void |
setThrows(java.util.List<NameExpr> throws_) |
void |
setTypeParameters(java.util.List<TypeParameter> typeParameters) |
getAnnotations, setAnnotationsaddOrphanComment, contains, equals, getAllContainedComments, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEndColumn, getEndLine, getOrphanComments, getParentNode, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setComment, setData, setEndColumn, setEndLine, setParentNode, toString, toStringWithoutCommentspublic ConstructorDeclaration()
public ConstructorDeclaration(int modifiers,
java.lang.String name)
public ConstructorDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block)
public ConstructorDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic BlockStmt getBlock()
public int getModifiers()
ModifierSetpublic java.lang.String getName()
public NameExpr getNameExpr()
public java.util.List<Parameter> getParameters()
public java.util.List<NameExpr> getThrows()
public java.util.List<TypeParameter> getTypeParameters()
public void setBlock(BlockStmt block)
public void setModifiers(int modifiers)
public void setName(java.lang.String name)
public void setJavaDoc(JavadocComment javadocComment)
setJavaDoc in interface DocumentableNodepublic void setNameExpr(NameExpr name)
public void setParameters(java.util.List<Parameter> parameters)
public void setThrows(java.util.List<NameExpr> throws_)
public void setTypeParameters(java.util.List<TypeParameter> typeParameters)
public JavadocComment getJavaDoc()
getJavaDoc in interface DocumentableNodepublic java.lang.String getDeclarationAsString(boolean includingModifiers,
boolean includingThrows)
getDeclarationAsString in interface WithDeclarationincludingModifiers - flag to include the modifiers (if present) in the string producedincludingThrows - flag to include the throws clause (if present) in the string producedpublic java.lang.String getDeclarationAsString()
WithDeclarationWithDeclaration.getDeclarationAsString(boolean, boolean) including
both the modifiers and the throws clause.getDeclarationAsString in interface WithDeclarationCopyright © 2007-2015. All Rights Reserved.