public final class ConstructorDeclaration extends BodyDeclaration<ConstructorDeclaration> implements NodeWithJavaDoc<ConstructorDeclaration>, NodeWithDeclaration, NodeWithName<ConstructorDeclaration>, NodeWithModifiers<ConstructorDeclaration>, NodeWithParameters<ConstructorDeclaration>, NodeWithThrowable<ConstructorDeclaration>, NodeWithBlockStmt<ConstructorDeclaration>, NodeWithTypeParameters<ConstructorDeclaration>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION| Constructor and Description |
|---|
ConstructorDeclaration() |
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
NameExpr name,
NodeList<Parameter> parameters,
NodeList<ReferenceType<?>> throws_,
BlockStmt block) |
ConstructorDeclaration(EnumSet<Modifier> modifiers,
String name) |
ConstructorDeclaration(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
NameExpr name,
NodeList<Parameter> parameters,
NodeList<ReferenceType<?>> throws_,
BlockStmt block) |
getAnnotations, setAnnotationsaddOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitsetJavaDocCommentaddModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileaddAndGetParameter, addAndGetParameter, addAndGetParameter, addAndGetParameter, addParameter, addParameter, addParameter, addParameter, getParamByName, getParamByType, getParamByTypeaddThrows, addThrows, isThrows, isThrowscreateBodyisGenericaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentpublic ConstructorDeclaration()
public ConstructorDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, NameExpr name, NodeList<Parameter> parameters, NodeList<ReferenceType<?>> throws_, BlockStmt block)
public ConstructorDeclaration(Range range, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, NameExpr name, NodeList<Parameter> parameters, NodeList<ReferenceType<?>> throws_, BlockStmt block)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic EnumSet<Modifier> getModifiers()
getModifiers in interface NodeWithModifiers<ConstructorDeclaration>Modifierpublic String getName()
getName in interface NodeWithName<ConstructorDeclaration>public NameExpr getNameExpr()
public NodeList<Parameter> getParameters()
getParameters in interface NodeWithParameters<ConstructorDeclaration>public NodeList<ReferenceType<?>> getThrows()
getThrows in interface NodeWithThrowable<ConstructorDeclaration>public NodeList<TypeParameter> getTypeParameters()
getTypeParameters in interface NodeWithTypeParameters<ConstructorDeclaration>public ConstructorDeclaration setModifiers(EnumSet<Modifier> modifiers)
setModifiers in interface NodeWithModifiers<ConstructorDeclaration>public ConstructorDeclaration setName(String name)
setName in interface NodeWithName<ConstructorDeclaration>public ConstructorDeclaration setNameExpr(NameExpr name)
public ConstructorDeclaration setParameters(NodeList<Parameter> parameters)
setParameters in interface NodeWithParameters<ConstructorDeclaration>public ConstructorDeclaration setThrows(NodeList<ReferenceType<?>> throws_)
setThrows in interface NodeWithThrowable<ConstructorDeclaration>public ConstructorDeclaration setTypeParameters(NodeList<TypeParameter> typeParameters)
setTypeParameters in interface NodeWithTypeParameters<ConstructorDeclaration>public String getDeclarationAsString(boolean includingModifiers, boolean includingThrows, boolean includingParameterName)
getDeclarationAsString in interface NodeWithDeclarationincludingModifiers - flag to include the modifiers (if present) in the string producedincludingThrows - flag to include the throws clause (if present) in the string producedincludingParameterName - flag to include the parameter name (while the parameter type is always included) in the string producedpublic String getDeclarationAsString(boolean includingModifiers, boolean includingThrows)
NodeWithDeclarationNodeWithDeclaration.getDeclarationAsString(boolean, boolean, boolean) including
the parameters with both type and name.getDeclarationAsString in interface NodeWithDeclarationincludingModifiers - flag to include the modifiers (if present) in the string producedincludingThrows - flag to include the throws clause (if present) in the string producedpublic String getDeclarationAsString()
NodeWithDeclarationNodeWithDeclaration.getDeclarationAsString(boolean, boolean, boolean) including
the modifiers, the throws clause and the parameters with both type and name.getDeclarationAsString in interface NodeWithDeclarationpublic Optional<JavadocComment> getJavaDoc()
NodeWithJavaDocgetJavaDoc in interface NodeWithJavaDoc<ConstructorDeclaration>public BlockStmt getBody()
getBody in interface NodeWithBlockStmt<ConstructorDeclaration>public ConstructorDeclaration setBody(BlockStmt body)
setBody in interface NodeWithBlockStmt<ConstructorDeclaration>Copyright © 2007–2016. All rights reserved.