public final class ConstructorDeclaration extends BodyDeclaration implements DocumentableNode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
ConstructorDeclaration() |
ConstructorDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
String name,
List<Parameter> parameters,
List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
String name,
List<Parameter> parameters,
List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
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() |
JavadocComment |
getJavaDoc() |
int |
getModifiers()
Return the modifiers of this member declaration.
|
String |
getName() |
NameExpr |
getNameExpr() |
List<Parameter> |
getParameters() |
List<NameExpr> |
getThrows() |
List<TypeParameter> |
getTypeParameters() |
void |
setBlock(BlockStmt block) |
void |
setJavaDoc(JavadocComment javadocComment) |
void |
setModifiers(int modifiers) |
void |
setName(String name) |
void |
setNameExpr(NameExpr name) |
void |
setParameters(List<Parameter> parameters) |
void |
setThrows(List<NameExpr> throws_) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
getAnnotations, setAnnotations
addOrphanComment, contains, equals, getAllContainedComments, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEndColumn, getEndLine, getOrphanComments, getParentNode, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setComment, setData, setEndColumn, setEndLine, setParentNode, toString
public ConstructorDeclaration()
public ConstructorDeclaration(int modifiers, String name)
public ConstructorDeclaration(int modifiers, List<AnnotationExpr> annotations, List<TypeParameter> typeParameters, String name, List<Parameter> parameters, List<NameExpr> throws_, BlockStmt block)
public ConstructorDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, int modifiers, List<AnnotationExpr> annotations, List<TypeParameter> typeParameters, String name, List<Parameter> parameters, List<NameExpr> throws_, BlockStmt block)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public BlockStmt getBlock()
public int getModifiers()
ModifierSet
public String getName()
public NameExpr getNameExpr()
public List<TypeParameter> getTypeParameters()
public void setBlock(BlockStmt block)
public void setModifiers(int modifiers)
public void setName(String name)
public void setJavaDoc(JavadocComment javadocComment)
setJavaDoc
in interface DocumentableNode
public void setNameExpr(NameExpr name)
public void setTypeParameters(List<TypeParameter> typeParameters)
public JavadocComment getJavaDoc()
getJavaDoc
in interface DocumentableNode
Copyright © 2007–2018. All rights reserved.