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 Modifier and Type Field Description (package private) DynamicFunctionSymbol_dfsGetter(package private) DynamicFunctionSymbol_dfsSetterprivate DynamicPropertySymbol_dpsParentprivate IPropertyInfo_piprivate java.lang.String_varIdentifier-
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, 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 Detail
-
_dpsParent
private DynamicPropertySymbol _dpsParent
-
_dfsGetter
DynamicFunctionSymbol _dfsGetter
-
_dfsSetter
DynamicFunctionSymbol _dfsSetter
-
_varIdentifier
private java.lang.String _varIdentifier
-
_pi
private IPropertyInfo _pi
-
-
Constructor Detail
-
DynamicPropertySymbol
public DynamicPropertySymbol(DynamicFunctionSymbol dfsGetterOrSetter, boolean bGetter)
-
DynamicPropertySymbol
public DynamicPropertySymbol(DynamicPropertySymbol dps)
-
-
Method Detail
-
getLightWeightReference
public ISymbol 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
public IType getAssignableType()
-
getValue
public java.lang.Object getValue()
Description copied from class:SymbolReturns the value assigned to this Symbol.
-
getValueDirectly
public java.lang.Object getValueDirectly()
- Overrides:
getValueDirectlyin classSymbol
-
setValue
public void setValue(java.lang.Object value)
Description copied from class:SymbolAssigns a value to this Symbol.
-
setValueDirectly
public void setValueDirectly(java.lang.Object value)
- 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
public void setGetterDfs(IDynamicFunctionSymbol dfsGetter)
- Specified by:
setGetterDfsin interfaceIDynamicPropertySymbol
-
getGetterDfs
public DynamicFunctionSymbol getGetterDfs()
- Specified by:
getGetterDfsin interfaceIDynamicPropertySymbol
-
getImmediateGetterDfs
protected DynamicFunctionSymbol getImmediateGetterDfs()
-
setSetterDfs
public void setSetterDfs(IDynamicFunctionSymbol dfsSetter)
- Specified by:
setSetterDfsin interfaceIDynamicPropertySymbol
-
getSetterDfs
public DynamicFunctionSymbol getSetterDfs()
- Specified by:
getSetterDfsin interfaceIDynamicPropertySymbol
-
getImmediateSetterDfs
protected DynamicFunctionSymbol getImmediateSetterDfs()
-
setParent
protected void setParent(DynamicPropertySymbol dpsParent)
-
getParent
public DynamicPropertySymbol getParent()
- Specified by:
getParentin interfaceIDynamicPropertySymbol
-
getFunction
public DynamicFunctionSymbol getFunction(java.lang.String strFunctionName)
- Specified by:
getFunctionin interfaceIDynamicPropertySymbol
-
functionNamesEqual
private boolean functionNamesEqual(DynamicFunctionSymbol dfs, java.lang.String strFunctionName)
-
addMemberSymbols
public void addMemberSymbols(ICompilableTypeInternal gsClass)
-
setVarIdentifier
public void setVarIdentifier(java.lang.String varIdentifier)
-
getVarIdentifier
public java.lang.String getVarIdentifier()
- Specified by:
getVarIdentifierin interfaceIDynamicPropertySymbol
-
getFullDescription
public java.lang.String getFullDescription()
- Specified by:
getFullDescriptionin interfaceIDynamicPropertySymbol- Specified by:
getFullDescriptionin interfaceIReducedSymbol- Overrides:
getFullDescriptionin classSymbol
-
getParameterizedVersion
public DynamicPropertySymbol getParameterizedVersion(IGosuClass gsClass)
- Specified by:
getParameterizedVersionin interfaceIDynamicPropertySymbol- Specified by:
getParameterizedVersionin classAbstractDynamicSymbol
-
createReducedSymbol
public IReducedDynamicPropertySymbol createReducedSymbol()
- Specified by:
createReducedSymbolin interfaceISymbol- Overrides:
createReducedSymbolin classSymbol
-
getPropertyInfo
public IPropertyInfo getPropertyInfo()
- Specified by:
getPropertyInfoin interfaceIDynamicPropertySymbol
-
-