Class CapturedSymbol
java.lang.Object
gw.internal.gosu.parser.Symbol
gw.internal.gosu.parser.CapturedSymbol
- All Implemented Interfaces:
ICapturedSymbol, IFunctionSymbol, IHasType, IReducedSymbol, ISymbol
A symbol that has been captured from an outer lexical scope
-
Field Summary
FieldsFields inherited from class Symbol
_bGlobal, _iIndex, _stackProvider, _symbolTable, _value, MEMBER_STACK_PROVIDER -
Constructor Summary
ConstructorsConstructorDescriptionCapturedSymbol(String strName, ISymbol sym, IStackProvider stackProvider, IScope scope) -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of this symbol without the value so that the empty symbol can be stored.booleanisLocal()booleanReturns true if this symbol is writable.Methods inherited from class 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, 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, toStringMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IFunctionSymbol
getModifiers, getSignatureDescription, invoke, isFromJava, isStackSymbolMethods inherited from interface IReducedSymbol
getAnnotations, getFullDescription, getGosuClass, getScriptPart, getSymbolClass, hasTypeVariables, isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isStaticMethods inherited from interface ISymbol
canBeCaptured, createReducedSymbol, getDefaultValueExpression, getDisplayName, getDynamicSymbolTable, getIndex, getModifierInfo, getName, getType, getValue, hasDynamicSymbolTable, isValueBoxed, makeCapturedSymbol, setDefaultValueExpression, setDynamicSymbolTable, setType, setValue, setValueIsBoxed
-
Field Details
-
_referredSymbol
-
-
Constructor Details
-
CapturedSymbol
-
-
Method Details
-
getReferredSymbol
- Specified by:
getReferredSymbolin interfaceICapturedSymbol
-
getLightWeightReference
Description copied from interface:ISymbolCreates a copy of this symbol without the value so that the empty symbol can be stored.- Specified by:
getLightWeightReferencein interfaceISymbol- Overrides:
getLightWeightReferencein classSymbol
-
isLocal
-
isWritable
public boolean isWritable()Description copied from interface:ISymbolReturns 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:
isWritablein interfaceISymbol- Overrides:
isWritablein classSymbol
-