Class ValidEntryRuleInspector


  • public class ValidEntryRuleInspector
    extends XtextRuleInspector<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>,​ParserRule>
    Checks the entry rule for validity. A rule is considered to be a valid entry rule if it either accepts the empty input or if it ensures that a model is instantiated.
    • Method Detail

      • handleResult

        protected void handleResult​(org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> r,
                                    ParserRule rule)
        Overrides:
        handleResult in class XtextRuleInspector<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>,​ParserRule>
      • caseCompoundElement

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> 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<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Compound Element'.
        See Also:
        doSwitch(EObject)
      • caseAbstractElement

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> caseAbstractElement​(AbstractElement object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Abstract Element'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAbstractElement in class XtextSwitch<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Abstract Element'.
        See Also:
        doSwitch(EObject)
      • caseAction

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> caseAction​(Action object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAction in class XtextSwitch<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Action'.
        See Also:
        doSwitch(EObject)
      • caseAlternatives

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> caseAlternatives​(Alternatives object)
        Description copied from class: XtextSwitch
        Returns the result of interpreting the object as an instance of 'Alternatives'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseAlternatives in class XtextSwitch<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Alternatives'.
        See Also:
        doSwitch(EObject)
      • caseAssignment

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> 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<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Assignment'.
        See Also:
        doSwitch(EObject)
      • caseRuleCall

        public org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean> 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<org.eclipse.xtext.util.Pair<java.lang.Boolean,​java.lang.Boolean>>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Rule Call'.
        See Also:
        doSwitch(EObject)