|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mofscript.MOFScriptModel.util.MOFScriptModelSwitch<T>
public class MOFScriptModelSwitch<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.
MOFScriptModelPackage
Field Summary | |
---|---|
static java.lang.String |
copyright
|
protected static MOFScriptModelPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
MOFScriptModelSwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
T |
caseAdvice(Advice object)
Returns the result of interpreting the object as an instance of 'Advice' |
T |
caseArithmeticExpression(ArithmeticExpression object)
Returns the result of interpreting the object as an instance of 'Arithmetic Expression' |
T |
caseBreakStatement(BreakStatement object)
Returns the result of interpreting the object as an instance of 'Break Statement' |
T |
caseComparisonExpression(ComparisonExpression object)
Returns the result of interpreting the object as an instance of 'Comparison Expression' |
T |
caseCreateExpression(CreateExpression object)
Returns the result of interpreting the object as an instance of 'Create Expression' |
T |
caseCreateExpressionParameter(CreateExpressionParameter object)
Returns the result of interpreting the object as an instance of 'Create Expression Parameter' |
T |
caseCreateStatement(CreateStatement object)
Returns the result of interpreting the object as an instance of 'Create Statement' |
T |
caseDebugStatement(DebugStatement object)
Returns the result of interpreting the object as an instance of 'Debug Statement' |
T |
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression' |
T |
caseFileStatement(FileStatement object)
Returns the result of interpreting the object as an instance of 'File Statement' |
T |
caseFunctionCall(FunctionCall object)
Returns the result of interpreting the object as an instance of 'Function Call' |
T |
caseFunctionCallStatement(FunctionCallStatement object)
Returns the result of interpreting the object as an instance of 'Function Call Statement' |
T |
caseGeneralAssignment(GeneralAssignment object)
Returns the result of interpreting the object as an instance of 'General Assignment' |
T |
caseIfStatement(IfStatement object)
Returns the result of interpreting the object as an instance of 'If Statement' |
T |
caseIteratorStatement(IteratorStatement object)
Returns the result of interpreting the object as an instance of 'Iterator Statement' |
T |
caseLiteral(Literal object)
Returns the result of interpreting the object as an instance of 'Literal' |
T |
caseLogicalExpression(LogicalExpression object)
Returns the result of interpreting the object as an instance of 'Logical Expression' |
T |
caseM2MTrace(M2MTrace object)
Returns the result of interpreting the object as an instance of 'M2M Trace' |
T |
caseMOFScriptAspect(MOFScriptAspect object)
Returns the result of interpreting the object as an instance of 'MOF Script Aspect' |
T |
caseMOFScriptComment(MOFScriptComment object)
Returns the result of interpreting the object as an instance of 'MOF Script Comment' |
T |
caseMOFScriptImport(MOFScriptImport object)
Returns the result of interpreting the object as an instance of 'MOF Script Import' |
T |
caseMOFScriptObject(MOFScriptObject object)
Returns the result of interpreting the object as an instance of 'MOF Script Object' |
T |
caseMOFScriptParameter(MOFScriptParameter object)
Returns the result of interpreting the object as an instance of 'MOF Script Parameter' |
T |
caseMOFScriptSpecification(MOFScriptSpecification object)
Returns the result of interpreting the object as an instance of 'MOF Script Specification' |
T |
caseMOFScriptStatement(MOFScriptStatement object)
Returns the result of interpreting the object as an instance of 'MOF Script Statement' |
T |
caseMOFScriptStatementOwner(MOFScriptStatementOwner object)
Returns the result of interpreting the object as an instance of 'MOF Script Statement Owner' |
T |
caseMOFScriptTransformation(MOFScriptTransformation object)
Returns the result of interpreting the object as an instance of 'MOF Script Transformation' |
T |
casePointCut(PointCut object)
Returns the result of interpreting the object as an instance of 'Point Cut' |
T |
casePointCutExpression(PointCutExpression object)
Returns the result of interpreting the object as an instance of 'Point Cut Expression' |
T |
casePrintStatement(PrintStatement object)
Returns the result of interpreting the object as an instance of 'Print Statement' |
T |
caseReference(Reference object)
Returns the result of interpreting the object as an instance of 'Reference' |
T |
caseResultAssignment(ResultAssignment object)
Returns the result of interpreting the object as an instance of 'Result Assignment' |
T |
caseReturnStatement(ReturnStatement object)
Returns the result of interpreting the object as an instance of 'Return Statement' |
T |
caseSelectExpression(SelectExpression object)
Returns the result of interpreting the object as an instance of 'Select Expression' |
T |
caseSimpleExpression(SimpleExpression object)
Returns the result of interpreting the object as an instance of 'Simple Expression' |
T |
caseStatementBlock(StatementBlock object)
Returns the result of interpreting the object as an instance of 'Statement Block' |
T |
caseTrace(Trace object)
Returns the result of interpreting the object as an instance of 'Trace' |
T |
caseTransformationRule(TransformationRule object)
Returns the result of interpreting the object as an instance of 'Transformation Rule' |
T |
caseValueExpression(ValueExpression object)
Returns the result of interpreting the object as an instance of 'Value Expression' |
T |
caseVariableDeclaration(VariableDeclaration object)
Returns the result of interpreting the object as an instance of 'Variable Declaration' |
T |
caseVariableDeclarationStatement(VariableDeclarationStatement object)
Returns the result of interpreting the object as an instance of 'Variable Declaration Statement' |
T |
caseWhileStatement(WhileStatement object)
Returns the result of interpreting the object as an instance of 'While Statement' |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject' |
protected T |
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 |
T |
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 T |
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 |
---|
public static final java.lang.String copyright
protected static MOFScriptModelPackage modelPackage
Constructor Detail |
---|
public MOFScriptModelSwitch()
Method Detail |
---|
public T 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 T 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 T 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 T caseTransformationRule(TransformationRule object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptStatementOwner(MOFScriptStatementOwner object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptObject(MOFScriptObject object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptComment(MOFScriptComment object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptStatement(MOFScriptStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVariableDeclaration(VariableDeclaration object)
object
- the target of the switch.
doSwitch(EObject)
public T caseValueExpression(ValueExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseExpression(Expression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStatementBlock(StatementBlock object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptTransformation(MOFScriptTransformation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptParameter(MOFScriptParameter object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptImport(MOFScriptImport object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIteratorStatement(IteratorStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLogicalExpression(LogicalExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSimpleExpression(SimpleExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFunctionCall(FunctionCall object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCreateStatement(CreateStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseResultAssignment(ResultAssignment object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGeneralAssignment(GeneralAssignment object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLiteral(Literal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReference(Reference object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFunctionCallStatement(FunctionCallStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T casePrintStatement(PrintStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseArithmeticExpression(ArithmeticExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFileStatement(FileStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComparisonExpression(ComparisonExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIfStatement(IfStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptSpecification(MOFScriptSpecification object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBreakStatement(BreakStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWhileStatement(WhileStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMOFScriptAspect(MOFScriptAspect object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAdvice(Advice object)
object
- the target of the switch.
doSwitch(EObject)
public T casePointCut(PointCut object)
object
- the target of the switch.
doSwitch(EObject)
public T casePointCutExpression(PointCutExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSelectExpression(SelectExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCreateExpression(CreateExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCreateExpressionParameter(CreateExpressionParameter object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReturnStatement(ReturnStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVariableDeclarationStatement(VariableDeclarationStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDebugStatement(DebugStatement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTrace(Trace object)
object
- the target of the switch.
doSwitch(EObject)
public T caseM2MTrace(M2MTrace object)
object
- the target of the switch.
doSwitch(EObject)
public T 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 |