Class GrammarElementTitleSwitch

  • All Implemented Interfaces:
    com.google.common.base.Function<AbstractElement,​java.lang.String>, java.util.function.Function<AbstractElement,​java.lang.String>

    public class GrammarElementTitleSwitch
    extends XtextSwitch<java.lang.String>
    implements com.google.common.base.Function<AbstractElement,​java.lang.String>
    • Field Detail

      • showActionAsRuleCall

        protected boolean showActionAsRuleCall
      • showAssignment

        protected boolean showAssignment
      • showCardinality

        protected boolean showCardinality
      • showQualified

        protected boolean showQualified
      • showRule

        protected boolean showRule
      • valueForNull

        protected java.lang.String valueForNull
    • Constructor Detail

      • GrammarElementTitleSwitch

        public GrammarElementTitleSwitch()
    • Method Detail

      • addAssignemnt

        protected java.lang.String addAssignemnt​(java.lang.String result,
                                                 AbstractElement ele)
      • addCrossRef

        protected java.lang.String addCrossRef​(java.lang.String result,
                                               AbstractElement ele)
      • addCrossRefOrAssignemnt

        protected java.lang.String addCrossRefOrAssignemnt​(java.lang.String result,
                                                           AbstractElement ele)
      • addQualified

        protected java.lang.String addQualified​(java.lang.String result,
                                                AbstractElement ele)
      • apply

        public java.lang.String apply​(AbstractElement from)
        Specified by:
        apply in interface com.google.common.base.Function<AbstractElement,​java.lang.String>
        Specified by:
        apply in interface java.util.function.Function<AbstractElement,​java.lang.String>
      • caseAbstractElement

        public java.lang.String 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<java.lang.String>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Abstract Element'.
        See Also:
        doSwitch(EObject)
      • caseAbstractRule

        public java.lang.String 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.String>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Abstract Rule'.
        See Also:
        doSwitch(EObject)
      • caseAction

        public java.lang.String 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<java.lang.String>
        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 java.lang.String 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<java.lang.String>
        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 java.lang.String 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.String>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Assignment'.
        See Also:
        doSwitch(EObject)
      • caseCrossReference

        public java.lang.String 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.String>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Cross Reference'.
        See Also:
        doSwitch(EObject)
      • caseGroup

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

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

        public java.lang.String 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.String>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Rule Call'.
        See Also:
        doSwitch(EObject)
      • caseUnorderedGroup

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

        public java.lang.String defaultCase​(org.eclipse.emf.ecore.EObject object)
        Description copied from class: XtextSwitch
        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 XtextSwitch<java.lang.String>
        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)
      • doSwitch

        public java.lang.String doSwitch​(org.eclipse.emf.ecore.EObject theEObject)
        Overrides:
        doSwitch in class org.eclipse.emf.ecore.util.Switch<java.lang.String>