|
|||||||||
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.AbstractApplicationImpl org.eclipse.emf.henshin.interpreter.impl.RuleApplicationImpl
public class RuleApplicationImpl
Default RuleApplication
implementation.
Field Summary | |
---|---|
protected Change |
change
|
protected Match |
completeMatch
|
protected boolean |
isCompleteMatchDerived
|
protected boolean |
isExecuted
|
protected boolean |
isUndone
|
protected Match |
partialMatch
|
protected Match |
resultMatch
|
Fields inherited from class org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl |
---|
engine, graph, unit |
Constructor Summary | |
---|---|
RuleApplicationImpl(Engine engine)
Default constructor. |
|
RuleApplicationImpl(Engine engine,
EGraph graph,
Rule rule,
Assignment partialMatch)
Default constructor. |
Method Summary | |
---|---|
boolean |
execute(ApplicationMonitor monitor)
Execute this unit application. |
Assignment |
getAssignment()
Get the parameter assignment to be used. |
Match |
getCompleteMatch()
Get the complete match to be used. |
Match |
getPartialMatch()
Get the partial match to be used. |
Assignment |
getResultAssignment()
Get the parameter assignment for the result. |
Match |
getResultMatch()
Get the match for the result of the transformation (after the unit has been applied). |
Object |
getResultParameterValue(String paramName)
Get the value assigned to a parameter. |
Rule |
getRule()
Get the rule to be applied. |
boolean |
redo(ApplicationMonitor monitor)
Redo this unit application. |
void |
setAssignment(Assignment assignment)
Set the parameter assignment to be used. |
void |
setCompleteMatch(Match completeMatch)
Set the complete match to be used. |
void |
setParameterValue(String paramName,
Object value)
Set the assigned value for a parameter. |
void |
setPartialMatch(Match partialMatch)
Set the partial match to be used. |
void |
setRule(Rule rule)
Set the rule to be applied. |
void |
setUnit(Unit unit)
Set the unit to be applied. |
boolean |
undo(ApplicationMonitor monitor)
Undo this unit application. |
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl |
---|
getEGraph, getUnit, setEGraph, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.henshin.interpreter.UnitApplication |
---|
getEGraph, getUnit, setEGraph |
Field Detail |
---|
protected Match partialMatch
protected Match completeMatch
protected Match resultMatch
protected boolean isCompleteMatchDerived
protected Change change
protected boolean isExecuted
protected boolean isUndone
Constructor Detail |
---|
public RuleApplicationImpl(Engine engine)
engine
- Engine to be used.public RuleApplicationImpl(Engine engine, EGraph graph, Rule rule, Assignment partialMatch)
engine
- Engine to be used.graph
- Object graph to be transformed.rule
- Rule to be applied.partialMatch
- Partial match or assignment.Method Detail |
---|
public boolean execute(ApplicationMonitor monitor)
UnitApplication
execute
in interface UnitApplication
monitor
- The application monitor or null
.
true
if the unit was successfully applied.public boolean undo(ApplicationMonitor monitor)
UnitApplication
#execute()
.
undo
in interface UnitApplication
monitor
- The application monitor or null
.
true
if the unit was successfully undone.public boolean redo(ApplicationMonitor monitor)
UnitApplication
#undo()
has been invoked. The effect is that the
unit is executed again.
redo
in interface UnitApplication
monitor
- The application monitor or null
.
true
if the unit was successfully redone.public Rule getRule()
RuleApplication
getRule
in interface RuleApplication
public void setRule(Rule rule)
RuleApplication
setRule
in interface RuleApplication
rule
- The rule to be applied.public void setUnit(Unit unit)
UnitApplication
setUnit
in interface UnitApplication
setUnit
in class AbstractApplicationImpl
unit
- The transformation unit.public Assignment getAssignment()
UnitApplication
getAssignment
in interface UnitApplication
public void setAssignment(Assignment assignment)
UnitApplication
setAssignment
in interface UnitApplication
assignment
- The parameter assignment.public Object getResultParameterValue(String paramName)
UnitApplication
getResultParameterValue
in interface UnitApplication
paramName
- The name of the parameter.
null
.public void setParameterValue(String paramName, Object value)
UnitApplication
setParameterValue
in interface UnitApplication
paramName
- The name of the parameter.value
- The value to be assigned with the parameter.public Match getPartialMatch()
RuleApplication
getPartialMatch
in interface RuleApplication
public void setPartialMatch(Match partialMatch)
RuleApplication
setPartialMatch
in interface RuleApplication
partialMatch
- The partial match (can be null
).public Match getCompleteMatch()
RuleApplication
getCompleteMatch
in interface RuleApplication
public void setCompleteMatch(Match completeMatch)
RuleApplication
null
,
the complete match will be derived from the partial match.
setCompleteMatch
in interface RuleApplication
completeMatch
- The complete match (can be null
).public Match getResultMatch()
RuleApplication
getResultMatch
in interface RuleApplication
public Assignment getResultAssignment()
UnitApplication
getResultAssignment
in interface UnitApplication
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |