Class GrammarElementTitleSwitch
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.eclipse.xtext.util.XtextSwitch<java.lang.String>
-
- org.eclipse.xtext.grammaranalysis.impl.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classGrammarElementTitleSwitch.Node
-
Field Summary
Fields Modifier and Type Field Description protected booleanshowActionAsRuleCallprotected booleanshowAssignmentprotected booleanshowCardinalityprotected booleanshowQualifiedprotected booleanshowRuleprotected java.lang.StringvalueForNull-
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description GrammarElementTitleSwitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringaddAssignemnt(java.lang.String result, AbstractElement ele)protected java.lang.StringaddCrossRef(java.lang.String result, AbstractElement ele)protected java.lang.StringaddCrossRefOrAssignemnt(java.lang.String result, AbstractElement ele)protected java.lang.StringaddQualified(java.lang.String result, AbstractElement ele)java.lang.Stringapply(AbstractElement from)protected java.lang.Stringcard(AbstractElement ele)java.lang.StringcaseAbstractElement(AbstractElement object)Returns the result of interpreting the object as an instance of 'Abstract Element'.java.lang.StringcaseAbstractRule(AbstractRule object)Returns the result of interpreting the object as an instance of 'Abstract Rule'.java.lang.StringcaseAction(Action object)Returns the result of interpreting the object as an instance of 'Action'.java.lang.StringcaseAlternatives(Alternatives object)Returns the result of interpreting the object as an instance of 'Alternatives'.java.lang.StringcaseAssignment(Assignment object)Returns the result of interpreting the object as an instance of 'Assignment'.java.lang.StringcaseCrossReference(CrossReference object)Returns the result of interpreting the object as an instance of 'Cross Reference'.java.lang.StringcaseGroup(Group object)Returns the result of interpreting the object as an instance of 'Group'.java.lang.StringcaseKeyword(Keyword object)Returns the result of interpreting the object as an instance of 'Keyword'.java.lang.StringcaseRuleCall(RuleCall object)Returns the result of interpreting the object as an instance of 'Rule Call'.java.lang.StringcaseUnorderedGroup(UnorderedGroup object)Returns the result of interpreting the object as an instance of 'Unordered Group'.protected GrammarElementTitleSwitchcopy()java.lang.StringdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.java.lang.StringdoSwitch(org.eclipse.emf.ecore.EObject theEObject)GrammarElementTitleSwitchhideCardinality()GrammarElementTitleSwitchsetValueForNull(java.lang.String value)GrammarElementTitleSwitchshowActionsAsRuleCalls()GrammarElementTitleSwitchshowAssignments()GrammarElementTitleSwitchshowQualified()GrammarElementTitleSwitchshowRule()-
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAnnotation, caseCharacterRange, caseCompositeCondition, caseCompoundElement, caseCondition, caseConjunction, caseDisjunction, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseLiteralCondition, caseNamedArgument, caseNegatedToken, caseNegation, caseParameter, caseParameterReference, caseParserRule, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUntilToken, caseWildcard, doSwitch, isSwitchFor
-
-
-
-
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
-
-
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:
applyin interfacecom.google.common.base.Function<AbstractElement,java.lang.String>- Specified by:
applyin interfacejava.util.function.Function<AbstractElement,java.lang.String>
-
card
protected java.lang.String card(AbstractElement ele)
-
caseAbstractElement
public java.lang.String caseAbstractElement(AbstractElement object)
Description copied from class:XtextSwitchReturns 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:
caseAbstractElementin classXtextSwitch<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:XtextSwitchReturns 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:
caseAbstractRulein classXtextSwitch<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:XtextSwitchReturns 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:
caseActionin classXtextSwitch<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:XtextSwitchReturns 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:
caseAlternativesin classXtextSwitch<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:XtextSwitchReturns 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:
caseAssignmentin classXtextSwitch<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:XtextSwitchReturns 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:
caseCrossReferencein classXtextSwitch<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:XtextSwitchReturns 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:
caseGroupin classXtextSwitch<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:XtextSwitchReturns 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:
caseKeywordin classXtextSwitch<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:XtextSwitchReturns 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:
caseRuleCallin classXtextSwitch<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:XtextSwitchReturns 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:
caseUnorderedGroupin classXtextSwitch<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)
-
copy
protected GrammarElementTitleSwitch copy()
-
defaultCase
public java.lang.String defaultCase(org.eclipse.emf.ecore.EObject object)
Description copied from class:XtextSwitchReturns 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:
defaultCasein classXtextSwitch<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:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<java.lang.String>
-
hideCardinality
public GrammarElementTitleSwitch hideCardinality()
-
setValueForNull
public GrammarElementTitleSwitch setValueForNull(java.lang.String value)
-
showActionsAsRuleCalls
public GrammarElementTitleSwitch showActionsAsRuleCalls()
-
showAssignments
public GrammarElementTitleSwitch showAssignments()
-
showQualified
public GrammarElementTitleSwitch showQualified()
-
showRule
public GrammarElementTitleSwitch showRule()
-
-