public final class InitializerDeclaration extends BodyDeclaration<InitializerDeclaration> implements NodeWithJavaDoc<InitializerDeclaration>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
InitializerDeclaration() |
InitializerDeclaration(boolean isStatic,
BlockStmt block) |
InitializerDeclaration(Range range,
boolean isStatic,
BlockStmt block) |
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() |
Optional<JavadocComment> |
getJavaDoc()
Gets the JavaDoc for this node.
|
boolean |
isStatic() |
InitializerDeclaration |
setBlock(BlockStmt block) |
InitializerDeclaration |
setStatic(boolean isStatic) |
getAnnotations, setAnnotations
addOrphanComment, 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, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setJavaDocComment
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent
public InitializerDeclaration()
public InitializerDeclaration(boolean isStatic, 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 boolean isStatic()
public InitializerDeclaration setBlock(BlockStmt block)
public InitializerDeclaration setStatic(boolean isStatic)
public Optional<JavadocComment> getJavaDoc()
NodeWithJavaDoc
getJavaDoc
in interface NodeWithJavaDoc<InitializerDeclaration>
Copyright © 2007–2016. All rights reserved.