public final class ClassOrInterfaceDeclaration extends TypeDeclaration
| Constructor and Description |
|---|
ClassOrInterfaceDeclaration() |
ClassOrInterfaceDeclaration(int modifiers,
boolean isInterface,
String name) |
ClassOrInterfaceDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members) |
ClassOrInterfaceDeclaration(JavadocComment javaDoc,
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.
|
ClassOrInterfaceDeclaration |
clone() |
List<Node> |
getChildren() |
List<ClassOrInterfaceType> |
getExtends() |
List<ClassOrInterfaceType> |
getImplements() |
Map<String,SymbolDefinition> |
getTypeDefinitions()
Gets the available variables
|
List<TypeParameter> |
getTypeParameters() |
boolean |
isInterface() |
void |
merge(TypeDeclaration remoteTypeDeclaration,
org.walkmod.merger.MergeEngine configuration) |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setExtends(List<ClassOrInterfaceType> extendsList) |
void |
setImplements(List<ClassOrInterfaceType> implementsList) |
void |
setInterface(boolean interface_) |
void |
setTypeParameters(List<TypeParameter> typeParameters) |
addBodyReference, addUsage, getBodyReferences, getIdentityComparator, getMembers, getMethodDefinitions, getModifiers, getName, getScopeLevel, getSymbolData, getSymbolName, getUsages, getVariableDefinitions, setBodyReferences, setMembers, setModifiers, setName, setScopeLevel, setSymbolData, setUsagesgetAnnotations, getJavaDoc, merge, setAnnotations, setJavaDoccheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic ClassOrInterfaceDeclaration()
public ClassOrInterfaceDeclaration(int modifiers,
boolean isInterface,
String name)
public ClassOrInterfaceDeclaration(JavadocComment javaDoc, 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,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
boolean isInterface,
String name,
List<TypeParameter> typeParameters,
List<ClassOrInterfaceType> extendsList,
List<ClassOrInterfaceType> implementsList,
List<BodyDeclaration> members)
public boolean removeChild(Node child)
removeChild in class TypeDeclarationpublic List<Node> getChildren()
getChildren in class TypeDeclarationpublic <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)
public void setImplements(List<ClassOrInterfaceType> implementsList)
public void setInterface(boolean interface_)
public void setTypeParameters(List<TypeParameter> typeParameters)
public void merge(TypeDeclaration remoteTypeDeclaration, org.walkmod.merger.MergeEngine configuration)
merge in interface org.walkmod.merger.Mergeable<TypeDeclaration>merge in class TypeDeclarationpublic boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class TypeDeclarationpublic ClassOrInterfaceDeclaration clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionpublic Map<String,SymbolDefinition> getTypeDefinitions()
ScopeAwaregetTypeDefinitions in interface ScopeAwaregetTypeDefinitions in class TypeDeclarationCopyright © 2018. All rights reserved.