public class PatternLanguageSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
PatternLanguagePackage
Modifier and Type | Field and Description |
---|---|
protected static PatternLanguagePackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
PatternLanguageSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAggregatedValue(AggregatedValue object)
Returns the result of interpreting the object as an instance of 'Aggregated Value'.
|
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'.
|
T |
caseAnnotationParameter(AnnotationParameter object)
Returns the result of interpreting the object as an instance of 'Annotation Parameter'.
|
T |
caseBoolValue(BoolValue object)
Returns the result of interpreting the object as an instance of 'Bool Value'.
|
T |
caseCheckConstraint(CheckConstraint object)
Returns the result of interpreting the object as an instance of 'Check Constraint'.
|
T |
caseCompareConstraint(CompareConstraint object)
Returns the result of interpreting the object as an instance of 'Compare Constraint'.
|
T |
caseComputationValue(ComputationValue object)
Returns the result of interpreting the object as an instance of 'Computation Value'.
|
T |
caseConstraint(Constraint object)
Returns the result of interpreting the object as an instance of 'Constraint'.
|
T |
caseEntityType(EntityType object)
Returns the result of interpreting the object as an instance of 'Entity Type'.
|
T |
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.
|
T |
caseFunctionEvaluationValue(FunctionEvaluationValue object)
Returns the result of interpreting the object as an instance of 'Function Evaluation Value'.
|
T |
caseJavaType(JavaType object)
Returns the result of interpreting the object as an instance of 'Java Type'.
|
T |
caseListValue(ListValue object)
Returns the result of interpreting the object as an instance of 'List Value'.
|
T |
caseLiteralValueReference(LiteralValueReference object)
Returns the result of interpreting the object as an instance of 'Literal Value Reference'.
|
T |
caseLocalVariable(LocalVariable object)
Returns the result of interpreting the object as an instance of 'Local Variable'.
|
T |
caseModifiers(Modifiers object)
Returns the result of interpreting the object as an instance of 'Modifiers'.
|
T |
caseNumberValue(NumberValue object)
Returns the result of interpreting the object as an instance of 'Number Value'.
|
T |
caseParameter(Parameter object)
Returns the result of interpreting the object as an instance of 'Parameter'.
|
T |
caseParameterRef(ParameterRef object)
Returns the result of interpreting the object as an instance of 'Parameter Ref'.
|
T |
casePathExpressionConstraint(PathExpressionConstraint object)
Returns the result of interpreting the object as an instance of 'Path Expression Constraint'.
|
T |
casePathExpressionElement(PathExpressionElement object)
Returns the result of interpreting the object as an instance of 'Path Expression Element'.
|
T |
casePathExpressionHead(PathExpressionHead object)
Returns the result of interpreting the object as an instance of 'Path Expression Head'.
|
T |
casePathExpressionTail(PathExpressionTail object)
Returns the result of interpreting the object as an instance of 'Path Expression Tail'.
|
T |
casePattern(Pattern object)
Returns the result of interpreting the object as an instance of 'Pattern'.
|
T |
casePatternBody(PatternBody object)
Returns the result of interpreting the object as an instance of 'Pattern Body'.
|
T |
casePatternCall(PatternCall object)
Returns the result of interpreting the object as an instance of 'Pattern Call'.
|
T |
casePatternCompositionConstraint(PatternCompositionConstraint object)
Returns the result of interpreting the object as an instance of 'Pattern Composition Constraint'.
|
T |
casePatternModel(PatternModel object)
Returns the result of interpreting the object as an instance of 'Pattern Model'.
|
T |
caseRelationType(RelationType object)
Returns the result of interpreting the object as an instance of 'Relation Type'.
|
T |
caseStringValue(StringValue object)
Returns the result of interpreting the object as an instance of 'String Value'.
|
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'.
|
T |
caseTypeCheckConstraint(TypeCheckConstraint object)
Returns the result of interpreting the object as an instance of 'Type Check Constraint'.
|
T |
caseValueReference(ValueReference object)
Returns the result of interpreting the object as an instance of 'Value Reference'.
|
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 |
caseVariableValue(VariableValue object)
Returns the result of interpreting the object as an instance of 'Variable Value'.
|
T |
caseXbase_XBooleanLiteral(org.eclipse.xtext.xbase.XBooleanLiteral object)
Returns the result of interpreting the object as an instance of 'XBoolean Literal'.
|
T |
caseXbase_XNumberLiteral(org.eclipse.xtext.xbase.XNumberLiteral object)
Returns the result of interpreting the object as an instance of 'XNumber Literal'.
|
T |
caseXBooleanLiteral(XBooleanLiteral object)
Returns the result of interpreting the object as an instance of 'XBoolean Literal'.
|
T |
caseXExpression(org.eclipse.xtext.xbase.XExpression object)
Returns the result of interpreting the object as an instance of 'XExpression'.
|
T |
caseXNumberLiteral(XNumberLiteral object)
Returns the result of interpreting the object as an instance of 'XNumber Literal'.
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
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. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static PatternLanguagePackage modelPackage
public PatternLanguageSwitch()
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
ePackage
- the package in question.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.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T casePatternModel(PatternModel object)
object
- the target of the switch.doSwitch(EObject)
public T casePattern(Pattern object)
object
- the target of the switch.doSwitch(EObject)
public T caseAnnotation(Annotation object)
object
- the target of the switch.doSwitch(EObject)
public T caseAnnotationParameter(AnnotationParameter object)
object
- the target of the switch.doSwitch(EObject)
public T caseModifiers(Modifiers object)
object
- the target of the switch.doSwitch(EObject)
public T caseExpression(Expression object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariable(Variable object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariableReference(VariableReference object)
object
- the target of the switch.doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseEntityType(EntityType object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternBody(PatternBody object)
object
- the target of the switch.doSwitch(EObject)
public T caseConstraint(Constraint object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternCall(PatternCall object)
object
- the target of the switch.doSwitch(EObject)
public T casePathExpressionElement(PathExpressionElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseValueReference(ValueReference object)
object
- the target of the switch.doSwitch(EObject)
public T caseLiteralValueReference(LiteralValueReference object)
object
- the target of the switch.doSwitch(EObject)
public T caseComputationValue(ComputationValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseParameterRef(ParameterRef object)
object
- the target of the switch.doSwitch(EObject)
public T caseParameter(Parameter object)
object
- the target of the switch.doSwitch(EObject)
public T caseLocalVariable(LocalVariable object)
object
- the target of the switch.doSwitch(EObject)
public T caseJavaType(JavaType object)
object
- the target of the switch.doSwitch(EObject)
public T caseRelationType(RelationType object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypeCheckConstraint(TypeCheckConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternCompositionConstraint(PatternCompositionConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T caseCompareConstraint(CompareConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T caseCheckConstraint(CheckConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T casePathExpressionConstraint(PathExpressionConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T casePathExpressionHead(PathExpressionHead object)
object
- the target of the switch.doSwitch(EObject)
public T casePathExpressionTail(PathExpressionTail object)
object
- the target of the switch.doSwitch(EObject)
public T caseStringValue(StringValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseNumberValue(NumberValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseXNumberLiteral(XNumberLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseBoolValue(BoolValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseXBooleanLiteral(XBooleanLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariableValue(VariableValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseListValue(ListValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseFunctionEvaluationValue(FunctionEvaluationValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseAggregatedValue(AggregatedValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseXExpression(org.eclipse.xtext.xbase.XExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXbase_XNumberLiteral(org.eclipse.xtext.xbase.XNumberLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXbase_XBooleanLiteral(org.eclipse.xtext.xbase.XBooleanLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)