|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sintef.mofscript.MOFScriptModel.util.MOFScriptModelSwitch
public class MOFScriptModelSwitch
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.
MOFScriptModelPackage
Field Summary | |
---|---|
protected static MOFScriptModelPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
MOFScriptModelSwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
java.lang.Object |
caseAdvice(Advice object)
Returns the result of interpretting the object as an instance of 'Advice' |
java.lang.Object |
caseArithmeticExpression(ArithmeticExpression object)
Returns the result of interpretting the object as an instance of 'Arithmetic Expression' |
java.lang.Object |
caseBreakStatement(BreakStatement object)
Returns the result of interpretting the object as an instance of 'Break Statement' |
java.lang.Object |
caseComparisonExpression(ComparisonExpression object)
Returns the result of interpretting the object as an instance of 'Comparison Expression' |
java.lang.Object |
caseCreateStatement(CreateStatement object)
Returns the result of interpretting the object as an instance of 'Create Statement' |
java.lang.Object |
caseExpression(Expression object)
Returns the result of interpretting the object as an instance of 'Expression' |
java.lang.Object |
caseFileStatement(FileStatement object)
Returns the result of interpretting the object as an instance of 'File Statement' |
java.lang.Object |
caseFunctionCall(FunctionCall object)
Returns the result of interpretting the object as an instance of 'Function Call' |
java.lang.Object |
caseFunctionCallStatement(FunctionCallStatement object)
Returns the result of interpretting the object as an instance of 'Function Call Statement' |
java.lang.Object |
caseGeneralAssignment(GeneralAssignment object)
Returns the result of interpretting the object as an instance of 'General Assignment' |
java.lang.Object |
caseIfStatement(IfStatement object)
Returns the result of interpretting the object as an instance of 'If Statement' |
java.lang.Object |
caseIteratorStatement(IteratorStatement object)
Returns the result of interpretting the object as an instance of 'Iterator Statement' |
java.lang.Object |
caseLiteral(Literal object)
Returns the result of interpretting the object as an instance of 'Literal' |
java.lang.Object |
caseLogicalExpression(LogicalExpression object)
Returns the result of interpretting the object as an instance of 'Logical Expression' |
java.lang.Object |
caseMOFScriptAspect(MOFScriptAspect object)
Returns the result of interpretting the object as an instance of 'MOF Script Aspect' |
java.lang.Object |
caseMOFScriptComment(MOFScriptComment object)
Returns the result of interpretting the object as an instance of 'MOF Script Comment' |
java.lang.Object |
caseMOFScriptImport(MOFScriptImport object)
Returns the result of interpretting the object as an instance of 'MOF Script Import' |
java.lang.Object |
caseMOFScriptObject(MOFScriptObject object)
Returns the result of interpretting the object as an instance of 'MOF Script Object' |
java.lang.Object |
caseMOFScriptParameter(MOFScriptParameter object)
Returns the result of interpretting the object as an instance of 'MOF Script Parameter' |
java.lang.Object |
caseMOFScriptSpecification(MOFScriptSpecification object)
Returns the result of interpretting the object as an instance of 'MOF Script Specification' |
java.lang.Object |
caseMOFScriptStatement(MOFScriptStatement object)
Returns the result of interpretting the object as an instance of 'MOF Script Statement' |
java.lang.Object |
caseMOFScriptStatementOwner(MOFScriptStatementOwner object)
Returns the result of interpretting the object as an instance of 'MOF Script Statement Owner' |
java.lang.Object |
caseMOFScriptTransformation(MOFScriptTransformation object)
Returns the result of interpretting the object as an instance of 'MOF Script Transformation' |
java.lang.Object |
casePointCut(PointCut object)
Returns the result of interpretting the object as an instance of 'Point Cut' |
java.lang.Object |
casePointCutExpression(PointCutExpression object)
Returns the result of interpretting the object as an instance of 'Point Cut Expression' |
java.lang.Object |
casePrintStatement(PrintStatement object)
Returns the result of interpretting the object as an instance of 'Print Statement' |
java.lang.Object |
caseReference(Reference object)
Returns the result of interpretting the object as an instance of 'Reference' |
java.lang.Object |
caseResultAssignment(ResultAssignment object)
Returns the result of interpretting the object as an instance of 'Result Assignment' |
java.lang.Object |
caseSelectExpression(SelectExpression object)
Returns the result of interpretting the object as an instance of 'Select Expression' |
java.lang.Object |
caseSimpleExpression(SimpleExpression object)
Returns the result of interpretting the object as an instance of 'Simple Expression' |
java.lang.Object |
caseStatementBlock(StatementBlock object)
Returns the result of interpretting the object as an instance of 'Statement Block' |
java.lang.Object |
caseTransformationRule(TransformationRule object)
Returns the result of interpretting the object as an instance of 'Transformation Rule' |
java.lang.Object |
caseValueExpression(ValueExpression object)
Returns the result of interpretting the object as an instance of 'Value Expression' |
java.lang.Object |
caseVariableDeclaration(VariableDeclaration object)
Returns the result of interpretting the object as an instance of 'Variable Declaration' |
java.lang.Object |
caseWhileStatement(WhileStatement object)
Returns the result of interpretting the object as an instance of 'While Statement' |
java.lang.Object |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting the object as an instance of 'EObject' |
protected java.lang.Object |
doSwitch(org.eclipse.emf.ecore.EClass theEClass,
org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
java.lang.Object |
doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected java.lang.Object |
doSwitch(int classifierID,
org.eclipse.emf.ecore.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 MOFScriptModelPackage modelPackage
Constructor Detail |
---|
public MOFScriptModelSwitch()
Method Detail |
---|
public java.lang.Object doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public java.lang.Object caseTransformationRule(TransformationRule object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptStatementOwner(MOFScriptStatementOwner object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptObject(MOFScriptObject object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptStatement(MOFScriptStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseVariableDeclaration(VariableDeclaration object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseValueExpression(ValueExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseExpression(Expression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptTransformation(MOFScriptTransformation object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptImport(MOFScriptImport object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptParameter(MOFScriptParameter object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseIteratorStatement(IteratorStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseLogicalExpression(LogicalExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseSimpleExpression(SimpleExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseFunctionCall(FunctionCall object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCreateStatement(CreateStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseResultAssignment(ResultAssignment object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGeneralAssignment(GeneralAssignment object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseLiteral(Literal object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseReference(Reference object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseFunctionCallStatement(FunctionCallStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePrintStatement(PrintStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseArithmeticExpression(ArithmeticExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseFileStatement(FileStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseComparisonExpression(ComparisonExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseIfStatement(IfStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptComment(MOFScriptComment object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseStatementBlock(StatementBlock object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptSpecification(MOFScriptSpecification object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseBreakStatement(BreakStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseWhileStatement(WhileStatement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMOFScriptAspect(MOFScriptAspect object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseAdvice(Advice object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePointCut(PointCut object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePointCutExpression(PointCutExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseSelectExpression(SelectExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(org.eclipse.emf.ecore.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 |