public interface ISymbol extends IHasType, IReducedSymbol
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeCaptured() |
IReducedSymbol |
createReducedSymbol() |
IExpression |
getDefaultValueExpression()
The symbol's default value e.g., a default parameter value for a function.
|
String |
getDisplayName()
Returns the Symbol's optional display name.
|
ISymbolTable |
getDynamicSymbolTable() |
int |
getIndex() |
ISymbol |
getLightWeightReference()
Creates a copy of this symbol without the value so that the empty symbol can be stored.
|
IModifierInfo |
getModifierInfo() |
String |
getName()
Returns the Symbol's name.
|
IType |
getType()
Returns the Symbol's type.
|
Object |
getValue()
Returns the value assigned to this Symbol.
|
boolean |
hasDynamicSymbolTable() |
boolean |
isLocal() |
boolean |
isValueBoxed() |
boolean |
isWritable()
Returns true if this symbol is writable.
|
ICapturedSymbol |
makeCapturedSymbol(String strName,
ISymbolTable symbolTable,
IScope scope) |
void |
setDefaultValueExpression(IExpression defaultValue) |
void |
setDynamicSymbolTable(ISymbolTable symTable)
Assigns an optional symbol table so that the symbol can get/set its value
dynamically e.g., via ThreadLocalSymbolTable.
|
void |
setType(IType type)
Sets the Symbol's type.
|
void |
setValue(Object value)
Assigns a value to this Symbol.
|
void |
setValueIsBoxed(boolean b)
Indicates that this symbol should use a reference rather than storing its value directly.
|
getAnnotations, getFullDescription, getGosuClass, getModifiers, getScriptPart, getSymbolClass, hasTypeVariables, isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isStaticString getName()
getName in interface IReducedSymbolString getDisplayName()
getDisplayName in interface IReducedSymbolIType getType()
getType in interface IHasTypegetType in interface IReducedSymbolvoid setType(IType type)
Object getValue()
void setValue(Object value)
IExpression getDefaultValueExpression()
getDefaultValueExpression in interface IReducedSymbolvoid setDefaultValueExpression(IExpression defaultValue)
void setDynamicSymbolTable(ISymbolTable symTable)
boolean hasDynamicSymbolTable()
ISymbolTable getDynamicSymbolTable()
ISymbol getLightWeightReference()
boolean isWritable()
void setValueIsBoxed(boolean b)
boolean isValueBoxed()
isValueBoxed in interface IReducedSymbolint getIndex()
getIndex in interface IReducedSymbolboolean canBeCaptured()
ICapturedSymbol makeCapturedSymbol(String strName, ISymbolTable symbolTable, IScope scope)
boolean isLocal()
IModifierInfo getModifierInfo()
IReducedSymbol createReducedSymbol()
Copyright © 2017. All rights reserved.