Class RecipesSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
tools.refinery.interpreter.rete.recipes.util.RecipesSwitch<T>
public class RecipesSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected static RecipesPackage
The cached model package -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Aggregator Indexer Recipe'.caseAlphaRecipe
(AlphaRecipe object) Returns the result of interpreting the object as an instance of 'Alpha Recipe'.caseAntiJoinRecipe
(AntiJoinRecipe object) Returns the result of interpreting the object as an instance of 'Anti Join Recipe'.caseBetaRecipe
(BetaRecipe object) Returns the result of interpreting the object as an instance of 'Beta Recipe'.caseCheckRecipe
(CheckRecipe object) Returns the result of interpreting the object as an instance of 'Check Recipe'.caseConstantRecipe
(ConstantRecipe object) Returns the result of interpreting the object as an instance of 'Constant Recipe'.Returns the result of interpreting the object as an instance of 'Count Aggregator Recipe'.Returns the result of interpreting the object as an instance of 'Discriminator Bucket Recipe'.Returns the result of interpreting the object as an instance of 'Discriminator Dispatcher Recipe'.Returns the result of interpreting the object as an instance of 'Equality Filter Recipe'.caseEvalRecipe
(EvalRecipe object) Returns the result of interpreting the object as an instance of 'Eval Recipe'.Returns the result of interpreting the object as an instance of 'Existence Join Recipe'.Returns the result of interpreting the object as an instance of 'Expression Definition'.Returns the result of interpreting the object as an instance of 'Expression Enforcer Recipe'.caseFilterRecipe
(FilterRecipe object) Returns the result of interpreting the object as an instance of 'Filter Recipe'.Returns the result of interpreting the object as an instance of 'Indexer Based Aggregator Recipe'.caseIndexerRecipe
(IndexerRecipe object) Returns the result of interpreting the object as an instance of 'Indexer Recipe'.Returns the result of interpreting the object as an instance of 'Inequality Filter Recipe'.Returns the result of interpreting the object as an instance of 'Input Filter Recipe'.caseInputRecipe
(InputRecipe object) Returns the result of interpreting the object as an instance of 'Input Recipe'.caseJoinRecipe
(JoinRecipe object) Returns the result of interpreting the object as an instance of 'Join Recipe'.Returns the result of interpreting the object as an instance of 'Mask'.caseMonotonicityInfo
(MonotonicityInfo object) Returns the result of interpreting the object as an instance of 'Monotonicity Info'.Returns the result of interpreting the object as an instance of 'Multi Parent Node Recipe'.Returns the result of interpreting the object as an instance of 'Outer Join Indexer Recipe'.Returns the result of interpreting the object as an instance of 'Outer Join Node Recipe'.caseProductionRecipe
(ProductionRecipe object) Returns the result of interpreting the object as an instance of 'Production Recipe'.Returns the result of interpreting the object as an instance of 'Projection Indexer Recipe'.Returns the result of interpreting the object as an instance of 'Rederivable Node Recipe'.Returns the result of interpreting the object as an instance of 'Relation Evaluation Recipe'.Returns the result of interpreting the object as an instance of 'Representative Election Recipe'.caseReteNodeRecipe
(ReteNodeRecipe object) Returns the result of interpreting the object as an instance of 'Rete Node Recipe'.caseReteRecipe
(ReteRecipe object) Returns the result of interpreting the object as an instance of 'Rete Recipe'.caseSemiJoinRecipe
(SemiJoinRecipe object) Returns the result of interpreting the object as an instance of 'Semi Join Recipe'.Returns the result of interpreting the object as an instance of 'Single Column Aggregator Recipe'.Returns the result of interpreting the object as an instance of 'Single Parent Node Recipe'.caseStringIndexMapEntry
(Map.Entry<String, Integer> object) Returns the result of interpreting the object as an instance of 'String Index Map Entry'.Returns the result of interpreting the object as an instance of 'Transitive Closure Recipe'.Returns the result of interpreting the object as an instance of 'Transparent Recipe'.caseTrimmerRecipe
(TrimmerRecipe object) Returns the result of interpreting the object as an instance of 'Trimmer Recipe'.Returns the result of interpreting the object as an instance of 'Uniqueness Enforcer Recipe'.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) CallscaseXXX
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.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
copyright
- See Also:
-
modelPackage
The cached model package
-
-
Constructor Details
-
RecipesSwitch
public RecipesSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseReteRecipe
Returns the result of interpreting the object as an instance of 'Rete Recipe'. 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 'Rete Recipe'.
- See Also:
-
caseReteNodeRecipe
Returns the result of interpreting the object as an instance of 'Rete Node Recipe'. 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 'Rete Node Recipe'.
- See Also:
-
caseSingleParentNodeRecipe
Returns the result of interpreting the object as an instance of 'Single Parent Node Recipe'. 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 'Single Parent Node Recipe'.
- See Also:
-
caseAlphaRecipe
Returns the result of interpreting the object as an instance of 'Alpha Recipe'. 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 'Alpha Recipe'.
- See Also:
-
caseMultiParentNodeRecipe
Returns the result of interpreting the object as an instance of 'Multi Parent Node Recipe'. 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 'Multi Parent Node Recipe'.
- See Also:
-
caseMonotonicityInfo
Returns the result of interpreting the object as an instance of 'Monotonicity Info'. 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 'Monotonicity Info'.
- See Also:
-
caseUniquenessEnforcerRecipe
Returns the result of interpreting the object as an instance of 'Uniqueness Enforcer Recipe'. 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 'Uniqueness Enforcer Recipe'.
- See Also:
-
caseProductionRecipe
Returns the result of interpreting the object as an instance of 'Production Recipe'. 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 'Production Recipe'.
- See Also:
-
caseIndexerRecipe
Returns the result of interpreting the object as an instance of 'Indexer Recipe'. 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 'Indexer Recipe'.
- See Also:
-
caseProjectionIndexerRecipe
Returns the result of interpreting the object as an instance of 'Projection Indexer Recipe'. 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 'Projection Indexer Recipe'.
- See Also:
-
caseAggregatorIndexerRecipe
Returns the result of interpreting the object as an instance of 'Aggregator Indexer Recipe'. 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 'Aggregator Indexer Recipe'.
- See Also:
-
caseBetaRecipe
Returns the result of interpreting the object as an instance of 'Beta Recipe'. 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 'Beta Recipe'.
- See Also:
-
caseMask
Returns the result of interpreting the object as an instance of 'Mask'. 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 'Mask'.
- See Also:
-
caseStringIndexMapEntry
Returns the result of interpreting the object as an instance of 'String Index Map Entry'. 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 Index Map Entry'.
- See Also:
-
caseInputRecipe
Returns the result of interpreting the object as an instance of 'Input Recipe'. 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 'Input Recipe'.
- See Also:
-
caseConstantRecipe
Returns the result of interpreting the object as an instance of 'Constant Recipe'. 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 'Constant Recipe'.
- See Also:
-
caseTransitiveClosureRecipe
Returns the result of interpreting the object as an instance of 'Transitive Closure Recipe'. 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 'Transitive Closure Recipe'.
- See Also:
-
caseFilterRecipe
Returns the result of interpreting the object as an instance of 'Filter Recipe'. 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 'Filter Recipe'.
- See Also:
-
caseInequalityFilterRecipe
Returns the result of interpreting the object as an instance of 'Inequality Filter Recipe'. 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 'Inequality Filter Recipe'.
- See Also:
-
caseEqualityFilterRecipe
Returns the result of interpreting the object as an instance of 'Equality Filter Recipe'. 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 'Equality Filter Recipe'.
- See Also:
-
caseTransparentRecipe
Returns the result of interpreting the object as an instance of 'Transparent Recipe'. 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 'Transparent Recipe'.
- See Also:
-
caseTrimmerRecipe
Returns the result of interpreting the object as an instance of 'Trimmer Recipe'. 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 'Trimmer Recipe'.
- See Also:
-
caseExpressionDefinition
Returns the result of interpreting the object as an instance of 'Expression Definition'. 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 Definition'.
- See Also:
-
caseExpressionEnforcerRecipe
Returns the result of interpreting the object as an instance of 'Expression Enforcer Recipe'. 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 Enforcer Recipe'.
- See Also:
-
caseCheckRecipe
Returns the result of interpreting the object as an instance of 'Check Recipe'. 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 'Check Recipe'.
- See Also:
-
caseEvalRecipe
Returns the result of interpreting the object as an instance of 'Eval Recipe'. 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 'Eval Recipe'.
- See Also:
-
caseIndexerBasedAggregatorRecipe
Returns the result of interpreting the object as an instance of 'Indexer Based Aggregator Recipe'. 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 'Indexer Based Aggregator Recipe'.
- See Also:
-
caseCountAggregatorRecipe
Returns the result of interpreting the object as an instance of 'Count Aggregator Recipe'. 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 'Count Aggregator Recipe'.
- See Also:
-
caseJoinRecipe
Returns the result of interpreting the object as an instance of 'Join Recipe'. 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 'Join Recipe'.
- See Also:
-
caseExistenceJoinRecipe
Returns the result of interpreting the object as an instance of 'Existence Join Recipe'. 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 'Existence Join Recipe'.
- See Also:
-
caseSemiJoinRecipe
Returns the result of interpreting the object as an instance of 'Semi Join Recipe'. 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 'Semi Join Recipe'.
- See Also:
-
caseAntiJoinRecipe
Returns the result of interpreting the object as an instance of 'Anti Join Recipe'. 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 'Anti Join Recipe'.
- See Also:
-
caseInputFilterRecipe
Returns the result of interpreting the object as an instance of 'Input Filter Recipe'. 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 'Input Filter Recipe'.
- See Also:
-
caseSingleColumnAggregatorRecipe
Returns the result of interpreting the object as an instance of 'Single Column Aggregator Recipe'. 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 'Single Column Aggregator Recipe'.
- See Also:
-
caseDiscriminatorDispatcherRecipe
Returns the result of interpreting the object as an instance of 'Discriminator Dispatcher Recipe'. 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 'Discriminator Dispatcher Recipe'.
- See Also:
-
caseDiscriminatorBucketRecipe
Returns the result of interpreting the object as an instance of 'Discriminator Bucket Recipe'. 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 'Discriminator Bucket Recipe'.
- See Also:
-
caseRederivableNodeRecipe
Returns the result of interpreting the object as an instance of 'Rederivable Node Recipe'. 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 'Rederivable Node Recipe'.
- See Also:
-
caseRelationEvaluationRecipe
Returns the result of interpreting the object as an instance of 'Relation Evaluation Recipe'. 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 'Relation Evaluation Recipe'.
- Since:
- 2.8
- See Also:
-
caseRepresentativeElectionRecipe
Returns the result of interpreting the object as an instance of 'Representative Election Recipe'. 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 'Representative Election Recipe'.
- See Also:
-
caseOuterJoinNodeRecipe
Returns the result of interpreting the object as an instance of 'Outer Join Node Recipe'. 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 'Outer Join Node Recipe'.
- See Also:
-
caseOuterJoinIndexerRecipe
Returns the result of interpreting the object as an instance of 'Outer Join Indexer Recipe'. 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 'Outer Join Indexer Recipe'.
- See Also:
-
defaultCase
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 classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-