Class InitializerAssignment
- java.lang.Object
-
- gw.internal.gosu.parser.ParsedElement
-
- gw.internal.gosu.parser.Statement
-
- gw.internal.gosu.parser.expressions.InitializerAssignment
-
- All Implemented Interfaces:
IInitializerAssignment,IParsedElement,IStatement
public final class InitializerAssignment extends Statement implements IInitializerAssignment
-
-
Field Summary
Fields Modifier and Type Field Description private IType_ownerTypeprivate IPropertyInfo_piprivate java.lang.String_propertyNameprivate Expression_rhs-
Fields inherited from class gw.internal.gosu.parser.Statement
VOID_RETURN_VALUE
-
Fields inherited from class gw.internal.gosu.parser.ParsedElement
_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE
-
-
Constructor Summary
Constructors Constructor Description InitializerAssignment(IType ownerType, java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddAll(java.lang.Object contextValue, IPropertyInfo pi)java.lang.Objectexecute()Execute this statement.voidexecute(java.lang.Object contextValue)protected ITerminalStatementgetLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)ITypegetOwnerType()IPropertyInfogetPropertyInfo()java.lang.StringgetPropertyName()ExpressiongetRhs()private java.lang.ObjectgetValue(IPropertyInfo pi)private voidputAll(java.lang.Object contextValue, IPropertyInfo pi)voidsetPropertyInfo(IPropertyInfo propertyInfo)voidsetRhs(Expression rhs)java.lang.StringtoString()Subclasses should return a String representing the parsed statement.-
Methods inherited from class gw.internal.gosu.parser.Statement
execute, getExcludedReturnTypeElements, getLeastSignificant, getLeastSignificantTerminalStatement, getReturnType, hasContent, isNoOp, setParent
-
Methods inherited from class gw.internal.gosu.parser.ParsedElement
addExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isCompileTimeConstant, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setSynthetic, shouldClearParseInfo, visit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.parser.IParsedElement
addExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParent, visit
-
Methods inherited from interface gw.lang.parser.IStatement
execute, getLeastSignificantTerminalStatement, hasContent
-
-
-
-
Field Detail
-
_ownerType
private IType _ownerType
-
_propertyName
private java.lang.String _propertyName
-
_rhs
private Expression _rhs
-
_pi
private IPropertyInfo _pi
-
-
Constructor Detail
-
InitializerAssignment
public InitializerAssignment(IType ownerType, java.lang.String propertyName)
-
-
Method Detail
-
getOwnerType
public IType getOwnerType()
-
getPropertyName
public java.lang.String getPropertyName()
- Specified by:
getPropertyNamein interfaceIInitializerAssignment
-
toString
public java.lang.String toString()
Description copied from class:StatementSubclasses should return a String representing the parsed statement.
-
getRhs
public Expression getRhs()
- Specified by:
getRhsin interfaceIInitializerAssignment
-
setRhs
public void setRhs(Expression rhs)
-
getLeastSignificantTerminalStatement_internal
protected ITerminalStatement getLeastSignificantTerminalStatement_internal(boolean[] bAbsolute)
- Specified by:
getLeastSignificantTerminalStatement_internalin classStatement
-
execute
public java.lang.Object execute()
Description copied from interface:IStatementExecute this statement.- Specified by:
executein interfaceIStatement- Overrides:
executein classStatement
-
execute
public void execute(java.lang.Object contextValue)
-
getPropertyInfo
public IPropertyInfo getPropertyInfo()
- Specified by:
getPropertyInfoin interfaceIInitializerAssignment
-
putAll
private void putAll(java.lang.Object contextValue, IPropertyInfo pi)
-
addAll
private void addAll(java.lang.Object contextValue, IPropertyInfo pi)
-
getValue
private java.lang.Object getValue(IPropertyInfo pi)
-
setPropertyInfo
public void setPropertyInfo(IPropertyInfo propertyInfo)
-
-