Class UsedRulesFinder


  • public class UsedRulesFinder
    extends XtextSwitch<java.lang.Void>
    • Constructor Detail

      • UsedRulesFinder

        public UsedRulesFinder​(java.util.Collection<AbstractRule> usedRules)
    • Method Detail

      • caseAbstractRule

        public java.lang.Void caseAbstractRule​(AbstractRule object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Abstract Rule'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAbstractRule in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Abstract Rule'.
        See Also:
        doSwitch(EObject)
      • caseParserRule

        public java.lang.Void caseParserRule​(ParserRule object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Parser Rule'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseParserRule in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Parser Rule'.
        See Also:
        doSwitch(EObject)
      • caseTerminalRule

        public java.lang.Void caseTerminalRule​(TerminalRule object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Terminal Rule'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseTerminalRule in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Terminal Rule'.
        See Also:
        doSwitch(EObject)
      • caseAbstractNegatedToken

        public java.lang.Void caseAbstractNegatedToken​(AbstractNegatedToken object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Abstract Negated Token'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAbstractNegatedToken in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Abstract Negated Token'.
        See Also:
        doSwitch(EObject)
      • caseRuleCall

        public java.lang.Void caseRuleCall​(RuleCall object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Rule Call'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseRuleCall in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Rule Call'.
        See Also:
        doSwitch(EObject)
      • caseCrossReference

        public java.lang.Void caseCrossReference​(CrossReference object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Cross Reference'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseCrossReference in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Cross Reference'.
        See Also:
        doSwitch(EObject)
      • caseAssignment

        public java.lang.Void caseAssignment​(Assignment object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Assignment'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAssignment in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Assignment'.
        See Also:
        doSwitch(EObject)
      • caseCompoundElement

        public java.lang.Void caseCompoundElement​(CompoundElement object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Compound Element'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseCompoundElement in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Compound Element'.
        See Also:
        doSwitch(EObject)
      • caseGrammar

        public java.lang.Void caseGrammar​(Grammar object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Grammar'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseGrammar in class XtextSwitch<java.lang.Void>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Grammar'.
        See Also:
        doSwitch(EObject)
      • compute

        public void compute​(Grammar grammar)