public abstract class TypeDeclaration extends BodyDeclaration implements NamedNode, DocumentableNode, NodeWithModifiers
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
TypeDeclaration() |
TypeDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<AnnotationExpr> annotations,
int modifiers,
String name,
List<BodyDeclaration> members)
Deprecated.
prefer using Range objects.
|
TypeDeclaration(int modifiers,
String name) |
TypeDeclaration(List<AnnotationExpr> annotations,
int modifiers,
String name,
List<BodyDeclaration> members) |
TypeDeclaration(Range range,
List<AnnotationExpr> annotations,
int modifiers,
String name,
List<BodyDeclaration> members) |
Modifier and Type | Method and Description |
---|---|
JavadocComment |
getJavaDoc()
Gets the JavaDoc for this node.
|
List<BodyDeclaration> |
getMembers() |
int |
getModifiers()
Return the modifiers of this type declaration.
|
String |
getName() |
NameExpr |
getNameExpr() |
void |
setMembers(List<BodyDeclaration> members) |
void |
setModifiers(int modifiers) |
void |
setName(String name) |
void |
setNameExpr(NameExpr nameExpr) |
getAnnotations, setAnnotations
accept, accept, addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEnd, getEndColumn, getEndLine, getOrphanComments, getParentNode, getRange, hasComment, hashCode, isPositionedAfter, isPositionedAfter, isPositionedBefore, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBeginColumn, setBeginLine, setComment, setData, setEnd, setEndColumn, setEndLine, setParentNode, setRange, toString, toStringWithoutComments
public TypeDeclaration()
public TypeDeclaration(int modifiers, String name)
public TypeDeclaration(List<AnnotationExpr> annotations, int modifiers, String name, List<BodyDeclaration> members)
@Deprecated public TypeDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, List<AnnotationExpr> annotations, int modifiers, String name, List<BodyDeclaration> members)
public TypeDeclaration(Range range, List<AnnotationExpr> annotations, int modifiers, String name, List<BodyDeclaration> members)
public final List<BodyDeclaration> getMembers()
public final int getModifiers()
getModifiers
in interface NodeWithModifiers
ModifierSet
public void setMembers(List<BodyDeclaration> members)
public final void setModifiers(int modifiers)
public final void setName(String name)
public final void setNameExpr(NameExpr nameExpr)
public final NameExpr getNameExpr()
public JavadocComment getJavaDoc()
DocumentableNode
getJavaDoc
in interface DocumentableNode
Copyright © 2007–2016. All rights reserved.