public final class ClassOrInterfaceDeclaration extends TypeDeclaration implements DocumentableNode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
ClassOrInterfaceDeclaration() |
ClassOrInterfaceDeclaration(int modifiers,
boolean isInterface,
String name) |
ClassOrInterfaceDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members) |
ClassOrInterfaceDeclaration(int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members) |
| 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.
|
List<ClassOrInterfaceType> |
getExtends() |
List<ClassOrInterfaceType> |
getImplements() |
JavadocComment |
getJavaDoc() |
List<TypeParameter> |
getTypeParameters() |
boolean |
isInterface() |
void |
setExtends(List<ClassOrInterfaceType> extendsList) |
void |
setImplements(List<ClassOrInterfaceType> implementsList) |
void |
setInterface(boolean interface_) |
void |
setJavaDoc(JavadocComment javadocComment) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
getMembers, getModifiers, getName, getNameExpr, setMembers, setModifiers, setName, setNameExprgetAnnotations, setAnnotationsaddOrphanComment, clone, 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 ClassOrInterfaceDeclaration()
public ClassOrInterfaceDeclaration(int modifiers,
boolean isInterface,
String name)
public ClassOrInterfaceDeclaration(int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members)
public ClassOrInterfaceDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic List<ClassOrInterfaceType> getExtends()
public List<ClassOrInterfaceType> getImplements()
public List<TypeParameter> getTypeParameters()
public boolean isInterface()
public void setExtends(List<ClassOrInterfaceType> extendsList)
extendsList - a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullpublic void setImplements(List<ClassOrInterfaceType> implementsList)
implementsList - a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullpublic void setInterface(boolean interface_)
public void setTypeParameters(List<TypeParameter> typeParameters)
typeParameters - a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullpublic void setJavaDoc(JavadocComment javadocComment)
setJavaDoc in interface DocumentableNodepublic JavadocComment getJavaDoc()
getJavaDoc in interface DocumentableNodeCopyright © 2007-2015. All Rights Reserved.