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) DynamicFunctionSymbol
private DynamicPropertySymbol
private IPropertyInfo
private String
Fields inherited from class gw.internal.gosu.parser.AbstractDynamicSymbol
_scriptPartId, _symTable
Fields 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 TypeMethodDescriptionvoid
addMemberSymbols
(ICompilableTypeInternal gsClass) void
private boolean
functionNamesEqual
(DynamicFunctionSymbol dfs, String strFunctionName) getFunction
(String strFunctionName) protected DynamicFunctionSymbol
protected DynamicFunctionSymbol
Creates 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.boolean
boolean
isFinal()
boolean
boolean
boolean
boolean
isPublic()
boolean
boolean
isStatic()
boolean
Returns true if this symbol is writable.void
setGetterDfs
(IDynamicFunctionSymbol dfsGetter) protected void
setParent
(DynamicPropertySymbol dpsParent) void
setSetterDfs
(IDynamicFunctionSymbol dfsSetter) void
Assigns a value to this Symbol.void
setValueDirectly
(Object value) void
setVarIdentifier
(String varIdentifier) Methods inherited from class gw.internal.gosu.parser.AbstractDynamicSymbol
assignIndex, getCompiledStatementDirectly, getGosuClass, getScriptPart, getSymbolTable, hasDynamicSymbolTable, hasTypeVariables, isFromJava, isLocal, setDynamicSymbolTable, setScriptPart
Methods 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.lang.parser.IDynamicSymbol
getGosuClass, getScriptPart
Methods inherited from interface gw.lang.parser.IFunctionSymbol
getModifiers, getSignatureDescription, invoke, isFromJava, isStackSymbol
Methods inherited from interface gw.lang.parser.IReducedSymbol
getAnnotations, getSymbolClass, getType, hasTypeVariables, isReified
Methods 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:ISymbol
Creates a copy of this symbol without the value so that the empty symbol can be stored.- Specified by:
getLightWeightReference
in interfaceISymbol
- Specified by:
getLightWeightReference
in classAbstractDynamicSymbol
-
getAssignableType
-
getValue
Description copied from class:Symbol
Returns the value assigned to this Symbol. -
getValueDirectly
- Overrides:
getValueDirectly
in classSymbol
-
setValue
Description copied from class:Symbol
Assigns a value to this Symbol. -
setValueDirectly
- Overrides:
setValueDirectly
in classSymbol
-
isReadable
public boolean isReadable()- Specified by:
isReadable
in interfaceIDynamicPropertySymbol
-
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
-
clearDebugInfo
public void clearDebugInfo()- Overrides:
clearDebugInfo
in classAbstractDynamicSymbol
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceIReducedSymbol
- Overrides:
isPublic
in classSymbol
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in interfaceIReducedSymbol
- Overrides:
isPrivate
in classSymbol
-
isInternal
public boolean isInternal()- Specified by:
isInternal
in interfaceIReducedSymbol
- Overrides:
isInternal
in classSymbol
-
isProtected
public boolean isProtected()- Specified by:
isProtected
in interfaceIReducedSymbol
- Overrides:
isProtected
in classSymbol
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in interfaceIDynamicPropertySymbol
- Specified by:
isStatic
in interfaceIReducedSymbol
- Overrides:
isStatic
in classSymbol
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceIReducedSymbol
- Overrides:
isAbstract
in classSymbol
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfaceIReducedSymbol
- Overrides:
isFinal
in classSymbol
-
setGetterDfs
- Specified by:
setGetterDfs
in interfaceIDynamicPropertySymbol
-
getGetterDfs
- Specified by:
getGetterDfs
in interfaceIDynamicPropertySymbol
-
getImmediateGetterDfs
-
setSetterDfs
- Specified by:
setSetterDfs
in interfaceIDynamicPropertySymbol
-
getSetterDfs
- Specified by:
getSetterDfs
in interfaceIDynamicPropertySymbol
-
getImmediateSetterDfs
-
setParent
-
getParent
- Specified by:
getParent
in interfaceIDynamicPropertySymbol
-
getFunction
- Specified by:
getFunction
in interfaceIDynamicPropertySymbol
-
functionNamesEqual
-
addMemberSymbols
-
setVarIdentifier
-
getVarIdentifier
- Specified by:
getVarIdentifier
in interfaceIDynamicPropertySymbol
-
getFullDescription
- Specified by:
getFullDescription
in interfaceIDynamicPropertySymbol
- Specified by:
getFullDescription
in interfaceIReducedSymbol
- Overrides:
getFullDescription
in classSymbol
-
getParameterizedVersion
- Specified by:
getParameterizedVersion
in interfaceIDynamicPropertySymbol
- Specified by:
getParameterizedVersion
in classAbstractDynamicSymbol
-
createReducedSymbol
- Specified by:
createReducedSymbol
in interfaceISymbol
- Overrides:
createReducedSymbol
in classSymbol
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceIDynamicPropertySymbol
-