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 TypeMethodDescriptionboolean
The symbol's default value e.g., a default parameter value for a function.Returns the Symbol's optional display name.int
getIndex()
Creates a copy of this symbol without the value so that the empty symbol can be stored.int
getName()
Returns the Symbol's name.getType()
Returns the Symbol's type.getValue()
Returns the value assigned to this Symbol.boolean
boolean
boolean
boolean
isFinal()
boolean
boolean
isLocal()
boolean
boolean
boolean
isPublic()
boolean
boolean
isStatic()
boolean
boolean
Returns true if this symbol is writable.makeCapturedSymbol
(String strName, ISymbolTable symbolTable, IScope scope) void
setDefaultValueExpression
(IExpression defaultValue) void
setDynamicSymbolTable
(ISymbolTable symTable) Assigns an optional symbol table so that the symbol can get/set its value dynamically e.g., via ThreadLocalSymbolTable.void
setIndex
(int iIndex) void
Sets the Symbol's type.void
Assigns a value to this Symbol.void
setValueIsBoxed
(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:
getIndex
in interfaceIReducedSymbol
- Specified by:
getIndex
in interfaceISymbol
-
setIndex
public void setIndex(int iIndex) -
canBeCaptured
public boolean canBeCaptured()- Specified by:
canBeCaptured
in interfaceISymbol
-
makeCapturedSymbol
- Specified by:
makeCapturedSymbol
in interfaceISymbol
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in interfaceIReducedSymbol
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceIReducedSymbol
-
getAnnotations
- Specified by:
getAnnotations
in interfaceIReducedSymbol
-
getName
Description copied from interface:ISymbol
Returns the Symbol's name.- Specified by:
getName
in interfaceIReducedSymbol
- Specified by:
getName
in interfaceISymbol
-
getDisplayName
Description copied from interface:ISymbol
Returns the Symbol's optional display name. If a display name is not assigned, returns the symbol's name.- Specified by:
getDisplayName
in interfaceIReducedSymbol
- Specified by:
getDisplayName
in interfaceISymbol
-
getFullDescription
- Specified by:
getFullDescription
in interfaceIReducedSymbol
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in interfaceIReducedSymbol
-
isInternal
public boolean isInternal()- Specified by:
isInternal
in interfaceIReducedSymbol
-
isProtected
public boolean isProtected()- Specified by:
isProtected
in interfaceIReducedSymbol
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceIReducedSymbol
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceIReducedSymbol
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfaceIReducedSymbol
-
isReified
public boolean isReified()- Specified by:
isReified
in interfaceIReducedSymbol
-
getScriptPart
- Specified by:
getScriptPart
in interfaceIReducedSymbol
-
getGosuClass
- Specified by:
getGosuClass
in interfaceIReducedSymbol
-
hasTypeVariables
public boolean hasTypeVariables()- Specified by:
hasTypeVariables
in interfaceIReducedSymbol
-
getSymbolClass
- Specified by:
getSymbolClass
in interfaceIReducedSymbol
-
getType
Description copied from interface:ISymbol
Returns the Symbol's type. -
setType
Description copied from interface:ISymbol
Sets the Symbol's type. -
getValue
Description copied from interface:ISymbol
Returns the value assigned to this Symbol. -
setValue
Description copied from interface:ISymbol
Assigns a value to this Symbol. -
getDefaultValueExpression
Description copied from interface:ISymbol
The symbol's default value e.g., a default parameter value for a function.- Specified by:
getDefaultValueExpression
in interfaceIReducedSymbol
- Specified by:
getDefaultValueExpression
in interfaceISymbol
-
setDefaultValueExpression
- Specified by:
setDefaultValueExpression
in interfaceISymbol
-
setDynamicSymbolTable
Description copied from interface:ISymbol
Assigns an optional symbol table so that the symbol can get/set its value dynamically e.g., via ThreadLocalSymbolTable.- Specified by:
setDynamicSymbolTable
in interfaceISymbol
-
hasDynamicSymbolTable
public boolean hasDynamicSymbolTable()- Specified by:
hasDynamicSymbolTable
in interfaceISymbol
-
getDynamicSymbolTable
- Specified by:
getDynamicSymbolTable
in interfaceISymbol
-
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
-
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
-
setValueIsBoxed
public void setValueIsBoxed(boolean b) Description copied from interface:ISymbol
Indicates that this symbol should use a reference rather than storing its value directly.- Specified by:
setValueIsBoxed
in interfaceISymbol
-
isValueBoxed
public boolean isValueBoxed()- Specified by:
isValueBoxed
in interfaceIReducedSymbol
- Specified by:
isValueBoxed
in interfaceISymbol
-
isLocal
public boolean isLocal() -
getModifierInfo
- Specified by:
getModifierInfo
in interfaceISymbol
-
createReducedSymbol
- Specified by:
createReducedSymbol
in interfaceISymbol
-