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 Details

  • 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 class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      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.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseReteRecipe

      public T caseReteRecipe(ReteRecipe object)
      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:
      • doSwitch(EObject)
    • caseReteNodeRecipe

      public T caseReteNodeRecipe(ReteNodeRecipe object)
      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:
      • doSwitch(EObject)
    • caseSingleParentNodeRecipe

      public T caseSingleParentNodeRecipe(SingleParentNodeRecipe object)
      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:
      • doSwitch(EObject)
    • caseAlphaRecipe

      public T caseAlphaRecipe(AlphaRecipe object)
      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:
      • doSwitch(EObject)
    • caseMultiParentNodeRecipe

      public T caseMultiParentNodeRecipe(MultiParentNodeRecipe object)
      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:
      • doSwitch(EObject)
    • caseMonotonicityInfo

      public T caseMonotonicityInfo(MonotonicityInfo object)
      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:
      • doSwitch(EObject)
    • caseUniquenessEnforcerRecipe

      public T caseUniquenessEnforcerRecipe(UniquenessEnforcerRecipe object)
      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:
      • doSwitch(EObject)
    • caseProductionRecipe

      public T caseProductionRecipe(ProductionRecipe object)
      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:
      • doSwitch(EObject)
    • caseIndexerRecipe

      public T caseIndexerRecipe(IndexerRecipe object)
      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:
      • doSwitch(EObject)
    • caseProjectionIndexerRecipe

      public T caseProjectionIndexerRecipe(ProjectionIndexerRecipe object)
      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:
      • doSwitch(EObject)
    • caseAggregatorIndexerRecipe

      public T caseAggregatorIndexerRecipe(AggregatorIndexerRecipe object)
      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:
      • doSwitch(EObject)
    • caseBetaRecipe

      public T caseBetaRecipe(BetaRecipe object)
      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:
      • doSwitch(EObject)
    • caseMask

      public T caseMask(Mask object)
      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:
      • doSwitch(EObject)
    • caseStringIndexMapEntry

      public T caseStringIndexMapEntry(Map.Entry<String,Integer> object)
      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:
      • doSwitch(EObject)
    • caseInputRecipe

      public T caseInputRecipe(InputRecipe object)
      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:
      • doSwitch(EObject)
    • caseConstantRecipe

      public T caseConstantRecipe(ConstantRecipe object)
      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:
      • doSwitch(EObject)
    • caseTransitiveClosureRecipe

      public T caseTransitiveClosureRecipe(TransitiveClosureRecipe object)
      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:
      • doSwitch(EObject)
    • caseFilterRecipe

      public T caseFilterRecipe(FilterRecipe object)
      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:
      • doSwitch(EObject)
    • caseInequalityFilterRecipe

      public T caseInequalityFilterRecipe(InequalityFilterRecipe object)
      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:
      • doSwitch(EObject)
    • caseEqualityFilterRecipe

      public T caseEqualityFilterRecipe(EqualityFilterRecipe object)
      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:
      • doSwitch(EObject)
    • caseTransparentRecipe

      public T caseTransparentRecipe(TransparentRecipe object)
      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:
      • doSwitch(EObject)
    • caseTrimmerRecipe

      public T caseTrimmerRecipe(TrimmerRecipe object)
      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:
      • doSwitch(EObject)
    • caseExpressionDefinition

      public T caseExpressionDefinition(ExpressionDefinition object)
      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:
      • doSwitch(EObject)
    • caseExpressionEnforcerRecipe

      public T caseExpressionEnforcerRecipe(ExpressionEnforcerRecipe object)
      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:
      • doSwitch(EObject)
    • caseCheckRecipe

      public T caseCheckRecipe(CheckRecipe object)
      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:
      • doSwitch(EObject)
    • caseEvalRecipe

      public T caseEvalRecipe(EvalRecipe object)
      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:
      • doSwitch(EObject)
    • caseIndexerBasedAggregatorRecipe

      public T caseIndexerBasedAggregatorRecipe(IndexerBasedAggregatorRecipe object)
      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:
      • doSwitch(EObject)
    • caseCountAggregatorRecipe

      public T caseCountAggregatorRecipe(CountAggregatorRecipe object)
      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:
      • doSwitch(EObject)
    • caseJoinRecipe

      public T caseJoinRecipe(JoinRecipe object)
      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:
      • doSwitch(EObject)
    • caseExistenceJoinRecipe

      public T caseExistenceJoinRecipe(ExistenceJoinRecipe object)
      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:
      • doSwitch(EObject)
    • caseSemiJoinRecipe

      public T caseSemiJoinRecipe(SemiJoinRecipe object)
      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:
      • doSwitch(EObject)
    • caseAntiJoinRecipe

      public T caseAntiJoinRecipe(AntiJoinRecipe object)
      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:
      • doSwitch(EObject)
    • caseInputFilterRecipe

      public T caseInputFilterRecipe(InputFilterRecipe object)
      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:
      • doSwitch(EObject)
    • caseSingleColumnAggregatorRecipe

      public T caseSingleColumnAggregatorRecipe(SingleColumnAggregatorRecipe object)
      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:
      • doSwitch(EObject)
    • caseDiscriminatorDispatcherRecipe

      public T caseDiscriminatorDispatcherRecipe(DiscriminatorDispatcherRecipe object)
      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:
      • doSwitch(EObject)
    • caseDiscriminatorBucketRecipe

      public T caseDiscriminatorBucketRecipe(DiscriminatorBucketRecipe object)
      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:
      • doSwitch(EObject)
    • caseRederivableNodeRecipe

      public T caseRederivableNodeRecipe(RederivableNodeRecipe object)
      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:
      • doSwitch(EObject)
    • caseRelationEvaluationRecipe

      public T caseRelationEvaluationRecipe(RelationEvaluationRecipe object)
      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:
      • doSwitch(EObject)
    • caseRepresentativeElectionRecipe

      public T caseRepresentativeElectionRecipe(RepresentativeElectionRecipe object)
      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:
      • doSwitch(EObject)
    • caseOuterJoinNodeRecipe

      public T caseOuterJoinNodeRecipe(OuterJoinNodeRecipe object)
      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:
      • doSwitch(EObject)
    • caseOuterJoinIndexerRecipe

      public T caseOuterJoinIndexerRecipe(OuterJoinIndexerRecipe object)
      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:
      • doSwitch(EObject)
    • defaultCase

      public T defaultCase(org.eclipse.emf.ecore.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 class org.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:
      • Switch.doSwitch(org.eclipse.emf.ecore.EObject)