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
public class DynamicPropertySymbol extends AbstractDynamicSymbol implements IDynamicPropertySymbol
-
-
Field Summary
-
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
Constructors Constructor Description DynamicPropertySymbol(DynamicFunctionSymbol dfsGetterOrSetter, boolean bGetter)
DynamicPropertySymbol(DynamicPropertySymbol dps)
-
Method Summary
-
Methods inherited from class gw.internal.gosu.parser.AbstractDynamicSymbol
assignIndex, 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
-
-
-
-
Constructor Detail
-
DynamicPropertySymbol
public DynamicPropertySymbol(DynamicFunctionSymbol dfsGetterOrSetter, boolean bGetter)
-
DynamicPropertySymbol
public DynamicPropertySymbol(DynamicPropertySymbol dps)
-
-
Method Detail
-
getLightWeightReference
public ISymbol getLightWeightReference()
- Specified by:
getLightWeightReference
in interfaceISymbol
- Specified by:
getLightWeightReference
in classAbstractDynamicSymbol
-
getAssignableType
public IType getAssignableType()
-
getValue
public Object getValue()
Description copied from class:Symbol
Returns the value assigned to this Symbol.
-
getValueDirectly
public Object getValueDirectly()
- Overrides:
getValueDirectly
in classSymbol
-
setValue
public void setValue(Object value)
Description copied from class:Symbol
Assigns a value to this Symbol.
-
setValueDirectly
public void setValueDirectly(Object value)
- Overrides:
setValueDirectly
in classSymbol
-
isReadable
public boolean isReadable()
- Specified by:
isReadable
in interfaceIDynamicPropertySymbol
-
isWritable
public boolean isWritable()
- 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
public void setGetterDfs(IDynamicFunctionSymbol dfsGetter)
- Specified by:
setGetterDfs
in interfaceIDynamicPropertySymbol
-
getGetterDfs
public DynamicFunctionSymbol getGetterDfs()
- Specified by:
getGetterDfs
in interfaceIDynamicPropertySymbol
-
getImmediateGetterDfs
protected DynamicFunctionSymbol getImmediateGetterDfs()
-
setSetterDfs
public void setSetterDfs(IDynamicFunctionSymbol dfsSetter)
- Specified by:
setSetterDfs
in interfaceIDynamicPropertySymbol
-
getSetterDfs
public DynamicFunctionSymbol getSetterDfs()
- Specified by:
getSetterDfs
in interfaceIDynamicPropertySymbol
-
getImmediateSetterDfs
protected DynamicFunctionSymbol getImmediateSetterDfs()
-
setParent
protected void setParent(DynamicPropertySymbol dpsParent)
-
getParent
public DynamicPropertySymbol getParent()
- Specified by:
getParent
in interfaceIDynamicPropertySymbol
-
getFunction
public DynamicFunctionSymbol getFunction(String strFunctionName)
- Specified by:
getFunction
in interfaceIDynamicPropertySymbol
-
addMemberSymbols
public void addMemberSymbols(ICompilableTypeInternal gsClass)
-
setVarIdentifier
public void setVarIdentifier(String varIdentifier)
-
getVarIdentifier
public String getVarIdentifier()
- Specified by:
getVarIdentifier
in interfaceIDynamicPropertySymbol
-
getFullDescription
public String getFullDescription()
- Specified by:
getFullDescription
in interfaceIDynamicPropertySymbol
- Specified by:
getFullDescription
in interfaceIReducedSymbol
- Overrides:
getFullDescription
in classSymbol
-
getParameterizedVersion
public DynamicPropertySymbol getParameterizedVersion(IGosuClass gsClass)
- Specified by:
getParameterizedVersion
in interfaceIDynamicPropertySymbol
- Specified by:
getParameterizedVersion
in classAbstractDynamicSymbol
-
createReducedSymbol
public IReducedDynamicPropertySymbol createReducedSymbol()
- Specified by:
createReducedSymbol
in interfaceISymbol
- Overrides:
createReducedSymbol
in classSymbol
-
getPropertyInfo
public IPropertyInfo getPropertyInfo()
- Specified by:
getPropertyInfo
in interfaceIDynamicPropertySymbol
-
-