public class GrammarElementTitleSwitch extends XtextSwitch<java.lang.String> implements com.google.common.base.Function<AbstractElement,java.lang.String>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GrammarElementTitleSwitch.Node |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
showActionAsRuleCall |
protected boolean |
showAssignment |
protected boolean |
showCardinality |
protected boolean |
showQualified |
protected boolean |
showRule |
protected java.lang.String |
valueForNull |
modelPackage| Constructor and Description |
|---|
GrammarElementTitleSwitch() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addAssignemnt(java.lang.String result,
AbstractElement ele) |
protected java.lang.String |
addCrossRef(java.lang.String result,
AbstractElement ele) |
protected java.lang.String |
addCrossRefOrAssignemnt(java.lang.String result,
AbstractElement ele) |
protected java.lang.String |
addQualified(java.lang.String result,
AbstractElement ele) |
java.lang.String |
apply(AbstractElement from) |
protected java.lang.String |
card(AbstractElement ele) |
java.lang.String |
caseAbstractElement(AbstractElement object)
Returns the result of interpreting the object as an instance of 'Abstract Element'.
|
java.lang.String |
caseAbstractRule(AbstractRule object)
Returns the result of interpreting the object as an instance of 'Abstract Rule'.
|
java.lang.String |
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'.
|
java.lang.String |
caseAlternatives(Alternatives object)
Returns the result of interpreting the object as an instance of 'Alternatives'.
|
java.lang.String |
caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'.
|
java.lang.String |
caseCrossReference(CrossReference object)
Returns the result of interpreting the object as an instance of 'Cross Reference'.
|
java.lang.String |
caseGroup(Group object)
Returns the result of interpreting the object as an instance of 'Group'.
|
java.lang.String |
caseKeyword(Keyword object)
Returns the result of interpreting the object as an instance of 'Keyword'.
|
java.lang.String |
caseRuleCall(RuleCall object)
Returns the result of interpreting the object as an instance of 'Rule Call'.
|
java.lang.String |
caseUnorderedGroup(UnorderedGroup object)
Returns the result of interpreting the object as an instance of 'Unordered Group'.
|
protected GrammarElementTitleSwitch |
copy() |
java.lang.String |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
java.lang.String |
doSwitch(org.eclipse.emf.ecore.EObject theEObject) |
GrammarElementTitleSwitch |
hideCardinality() |
GrammarElementTitleSwitch |
setValueForNull(java.lang.String value) |
GrammarElementTitleSwitch |
showActionsAsRuleCalls() |
GrammarElementTitleSwitch |
showAssignments() |
GrammarElementTitleSwitch |
showQualified() |
GrammarElementTitleSwitch |
showRule() |
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, isSwitchForprotected boolean showActionAsRuleCall
protected boolean showAssignment
protected boolean showCardinality
protected boolean showQualified
protected boolean showRule
protected java.lang.String valueForNull
protected java.lang.String addAssignemnt(java.lang.String result,
AbstractElement ele)
protected java.lang.String addCrossRef(java.lang.String result,
AbstractElement ele)
protected java.lang.String addCrossRefOrAssignemnt(java.lang.String result,
AbstractElement ele)
protected java.lang.String addQualified(java.lang.String result,
AbstractElement ele)
public java.lang.String apply(AbstractElement from)
apply in interface java.util.function.Function<AbstractElement,java.lang.String>protected java.lang.String card(AbstractElement ele)
public java.lang.String caseAbstractElement(AbstractElement object)
XtextSwitchcaseAbstractElement in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseAbstractRule(AbstractRule object)
XtextSwitchcaseAbstractRule in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseAction(Action object)
XtextSwitchcaseAction in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseAlternatives(Alternatives object)
XtextSwitchcaseAlternatives in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseAssignment(Assignment object)
XtextSwitchcaseAssignment in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseCrossReference(CrossReference object)
XtextSwitchcaseCrossReference in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseGroup(Group object)
XtextSwitchcaseGroup in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseKeyword(Keyword object)
XtextSwitchcaseKeyword in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseRuleCall(RuleCall object)
XtextSwitchcaseRuleCall in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)public java.lang.String caseUnorderedGroup(UnorderedGroup object)
XtextSwitchcaseUnorderedGroup in class XtextSwitch<java.lang.String>object - the target of the switch.doSwitch(EObject)protected GrammarElementTitleSwitch copy()
public java.lang.String defaultCase(org.eclipse.emf.ecore.EObject object)
XtextSwitchdefaultCase in class XtextSwitch<java.lang.String>object - the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)public java.lang.String doSwitch(org.eclipse.emf.ecore.EObject theEObject)
doSwitch in class org.eclipse.emf.ecore.util.Switch<java.lang.String>public GrammarElementTitleSwitch hideCardinality()
public GrammarElementTitleSwitch setValueForNull(java.lang.String value)
public GrammarElementTitleSwitch showActionsAsRuleCalls()
public GrammarElementTitleSwitch showAssignments()
public GrammarElementTitleSwitch showQualified()
public GrammarElementTitleSwitch showRule()