|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.model.util.HenshinSwitch<T>
public class HenshinSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
HenshinPackage
Field Summary | |
---|---|
protected static HenshinPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
HenshinSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAnd(And object)
Returns the result of interpreting the object as an instance of 'And'. |
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'. |
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'. |
T |
caseAttributeCondition(AttributeCondition object)
Returns the result of interpreting the object as an instance of 'Attribute Condition'. |
T |
caseBinaryFormula(BinaryFormula object)
Returns the result of interpreting the object as an instance of 'Binary Formula'. |
T |
caseConditionalUnit(ConditionalUnit object)
Returns the result of interpreting the object as an instance of 'Conditional Unit'. |
T |
caseEdge(Edge object)
Returns the result of interpreting the object as an instance of 'Edge'. |
T |
caseFormula(Formula object)
Returns the result of interpreting the object as an instance of 'Formula'. |
T |
caseGraph(Graph object)
Returns the result of interpreting the object as an instance of 'Graph'. |
T |
caseGraphElement(GraphElement object)
Returns the result of interpreting the object as an instance of 'Graph Element'. |
T |
caseIndependentUnit(IndependentUnit object)
Returns the result of interpreting the object as an instance of 'Independent Unit'. |
T |
caseIteratedUnit(IteratedUnit object)
Returns the result of interpreting the object as an instance of 'Iterated Unit'. |
T |
caseLoopUnit(LoopUnit object)
Returns the result of interpreting the object as an instance of 'Loop Unit'. |
T |
caseMapping(Mapping object)
Returns the result of interpreting the object as an instance of 'Mapping'. |
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'. |
T |
caseModule(Module object)
Returns the result of interpreting the object as an instance of 'Module'. |
T |
caseMultiUnit(MultiUnit object)
Returns the result of interpreting the object as an instance of 'Multi Unit'. |
T |
caseNamedElement(NamedElement object)
Returns the result of interpreting the object as an instance of 'Named Element'. |
T |
caseNestedCondition(NestedCondition object)
Returns the result of interpreting the object as an instance of 'Nested Condition'. |
T |
caseNode(Node object)
Returns the result of interpreting the object as an instance of 'Node'. |
T |
caseNot(Not object)
Returns the result of interpreting the object as an instance of 'Not'. |
T |
caseOr(Or object)
Returns the result of interpreting the object as an instance of 'Or'. |
T |
caseParameter(Parameter object)
Returns the result of interpreting the object as an instance of 'Parameter'. |
T |
caseParameterMapping(ParameterMapping object)
Returns the result of interpreting the object as an instance of 'Parameter Mapping'. |
T |
casePriorityUnit(PriorityUnit object)
Returns the result of interpreting the object as an instance of 'Priority Unit'. |
T |
caseRule(Rule object)
Returns the result of interpreting the object as an instance of 'Rule'. |
T |
caseSequentialUnit(SequentialUnit object)
Returns the result of interpreting the object as an instance of 'Sequential Unit'. |
T |
caseUnaryFormula(UnaryFormula object)
Returns the result of interpreting the object as an instance of 'Unary Formula'. |
T |
caseUnaryUnit(UnaryUnit object)
Returns the result of interpreting the object as an instance of 'Unary Unit'. |
T |
caseUnit(Unit object)
Returns the result of interpreting the object as an instance of 'Unit'. |
T |
caseXor(Xor object)
Returns the result of interpreting the object as an instance of 'Xor'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static HenshinPackage modelPackage
Constructor Detail |
---|
public HenshinSwitch()
Method Detail |
---|
public T doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseModelElement(ModelElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnnotation(Annotation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedElement(NamedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRule(Rule object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAttributeCondition(AttributeCondition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseParameter(Parameter object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGraph(Graph object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGraphElement(GraphElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModule(Module object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUnit(Unit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMapping(Mapping object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNode(Node object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAttribute(Attribute object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEdge(Edge object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUnaryUnit(UnaryUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMultiUnit(MultiUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIndependentUnit(IndependentUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSequentialUnit(SequentialUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConditionalUnit(ConditionalUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T casePriorityUnit(PriorityUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIteratedUnit(IteratedUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLoopUnit(LoopUnit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNestedCondition(NestedCondition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFormula(Formula object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUnaryFormula(UnaryFormula object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBinaryFormula(BinaryFormula object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnd(And object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOr(Or object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNot(Not object)
object
- the target of the switch.
doSwitch(EObject)
public T caseXor(Xor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseParameterMapping(ParameterMapping object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |