Package gw.internal.gosu.parser
Class MemberFieldSymbol
java.lang.Object
gw.internal.gosu.parser.MemberFieldSymbol
- All Implemented Interfaces:
IHasType,IReducedSymbol,ISymbol
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe symbol's default value e.g., a default parameter value for a function.Returns the Symbol's optional display name.intgetIndex()Creates a copy of this symbol without the value so that the empty symbol can be stored.intgetName()Returns the Symbol's name.getType()Returns the Symbol's type.getValue()Returns the value assigned to this Symbol.booleanbooleanbooleanbooleanisFinal()booleanbooleanisLocal()booleanbooleanbooleanisPublic()booleanbooleanisStatic()booleanbooleanReturns true if this symbol is writable.makeCapturedSymbol(String strName, ISymbolTable symbolTable, IScope scope) voidsetDefaultValueExpression(IExpression defaultValue) voidsetDynamicSymbolTable(ISymbolTable symTable) Assigns an optional symbol table so that the symbol can get/set its value dynamically e.g., via ThreadLocalSymbolTable.voidsetIndex(int iIndex) voidSets the Symbol's type.voidAssigns a value to this Symbol.voidsetValueIsBoxed(boolean b) Indicates that this symbol should use a reference rather than storing its value directly.
-
Field Details
-
_index
private int _index -
_name
-
-
Constructor Details
-
MemberFieldSymbol
-
-
Method Details
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceIReducedSymbol- Specified by:
getIndexin interfaceISymbol
-
setIndex
public void setIndex(int iIndex) -
canBeCaptured
public boolean canBeCaptured()- Specified by:
canBeCapturedin interfaceISymbol
-
makeCapturedSymbol
- Specified by:
makeCapturedSymbolin interfaceISymbol
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfaceIReducedSymbol
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceIReducedSymbol
-
getAnnotations
- Specified by:
getAnnotationsin interfaceIReducedSymbol
-
getName
Description copied from interface:ISymbolReturns the Symbol's name.- Specified by:
getNamein interfaceIReducedSymbol- Specified by:
getNamein interfaceISymbol
-
getDisplayName
Description copied from interface:ISymbolReturns the Symbol's optional display name. If a display name is not assigned, returns the symbol's name.- Specified by:
getDisplayNamein interfaceIReducedSymbol- Specified by:
getDisplayNamein interfaceISymbol
-
getFullDescription
- Specified by:
getFullDescriptionin interfaceIReducedSymbol
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceIReducedSymbol
-
isInternal
public boolean isInternal()- Specified by:
isInternalin interfaceIReducedSymbol
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin interfaceIReducedSymbol
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceIReducedSymbol
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceIReducedSymbol
-
isFinal
public boolean isFinal()- Specified by:
isFinalin interfaceIReducedSymbol
-
isReified
public boolean isReified()- Specified by:
isReifiedin interfaceIReducedSymbol
-
getScriptPart
- Specified by:
getScriptPartin interfaceIReducedSymbol
-
getGosuClass
- Specified by:
getGosuClassin interfaceIReducedSymbol
-
hasTypeVariables
public boolean hasTypeVariables()- Specified by:
hasTypeVariablesin interfaceIReducedSymbol
-
getSymbolClass
- Specified by:
getSymbolClassin interfaceIReducedSymbol
-
getType
Description copied from interface:ISymbolReturns the Symbol's type. -
setType
Description copied from interface:ISymbolSets the Symbol's type. -
getValue
Description copied from interface:ISymbolReturns the value assigned to this Symbol. -
setValue
Description copied from interface:ISymbolAssigns a value to this Symbol. -
getDefaultValueExpression
Description copied from interface:ISymbolThe symbol's default value e.g., a default parameter value for a function.- Specified by:
getDefaultValueExpressionin interfaceIReducedSymbol- Specified by:
getDefaultValueExpressionin interfaceISymbol
-
setDefaultValueExpression
- Specified by:
setDefaultValueExpressionin interfaceISymbol
-
setDynamicSymbolTable
Description copied from interface:ISymbolAssigns an optional symbol table so that the symbol can get/set its value dynamically e.g., via ThreadLocalSymbolTable.- Specified by:
setDynamicSymbolTablein interfaceISymbol
-
hasDynamicSymbolTable
public boolean hasDynamicSymbolTable()- Specified by:
hasDynamicSymbolTablein interfaceISymbol
-
getDynamicSymbolTable
- Specified by:
getDynamicSymbolTablein interfaceISymbol
-
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
-
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
-
setValueIsBoxed
public void setValueIsBoxed(boolean b) Description copied from interface:ISymbolIndicates that this symbol should use a reference rather than storing its value directly.- Specified by:
setValueIsBoxedin interfaceISymbol
-
isValueBoxed
public boolean isValueBoxed()- Specified by:
isValueBoxedin interfaceIReducedSymbol- Specified by:
isValueBoxedin interfaceISymbol
-
isLocal
public boolean isLocal() -
getModifierInfo
- Specified by:
getModifierInfoin interfaceISymbol
-
createReducedSymbol
- Specified by:
createReducedSymbolin interfaceISymbol
-