public abstract class Type extends Node implements SymbolDataAware<SymbolData>, SymbolReference
| Constructor and Description |
|---|
Type() |
Type(int beginLine,
int beginColumn,
int endLine,
int endColumn) |
Type(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<AnnotationExpr> annotations) |
Type(List<AnnotationExpr> annotation) |
| Modifier and Type | Method and Description |
|---|---|
abstract Type |
clone() |
List<AnnotationExpr> |
getAnnotations() |
List<Node> |
getChildren() |
Map<String,List<SymbolDefinition>> |
getMethodDefinitions()
Gets the available methods
|
SymbolData |
getSymbolData()
Returns the symbol data related to a given node.
|
SymbolDefinition |
getSymbolDefinition() |
Map<String,SymbolDefinition> |
getTypeDefinitions()
Gets the available variables
|
Map<String,SymbolDefinition> |
getVariableDefinitions()
Gets the available variables
|
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setAnnotations(List<AnnotationExpr> annotations) |
void |
setSymbolData(SymbolData symbolData)
Sets the symbol data from a semantic analyzer.
|
void |
setSymbolDefinition(SymbolDefinition symbolDefinition) |
accept, accept, check, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, removeChild, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic Type()
public Type(List<AnnotationExpr> annotation)
public Type(int beginLine,
int beginColumn,
int endLine,
int endColumn)
public Type(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<AnnotationExpr> annotations)
public List<Node> getChildren()
getChildren in class Nodepublic List<AnnotationExpr> getAnnotations()
public void setAnnotations(List<AnnotationExpr> annotations)
public SymbolData getSymbolData()
SymbolDataAwaregetSymbolData in interface SymbolDataAware<SymbolData>public void setSymbolData(SymbolData symbolData)
SymbolDataAwaresetSymbolData in interface SymbolDataAware<SymbolData>symbolData - the symbol data.public SymbolDefinition getSymbolDefinition()
getSymbolDefinition in interface SymbolReferencepublic void setSymbolDefinition(SymbolDefinition symbolDefinition)
setSymbolDefinition in interface SymbolReferencepublic boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic abstract Type clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionpublic Map<String,SymbolDefinition> getVariableDefinitions()
ScopeAwaregetVariableDefinitions in interface ScopeAwarepublic Map<String,List<SymbolDefinition>> getMethodDefinitions()
ScopeAwaregetMethodDefinitions in interface ScopeAwarepublic Map<String,SymbolDefinition> getTypeDefinitions()
ScopeAwaregetTypeDefinitions in interface ScopeAwareCopyright © 2018. All rights reserved.