Package org.eclipse.epsilon.eol.dom
Class AssignmentStatement
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
-
- org.eclipse.epsilon.eol.dom.Statement
-
- org.eclipse.epsilon.eol.dom.AssignmentStatement
-
- All Implemented Interfaces:
ModuleElement
,ICompilableModuleElement
,IExecutableModuleElement
- Direct Known Subclasses:
SpecialAssignmentStatement
public class AssignmentStatement extends Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
targetExpression
protected Expression
valueExpression
-
Constructor Summary
Constructors Constructor Description AssignmentStatement()
AssignmentStatement(Expression targetExpression, Expression valueExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IEolVisitor visitor)
void
build(AST cst, IModule module)
void
compile(IEolCompilationContext context)
java.lang.Object
execute(IEolContext context)
Expression
getTargetExpression()
protected java.lang.Object
getValueEquivalent(java.lang.Object source, java.lang.Object value, IEolContext context)
Expression
getValueExpression()
protected Expression
getValueExpression(AST cst, Expression expression)
void
setTargetExpression(Expression targetExpression)
void
setValueExpression(Expression valueExpression)
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Statement
toStatementBlock
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
targetExpression
protected Expression targetExpression
-
valueExpression
protected Expression valueExpression
-
-
Constructor Detail
-
AssignmentStatement
public AssignmentStatement()
-
AssignmentStatement
public AssignmentStatement(Expression targetExpression, Expression valueExpression)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getValueExpression
protected Expression getValueExpression(AST cst, Expression expression)
- Parameters:
cst
-- Returns:
- Since:
- 2.2
-
execute
public java.lang.Object execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getValueEquivalent
protected java.lang.Object getValueEquivalent(java.lang.Object source, java.lang.Object value, IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
compile
public void compile(IEolCompilationContext context)
-
getTargetExpression
public Expression getTargetExpression()
-
setTargetExpression
public void setTargetExpression(Expression targetExpression)
-
getValueExpression
public Expression getValueExpression()
-
setValueExpression
public void setValueExpression(Expression valueExpression)
-
accept
public void accept(IEolVisitor visitor)
-
-