ujf.verimag.bip.Core.ActionLanguage.Expressions.util
Class ExpressionsSwitch<T>

java.lang.Object
  extended by ujf.verimag.bip.Core.ActionLanguage.Expressions.util.ExpressionsSwitch<T>

public class ExpressionsSwitch<T>
extends java.lang.Object

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.

See Also:
ExpressionsPackage

Field Summary
protected static ExpressionsPackage modelPackage
          The cached model package
 
Constructor Summary
ExpressionsSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAction(Action object)
          Returns the result of interpreting the object as an instance of 'Action'.
 T caseArrayNavigationExpression(ArrayNavigationExpression object)
          Returns the result of interpreting the object as an instance of 'Array Navigation Expression'.
 T caseBinaryExpression(BinaryExpression object)
          Returns the result of interpreting the object as an instance of 'Binary Expression'.
 T caseBooleanLiteral(BooleanLiteral object)
          Returns the result of interpreting the object as an instance of 'Boolean Literal'.
 T caseDataNavigationExpression(DataNavigationExpression object)
          Returns the result of interpreting the object as an instance of 'Data Navigation Expression'.
 T caseDataParameterReference(DataParameterReference object)
          Returns the result of interpreting the object as an instance of 'Data Parameter Reference'.
 T caseDataParameterSpecification(DataParameterSpecification object)
          Returns the result of interpreting the object as an instance of 'Data Parameter Specification'.
 T caseDataReference(DataReference object)
          Returns the result of interpreting the object as an instance of 'Data Reference'.
 T caseExpression(Expression object)
          Returns the result of interpreting the object as an instance of 'Expression'.
 T caseFieldNavigationExpression(FieldNavigationExpression object)
          Returns the result of interpreting the object as an instance of 'Field Navigation Expression'.
 T caseFunctionCallExpression(FunctionCallExpression object)
          Returns the result of interpreting the object as an instance of 'Function Call Expression'.
 T caseIndexLiteral(IndexLiteral object)
          Returns the result of interpreting the object as an instance of 'Index Literal'.
 T caseInnerDataParameterReference(InnerDataParameterReference object)
          Returns the result of interpreting the object as an instance of 'Inner Data Parameter Reference'.
 T caseInnerInterfaceVariableReference(InnerInterfaceVariableReference object)
          Returns the result of interpreting the object as an instance of 'Inner Interface Variable Reference'.
 T caseIntegerLiteral(IntegerLiteral object)
          Returns the result of interpreting the object as an instance of 'Integer Literal'.
 T caseInterfaceVariableReference(InterfaceVariableReference object)
          Returns the result of interpreting the object as an instance of 'Interface Variable Reference'.
 T casePointerLiteral(PointerLiteral object)
          Returns the result of interpreting the object as an instance of 'Pointer Literal'.
 T caseRealLiteral(RealLiteral object)
          Returns the result of interpreting the object as an instance of 'Real Literal'.
 T caseRequiredDataParameterReference(RequiredDataParameterReference object)
          Returns the result of interpreting the object as an instance of 'Required Data Parameter Reference'.
 T caseStateReference(StateReference object)
          Returns the result of interpreting the object as an instance of 'State Reference'.
 T caseStringLiteral(StringLiteral object)
          Returns the result of interpreting the object as an instance of 'String Literal'.
 T caseUnaryExpression(UnaryExpression object)
          Returns the result of interpreting the object as an instance of 'Unary Expression'.
 T caseVariableReference(VariableReference object)
          Returns the result of interpreting the object as an instance of 'Variable Reference'.
 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

modelPackage

protected static ExpressionsPackage modelPackage
The cached model package

Constructor Detail

ExpressionsSwitch

public ExpressionsSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.

caseDataReference

public T caseDataReference(DataReference object)
Returns the result of interpreting the object as an instance of 'Data Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Data Reference'.
See Also:
doSwitch(EObject)

caseDataParameterSpecification

public T caseDataParameterSpecification(DataParameterSpecification object)
Returns the result of interpreting the object as an instance of 'Data Parameter Specification'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Data Parameter Specification'.
See Also:
doSwitch(EObject)

caseInnerDataParameterReference

