Package gw.internal.gosu.parser
Class DynamicPropertySymbol
java.lang.Object
gw.internal.gosu.parser.Symbol
gw.internal.gosu.parser.AbstractDynamicSymbol
gw.internal.gosu.parser.DynamicPropertySymbol
- All Implemented Interfaces:
IDynamicPropertySymbol,IDynamicSymbol,IFunctionSymbol,IHasType,IReducedSymbol,ISymbol
- Direct Known Subclasses:
EnumAllValuesPropertySymbol,EnumCodePropertySymbol,EnumDisplayNamePropertySymbol,EnumNamePropertySymbol,EnumOrdinalPropertySymbol,EnumValuePropertySymbol,IntrinsicTypePropertySymbol,ParameterizedDynamicPropertySymbol
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) DynamicFunctionSymbol(package private) DynamicFunctionSymbolprivate DynamicPropertySymbolprivate IPropertyInfoprivate StringFields inherited from class gw.internal.gosu.parser.AbstractDynamicSymbol
_scriptPartId, _symTableFields inherited from class gw.internal.gosu.parser.Symbol
_bGlobal, _iIndex, _stackProvider, _symbolTable, _value, MEMBER_STACK_PROVIDER -
Constructor Summary
ConstructorsConstructorDescriptionDynamicPropertySymbol(DynamicFunctionSymbol dfsGetterOrSetter, boolean bGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemberSymbols(ICompilableTypeInternal gsClass) voidprivate booleanfunctionNamesEqual(DynamicFunctionSymbol dfs, String strFunctionName) getFunction(String strFunctionName) protected DynamicFunctionSymbolprotected DynamicFunctionSymbolCreates a copy of this symbol without the value so that the empty symbol can be stored.getParameterizedVersion(IGosuClass gsClass) getValue()Returns the value assigned to this Symbol.booleanbooleanisFinal()booleanbooleanbooleanbooleanisPublic()booleanbooleanisStatic()booleanReturns true if this symbol is writable.voidsetGetterDfs(IDynamicFunctionSymbol dfsGetter) protected voidsetParent(DynamicPropertySymbol dpsParent) voidsetSetterDfs(IDynamicFunctionSymbol dfsSetter) voidAssigns a value to this Symbol.voidsetValueDirectly(Object value) voidsetVarIdentifier(String varIdentifier) Methods inherited from class gw.internal.gosu.parser.AbstractDynamicSymbol
assignIndex, getCompiledStatementDirectly, getGosuClass, getScriptPart, getSymbolTable, hasDynamicSymbolTable, hasTypeVariables, isFromJava, isLocal, setDynamicSymbolTable, setScriptPartMethods inherited from class gw.internal.gosu.parser.Symbol
assignIndexInStack, canBeCaptured, equals, getAnnotations, getDefaultValueExpression, getDisplayName, getDynamicSymbolTable, getIndex, getModifierInfo, getModifiers, getName, getSignatureDescription, getSymbolClass, getType, invoke, isClassMember, isHide, isImplicitlyInitialized, isOverride, isReified, isStackSymbol, isValueBoxed, makeCapturedSymbol, renameAsErrantDuplicate, replaceModifierInfo, setAbstract, setClassMember, setDefaultValueExpression, setFinal, setHide, setIndex, setInternal, setModifierInfo, setModifiers, setName, setOverride, setPrivate, setProtected, setPublic, setReified, setStatic, setType, setValueIsBoxed, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.parser.IDynamicSymbol
getGosuClass, getScriptPartMethods inherited from interface gw.lang.parser.IFunctionSymbol
getModifiers, getSignatureDescription, invoke, isFromJava, isStackSymbolMethods inherited from interface gw.lang.parser.IReducedSymbol
getAnnotations, getSymbolClass, getType, hasTypeVariables, isReifiedMethods inherited from interface gw.lang.parser.ISymbol
canBeCaptured, getDefaultValueExpression, getDisplayName, getDynamicSymbolTable, getIndex, getModifierInfo, getName, getType, hasDynamicSymbolTable, isLocal, isValueBoxed, makeCapturedSymbol, setDefaultValueExpression, setDynamicSymbolTable, setType, setValueIsBoxed
-
Field Details
-
_dpsParent
-
_dfsGetter
DynamicFunctionSymbol _dfsGetter -
_dfsSetter
DynamicFunctionSymbol _dfsSetter -
_varIdentifier
-
_pi
-
-
Constructor Details
-
DynamicPropertySymbol
-
DynamicPropertySymbol
-
-
Method Details
-
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- Specified by:
getLightWeightReferencein classAbstractDynamicSymbol
-
getAssignableType
-
getValue
Description copied from class:SymbolReturns the value assigned to this Symbol. -
getValueDirectly
- Overrides:
getValueDirectlyin classSymbol
-
setValue
Description copied from class:SymbolAssigns a value to this Symbol. -
setValueDirectly
- Overrides:
setValueDirectlyin classSymbol
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceIDynamicPropertySymbol
-
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
-
clearDebugInfo
public void clearDebugInfo()- Overrides:
clearDebugInfoin classAbstractDynamicSymbol
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceIReducedSymbol- Overrides:
isPublicin classSymbol
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceIReducedSymbol- Overrides:
isPrivatein classSymbol
-
isInternal
public boolean isInternal()- Specified by:
isInternalin interfaceIReducedSymbol- Overrides:
isInternalin classSymbol
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin interfaceIReducedSymbol- Overrides:
isProtectedin classSymbol
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfaceIDynamicPropertySymbol- Specified by:
isStaticin interfaceIReducedSymbol- Overrides:
isStaticin classSymbol
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceIReducedSymbol- Overrides:
isAbstractin classSymbol
-
isFinal
public boolean isFinal()- Specified by:
isFinalin interfaceIReducedSymbol- Overrides:
isFinalin classSymbol
-
setGetterDfs
- Specified by:
setGetterDfsin interfaceIDynamicPropertySymbol
-
getGetterDfs
- Specified by:
getGetterDfsin interfaceIDynamicPropertySymbol
-
getImmediateGetterDfs
-
setSetterDfs
- Specified by:
setSetterDfsin interfaceIDynamicPropertySymbol
-
getSetterDfs
- Specified by:
getSetterDfsin interfaceIDynamicPropertySymbol
-
getImmediateSetterDfs
-
setParent
-
getParent
- Specified by:
getParentin interfaceIDynamicPropertySymbol
-
getFunction
- Specified by:
getFunctionin interfaceIDynamicPropertySymbol
-
functionNamesEqual
-
addMemberSymbols
-
setVarIdentifier
-
getVarIdentifier
- Specified by:
getVarIdentifierin interfaceIDynamicPropertySymbol
-
getFullDescription
- Specified by:
getFullDescriptionin interfaceIDynamicPropertySymbol- Specified by:
getFullDescriptionin interfaceIReducedSymbol- Overrides:
getFullDescriptionin classSymbol
-
getParameterizedVersion
- Specified by:
getParameterizedVersionin interfaceIDynamicPropertySymbol- Specified by:
getParameterizedVersionin classAbstractDynamicSymbol
-
createReducedSymbol
- Specified by:
createReducedSymbolin interfaceISymbol- Overrides:
createReducedSymbolin classSymbol
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceIDynamicPropertySymbol
-