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