public final class ClassOrInterfaceDeclaration extends TypeDeclaration
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)
Deprecated.
prefer using Range objects.
|
ClassOrInterfaceDeclaration(int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members) |
ClassOrInterfaceDeclaration(Range range,
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() |
List<TypeParameter> |
getTypeParameters() |
boolean |
isInterface() |
void |
setExtends(List<ClassOrInterfaceType> extendsList) |
void |
setImplements(List<ClassOrInterfaceType> implementsList) |
void |
setInterface(boolean interface_) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
getJavaDoc, getMembers, getModifiers, getName, getNameExpr, setMembers, setModifiers, setName, setNameExprgetAnnotations, setAnnotationsaddOrphanComment, 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, 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)
@Deprecated 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 ClassOrInterfaceDeclaration(Range range, 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 nullCopyright © 2007–2016. All rights reserved.