Package gw.internal.gosu.parser
Class ReadOnlySymbol
- java.lang.Object
-
- gw.internal.gosu.parser.Symbol
-
- gw.internal.gosu.parser.ReadOnlySymbol
-
- All Implemented Interfaces:
IFunctionSymbol
,IHasType
,IReducedSymbol
,ISymbol
public class ReadOnlySymbol extends Symbol
-
-
Field Summary
-
Fields inherited from class gw.internal.gosu.parser.Symbol
_bGlobal, _iIndex, _stackProvider, _symbolTable, _value, MEMBER_STACK_PROVIDER
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySymbol(String strName, IType type, IStackProvider provider, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISymbol
getLightWeightReference()
Creates a copy of this symbol without the value so that the empty symbol can be stored.boolean
isWritable()
Returns true if this symbol is writable.-
Methods inherited from class gw.internal.gosu.parser.Symbol
assignIndex, assignIndexInStack, canBeCaptured, createReducedSymbol, equals, getAnnotations, getDefaultValueExpression, getDisplayName, getDynamicSymbolTable, getFullDescription, getGosuClass, getIndex, getModifierInfo, getModifiers, getName, getScriptPart, getSignatureDescription, getSymbolClass, getType, getValue, getValueDirectly, hasDynamicSymbolTable, hasTypeVariables, invoke, isAbstract, isClassMember, isFinal, isFromJava, isHide, isImplicitlyInitialized, isInternal, isLocal, isOverride, isPrivate, isProtected, isPublic, isReified, isStackSymbol, isStatic, isValueBoxed, makeCapturedSymbol, renameAsErrantDuplicate, replaceModifierInfo, setAbstract, setClassMember, setDefaultValueExpression, setDynamicSymbolTable, setFinal, setHide, setIndex, setInternal, setModifierInfo, setModifiers, setName, setOverride, setPrivate, setProtected, setPublic, setReified, setStatic, setType, setValue, setValueDirectly, setValueIsBoxed, toString
-
-
-
-
Constructor Detail
-
ReadOnlySymbol
public ReadOnlySymbol(String strName, IType type, IStackProvider provider, Object value)
-
-
Method Detail
-
getLightWeightReference
public ISymbol getLightWeightReference()
Description copied from interface:ISymbol
Creates a copy of this symbol without the value so that the empty symbol can be stored.- Specified by:
getLightWeightReference
in interfaceISymbol
- Overrides:
getLightWeightReference
in classSymbol
-
isWritable
public boolean isWritable()
Description copied from interface:ISymbol
Returns true if this symbol is writable. An example of a symbol that is not writable is a readonly Property referenced as a symbol in a Gosu class.- Specified by:
isWritable
in interfaceISymbol
- Overrides:
isWritable
in classSymbol
-
-