public class Symbol<T extends org.walkmod.javalang.ast.Node & org.walkmod.javalang.ast.SymbolDefinition> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
staticallyImported |
| Constructor and Description |
|---|
Symbol(String name,
SymbolType type,
T location) |
Symbol(String name,
SymbolType type,
T location,
ReferenceType referenceType) |
Symbol(String name,
SymbolType type,
T location,
ReferenceType referenceType,
boolean staticallyImported,
List<SymbolAction> actions) |
Symbol(String name,
SymbolType type,
T location,
ReferenceType referenceType,
SymbolAction action) |
Symbol(String name,
SymbolType type,
T location,
SymbolAction action) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<SymbolAction> |
getActions() |
Map<String,Object> |
getAttributes() |
Scope |
getInnerScope() |
T |
getLocation() |
String |
getName() |
ReferenceType |
getReferenceType() |
SymbolType |
getType() |
void |
invokeActions(SymbolTable table,
SymbolEvent event,
org.walkmod.javalang.ast.SymbolReference reference) |
boolean |
isStaticallyImported() |
void |
setInnerScope(Scope scope) |
void |
setLocation(T initNode) |
void |
setType(SymbolType type) |
String |
toString() |
public Symbol(String name, SymbolType type, T location)
public Symbol(String name, SymbolType type, T location, ReferenceType referenceType)
public Symbol(String name, SymbolType type, T location, ReferenceType referenceType, SymbolAction action)
public Symbol(String name, SymbolType type, T location, SymbolAction action)
public Symbol(String name, SymbolType type, T location, ReferenceType referenceType, boolean staticallyImported, List<SymbolAction> actions)
public void setInnerScope(Scope scope)
public boolean isStaticallyImported()
public ReferenceType getReferenceType()
public String getName()
public SymbolType getType()
public void setType(SymbolType type)
public T getLocation()
public void setLocation(T initNode)
public Scope getInnerScope()
public List<SymbolAction> getActions()
public void invokeActions(SymbolTable table, SymbolEvent event, org.walkmod.javalang.ast.SymbolReference reference) throws Exception
ExceptionCopyright © 2018. All rights reserved.