public final class ClassOrInterfaceType extends Type implements org.walkmod.merger.IdentificableNode, SymbolDefinition
| Constructor and Description |
|---|
ClassOrInterfaceType() |
ClassOrInterfaceType(ClassOrInterfaceType scope,
String name) |
ClassOrInterfaceType(ClassOrInterfaceType scope,
String name,
List<Type> typeArgs,
List<AnnotationExpr> annotations) |
ClassOrInterfaceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
ClassOrInterfaceType scope,
String name,
List<Type> typeArgs) |
ClassOrInterfaceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
ClassOrInterfaceType scope,
String name,
List<Type> typeArgs,
List<AnnotationExpr> annotations) |
ClassOrInterfaceType(String name) |
| 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.
|
boolean |
addBodyReference(SymbolReference bodyReference)
Adds a symbol reference to this definition.
|
boolean |
addUsage(SymbolReference usage)
Adds a usage reference to this definition and updates the definition in
that reference.
|
ClassOrInterfaceType |
clone() |
List<SymbolReference> |
getBodyReferences()
Returns the external references contained inside the body of this
definition.
|
List<Node> |
getChildren() |
Comparator<?> |
getIdentityComparator() |
String |
getName() |
ClassOrInterfaceType |
getScope() |
int |
getScopeLevel()
Returns the scope level where this definition is specified.
|
SymbolData |
getSymbolData()
Returns the symbol data related to a given node.
|
String |
getSymbolName()
Gets the symbol name
|
List<Type> |
getTypeArgs() |
List<SymbolReference> |
getUsages()
Returns the references that represent usages to that definition.
|
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setBodyReferences(List<SymbolReference> bodyReferences)
Sets the external references contained inside the body of this
definition.
|
void |
setName(String name) |
void |
setScope(ClassOrInterfaceType scope) |
void |
setScopeLevel(int scopeLevel)
Sets the scope level where this definition is specified.
|
void |
setSymbolData(SymbolData symbolData)
Sets the symbol data from a semantic analyzer.
|
void |
setTypeArgs(List<Type> typeArgs) |
void |
setUsages(List<SymbolReference> usages)
Sets the references that represent usages to that definition.
|
getAnnotations, getMethodDefinitions, getSymbolDefinition, getTypeDefinitions, getVariableDefinitions, setAnnotations, setSymbolDefinitioncheck, 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, updateReferencesfinalize, getClass, notify, notifyAll, wait, wait, waitgetMethodDefinitions, getTypeDefinitions, getVariableDefinitionspublic ClassOrInterfaceType()
public ClassOrInterfaceType(String name)
public ClassOrInterfaceType(ClassOrInterfaceType scope, String name)
public ClassOrInterfaceType(ClassOrInterfaceType scope, String name, List<Type> typeArgs, List<AnnotationExpr> annotations)
public ClassOrInterfaceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
ClassOrInterfaceType scope,
String name,
List<Type> typeArgs)
public ClassOrInterfaceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
ClassOrInterfaceType scope,
String name,
List<Type> typeArgs,
List<AnnotationExpr> annotations)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Typepublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic String getName()
public ClassOrInterfaceType getScope()
public void setName(String name)
public void setScope(ClassOrInterfaceType scope)
public Comparator<?> getIdentityComparator()
getIdentityComparator in interface org.walkmod.merger.IdentificableNodepublic SymbolData getSymbolData()
SymbolDataAwaregetSymbolData in interface SymbolDataAware<SymbolData>getSymbolData in class Typepublic void setSymbolData(SymbolData symbolData)
SymbolDataAwaresetSymbolData in interface SymbolDataAware<SymbolData>setSymbolData in class TypesymbolData - the symbol data.public List<SymbolReference> getUsages()
SymbolDefinitiongetUsages in interface SymbolDefinitionpublic List<SymbolReference> getBodyReferences()
SymbolDefinitiongetBodyReferences in interface SymbolDefinitionpublic void setUsages(List<SymbolReference> usages)
SymbolDefinitionsetUsages in interface SymbolDefinitionusages - references that represent usages to that definition.public void setBodyReferences(List<SymbolReference> bodyReferences)
SymbolDefinitionsetBodyReferences in interface SymbolDefinitionbodyReferences - external references contained inside the body of this
definition.public boolean addBodyReference(SymbolReference bodyReference)
SymbolDefinitionaddBodyReference in interface SymbolDefinitionbodyReference - the reference to add.public boolean addUsage(SymbolReference usage)
SymbolDefinitionaddUsage in interface SymbolDefinitionusage - reference to this definition.public int getScopeLevel()
SymbolDefinitiongetScopeLevel in interface SymbolDefinitionpublic void setScopeLevel(int scopeLevel)
SymbolDefinitionsetScopeLevel in interface SymbolDefinitionscopeLevel - the scope level where this definition is specified.public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Typepublic ClassOrInterfaceType clone() throws CloneNotSupportedException
clone in class TypeCloneNotSupportedExceptionpublic String getSymbolName()
SymbolDefinitiongetSymbolName in interface SymbolDefinitionCopyright © 2018. All rights reserved.