public T caseInnerDataParameterReference(InnerDataParameterReference object)
Returns the result of interpreting the object as an instance of 'Inner Data Parameter Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Inner Data Parameter Reference'.
See Also:
doSwitch(EObject)

caseDataParameterReference

public T caseDataParameterReference(DataParameterReference object)
Returns the result of interpreting the object as an instance of 'Data Parameter Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Data Parameter Reference'.
See Also:
doSwitch(EObject)

caseBooleanLiteral

public T caseBooleanLiteral(BooleanLiteral object)
Returns the result of interpreting the object as an instance of 'Boolean Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Boolean Literal'.
See Also:
doSwitch(EObject)

caseIntegerLiteral

public T caseIntegerLiteral(IntegerLiteral object)
Returns the result of interpreting the object as an instance of 'Integer Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Integer Literal'.
See Also:
doSwitch(EObject)

caseRealLiteral

public T caseRealLiteral(RealLiteral object)
Returns the result of interpreting the object as an instance of 'Real Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Real Literal'.
See Also:
doSwitch(EObject)

caseStringLiteral

public T caseStringLiteral(StringLiteral object)
Returns the result of interpreting the object as an instance of 'String Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'String Literal'.
See Also:
doSwitch(EObject)

caseUnaryExpression

public T caseUnaryExpression(UnaryExpression object)
Returns the result of interpreting the object as an instance of 'Unary Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Unary Expression'.
See Also:
doSwitch(EObject)

caseBinaryExpression

public T caseBinaryExpression(BinaryExpression object)
Returns the result of interpreting the object as an instance of 'Binary Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Binary Expression'.
See Also:
doSwitch(EObject)

caseIndexLiteral

public T caseIndexLiteral(IndexLiteral object)
Returns the result of interpreting the object as an instance of 'Index Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Index Literal'.
See Also:
doSwitch(EObject)

caseFunctionCallExpression

public T caseFunctionCallExpression(FunctionCallExpression object)
Returns the result of interpreting the object as an instance of 'Function Call Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Function Call Expression'.
See Also:
doSwitch(EObject)

caseFieldNavigationExpression

public T caseFieldNavigationExpression(FieldNavigationExpression object)
Returns the result of interpreting the object as an instance of 'Field Navigation Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Field Navigation Expression'.
See Also:
doSwitch(EObject)

caseDataNavigationExpression

public T caseDataNavigationExpression(DataNavigationExpression object)
Returns the result of interpreting the object as an instance of 'Data Navigation Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Data Navigation Expression'.
See Also:
doSwitch(EObject)

caseArrayNavigationExpression

public T caseArrayNavigationExpression(ArrayNavigationExpression object)
Returns the result of interpreting the object as an instance of 'Array Navigation Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Array Navigation Expression'.
See Also:
doSwitch(EObject)

caseRequiredDataParameterReference

public T caseRequiredDataParameterReference(RequiredDataParameterReference object)
Returns the result of interpreting the object as an instance of 'Required Data Parameter Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Required Data Parameter Reference'.
See Also:
doSwitch(EObject)

caseStateReference

public T caseStateReference(StateReference object)
Returns the result of interpreting the object as an instance of 'State Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'State Reference'.
See Also:
doSwitch(EObject)

caseInterfaceVariableReference

public T caseInterfaceVariableReference(InterfaceVariableReference object)
Returns the result of interpreting the object as an instance of 'Interface Variable Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Interface Variable Reference'.
See Also:
doSwitch(EObject)

casePointerLiteral

public T casePointerLiteral(PointerLiteral object)
Returns the result of interpreting the object as an instance of 'Pointer Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Pointer Literal'.
See Also:
doSwitch(EObject)

caseInnerInterfaceVariableReference

public T caseInnerInterfaceVariableReference(InnerInterfaceVariableReference object)
Returns the result of interpreting the object as an instance of 'Inner Interface Variable Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Inner Interface Variable Reference'.
See Also:
doSwitch(EObject)

caseVariableReference

public T caseVariableReference(VariableReference object)
Returns the result of interpreting the object as an instance of 'Variable Reference'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Variable Reference'.
See Also:
doSwitch(EObject)

caseAction

public T caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Action'.
See Also:
doSwitch(EObject)

caseExpression

public T caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Expression'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)