|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.interpreter.impl.AssignmentImpl
public class AssignmentImpl
Default Assignment
implementation.
Field Summary | |
---|---|
protected boolean |
isResult
|
protected Unit |
unit
|
protected Map<Object,Object> |
values
|
Constructor Summary | |
---|---|
AssignmentImpl(Assignment assignment,
boolean isResultAssignment)
Constructor which copies an assignment. |
|
AssignmentImpl(Unit unit)
Default constructor. |
|
AssignmentImpl(Unit unit,
boolean isResult)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Clear all values stored in this assignment. |
protected void |
copyParameterValues(Assignment assignment)
|
boolean |
equals(Object obj)
|
Object |
getParameterValue(Parameter param)
Get the value assigned to a parameter. |
List<Object> |
getParameterValues()
Get all parameter values. |
Unit |
getUnit()
Get the unit that this assignment refers to. |
int |
hashCode()
|
boolean |
isEmpty()
Check whether this assignment is empty. |
boolean |
isResult()
Checks whether this is an assignment for a result of a unit application. |
void |
setParameterValue(Parameter param,
Object value)
Set the assigned value for a parameter. |
protected void |
setUnit(Unit unit)
|
protected void |
setValue(Object key,
Object value)
|
String |
toString()
|
protected String |
toStringWithIndent(String indent)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Unit unit
protected final Map<Object,Object> values
protected final boolean isResult
Constructor Detail |
---|
public AssignmentImpl(Unit unit)
rule
- Rule to be matched.public AssignmentImpl(Unit unit, boolean isResult)
public AssignmentImpl(Assignment assignment, boolean isResultAssignment)
assignment
- Assignment to be copied.Method Detail |
---|
protected void setUnit(Unit unit)
protected void copyParameterValues(Assignment assignment)
public Unit getUnit()
Assignment
getUnit
in interface Assignment
public Object getParameterValue(Parameter param)
Assignment
getParameterValue
in interface Assignment
param
- The parameter.
null
.protected void setValue(Object key, Object value)
public void setParameterValue(Parameter param, Object value)
Assignment
setParameterValue
in interface Assignment
param
- The parameter.value
- The value to be assigned with the parameter.public List<Object> getParameterValues()
Assignment
getParameterValues
in interface Assignment
public void clear()
Assignment
clear
in interface Assignment
public boolean isEmpty()
Assignment
isEmpty
in interface Assignment
true
of no values are assigned.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
protected String toStringWithIndent(String indent)
public boolean isResult()
Assignment
isResult
in interface Assignment
true
if it is a result assignment.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |