Package de.uka.ipd.sdq.stoex.util
Class StoexSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- de.uka.ipd.sdq.stoex.util.StoexSwitch<T>
-
- Direct Known Subclasses:
ExpressionInferTypeVisitor
,ExpressionSolveVisitor
,StoExPrettyPrintVisitor
,TypeCheckVisitor
public class StoexSwitch<T> extends Switch<T>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
StoexPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static String
copyright
protected static StoexPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description StoexSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAbstractNamedReference(AbstractNamedReference object)
Returns the result of interpreting the object as an instance of ' Abstract Named Reference'.T
caseAtom(Atom object)
Returns the result of interpreting the object as an instance of 'Atom'.T
caseBooleanExpression(BooleanExpression object)
Returns the result of interpreting the object as an instance of 'Boolean Expression '.T
caseBooleanOperatorExpression(BooleanOperatorExpression object)
Returns the result of interpreting the object as an instance of ' Boolean Operator Expression'.T
caseBoolLiteral(BoolLiteral object)
Returns the result of interpreting the object as an instance of 'Bool Literal'.T
caseCompareExpression(CompareExpression object)
Returns the result of interpreting the object as an instance of 'Compare Expression '.T
caseComparison(Comparison object)
Returns the result of interpreting the object as an instance of 'Comparison'.T
caseDoubleLiteral(DoubleLiteral object)
Returns the result of interpreting the object as an instance of 'Double Literal'.T
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.T
caseFunctionLiteral(FunctionLiteral object)
Returns the result of interpreting the object as an instance of 'Function Literal'.T
caseIfElse(IfElse object)
Returns the result of interpreting the object as an instance of 'If Else'.T
caseIfElseExpression(IfElseExpression object)
Returns the result of interpreting the object as an instance of 'If Else Expression '.T
caseIntLiteral(IntLiteral object)
Returns the result of interpreting the object as an instance of 'Int Literal'.T
caseNamespaceReference(NamespaceReference object)
Returns the result of interpreting the object as an instance of 'Namespace Reference '.T
caseNegativeExpression(NegativeExpression object)
Returns the result of interpreting the object as an instance of 'Negative Expression '.T
caseNotExpression(NotExpression object)
Returns the result of interpreting the object as an instance of 'Not Expression'.T
caseNumericLiteral(NumericLiteral object)
Returns the result of interpreting the object as an instance of 'Numeric Literal'.T
caseParenthesis(Parenthesis object)
Returns the result of interpreting the object as an instance of 'Parenthesis'.T
casePower(Power object)
Returns the result of interpreting the object as an instance of 'Power'.T
casePowerExpression(PowerExpression object)
Returns the result of interpreting the object as an instance of 'Power Expression'.T
caseProbabilityFunctionLiteral(ProbabilityFunctionLiteral object)
Returns the result of interpreting the object as an instance of ' Probability Function Literal'.T
caseProduct(Product object)
Returns the result of interpreting the object as an instance of 'Product'.T
caseProductExpression(ProductExpression object)
Returns the result of interpreting the object as an instance of 'Product Expression '.T
caseRandomVariable(RandomVariable object)
Returns the result of interpreting the object as an instance of 'Random Variable'.T
caseStringLiteral(StringLiteral object)
Returns the result of interpreting the object as an instance of 'String Literal'.T
caseTerm(Term object)
Returns the result of interpreting the object as an instance of 'Term'.T
caseTermExpression(TermExpression object)
Returns the result of interpreting the object as an instance of 'Term Expression'.T
caseUnary(Unary object)
Returns the result of interpreting the object as an instance of 'Unary'.T
caseUnitCarryingElement(UnitCarryingElement object)
Returns the result of interpreting the object as an instance of ' Unit Carrying Element'.T
caseVariable(Variable object)
Returns the result of interpreting the object as an instance of 'Variable'.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(int classifierID, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.
-
-
-
Field Detail
-
copyright
public static final String copyright
- See Also:
- Constant Field Values
- Generated class or method.
-
modelPackage
protected static StoexPackage modelPackage
The cached model package- Generated class or method.
-
-
Method Detail
-
isSwitchFor
protected boolean isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T>
- Returns:
- whether this is a switch for the given package.
- Generated class or method.
-
doSwitch
protected T doSwitch(int classifierID, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
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)
- Generated class or method.
-
caseAbstractNamedReference
public T caseAbstractNamedReference(AbstractNamedReference object)
Returns the result of interpreting the object as an instance of ' Abstract Named 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 ' Abstract Named Reference'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseNamespaceReference
public T caseNamespaceReference(NamespaceReference object)
Returns the result of interpreting the object as an instance of 'Namespace 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 'Namespace Reference '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseVariable
public T caseVariable(Variable object)
Returns the result of interpreting the object as an instance of 'Variable'. 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'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseAtom
public T caseAtom(Atom object)
Returns the result of interpreting the object as an instance of 'Atom'. 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 'Atom'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseUnary
public T caseUnary(Unary object)
Returns the result of interpreting the object as an instance of 'Unary'. 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'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
casePower
public T casePower(Power object)
Returns the result of interpreting the object as an instance of 'Power'. 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 'Power'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseProduct
public T caseProduct(Product object)
Returns the result of interpreting the object as an instance of 'Product'. 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 'Product'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseTerm
public T caseTerm(Term object)
Returns the result of interpreting the object as an instance of 'Term'. 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 'Term'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseComparison
public T caseComparison(Comparison object)
Returns the result of interpreting the object as an instance of 'Comparison'. 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 'Comparison'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseBooleanExpression
public T caseBooleanExpression(BooleanExpression object)
Returns the result of interpreting the object as an instance of 'Boolean 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 'Boolean Expression '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseIfElse
public T caseIfElse(IfElse object)
Returns the result of interpreting the object as an instance of 'If Else'. 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 'If Else'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
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)
- Generated class or method.
-
caseTermExpression
public T caseTermExpression(TermExpression object)
Returns the result of interpreting the object as an instance of 'Term 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 'Term Expression'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseRandomVariable
public T caseRandomVariable(RandomVariable object)
Returns the result of interpreting the object as an instance of 'Random Variable'. 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 'Random Variable'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseProductExpression
public T caseProductExpression(ProductExpression object)
Returns the result of interpreting the object as an instance of 'Product 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 'Product Expression '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseProbabilityFunctionLiteral
public T caseProbabilityFunctionLiteral(ProbabilityFunctionLiteral object)
Returns the result of interpreting the object as an instance of ' Probability Function 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 ' Probability Function Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseParenthesis
public T caseParenthesis(Parenthesis object)
Returns the result of interpreting the object as an instance of 'Parenthesis'. 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 'Parenthesis'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseNumericLiteral
public T caseNumericLiteral(NumericLiteral object)
Returns the result of interpreting the object as an instance of 'Numeric 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 'Numeric Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseIntLiteral
public T caseIntLiteral(IntLiteral object)
Returns the result of interpreting the object as an instance of 'Int 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 'Int Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseDoubleLiteral
public T caseDoubleLiteral(DoubleLiteral object)
Returns the result of interpreting the object as an instance of 'Double 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 'Double Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseCompareExpression
public T caseCompareExpression(CompareExpression object)
Returns the result of interpreting the object as an instance of 'Compare 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 'Compare Expression '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseBoolLiteral
public T caseBoolLiteral(BoolLiteral object)
Returns the result of interpreting the object as an instance of 'Bool 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 'Bool Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
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)
- Generated class or method.
-
casePowerExpression
public T casePowerExpression(PowerExpression object)
Returns the result of interpreting the object as an instance of 'Power 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 'Power Expression'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseBooleanOperatorExpression
public T caseBooleanOperatorExpression(BooleanOperatorExpression object)
Returns the result of interpreting the object as an instance of ' Boolean Operator 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 ' Boolean Operator Expression'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseNotExpression
public T caseNotExpression(NotExpression object)
Returns the result of interpreting the object as an instance of 'Not 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 'Not Expression'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseNegativeExpression
public T caseNegativeExpression(NegativeExpression object)
Returns the result of interpreting the object as an instance of 'Negative 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 'Negative Expression '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseFunctionLiteral
public T caseFunctionLiteral(FunctionLiteral object)
Returns the result of interpreting the object as an instance of 'Function 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 'Function Literal'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseIfElseExpression
public T caseIfElseExpression(IfElseExpression object)
Returns the result of interpreting the object as an instance of 'If Else 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 'If Else Expression '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseUnitCarryingElement
public T caseUnitCarryingElement(UnitCarryingElement object)
Returns the result of interpreting the object as an instance of ' Unit Carrying Element'. 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 ' Unit Carrying Element'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
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.- Overrides:
defaultCase
in classSwitch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
- Generated class or method.
-
-