public class XtextSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
XtextPackage
Modifier and Type | Field and Description |
---|---|
protected static XtextPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
XtextSwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseAbstractElement(AbstractElement object)
Returns the result of interpreting the object as an instance of 'Abstract Element'
|
T |
caseAbstractMetamodelDeclaration(AbstractMetamodelDeclaration object)
Returns the result of interpreting the object as an instance of 'Abstract Metamodel Declaration'
|
T |
caseAbstractNegatedToken(AbstractNegatedToken object)
Returns the result of interpreting the object as an instance of 'Abstract Negated Token'
|
T |
caseAbstractRule(AbstractRule object)
Returns the result of interpreting the object as an instance of 'Abstract Rule'
|
T |
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'
|
T |
caseAlternatives(Alternatives object)
Returns the result of interpreting the object as an instance of 'Alternatives'
|
T |
caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'
|
T |
caseCharacterRange(CharacterRange object)
Returns the result of interpreting the object as an instance of 'Character Range'
|
T |
caseCompoundElement(CompoundElement object)
Returns the result of interpreting the object as an instance of 'Compound Element'
|
T |
caseCrossReference(CrossReference object)
Returns the result of interpreting the object as an instance of 'Cross Reference'
|
T |
caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
Returns the result of interpreting the object as an instance of 'Enum Literal Declaration'
|
T |
caseEnumRule(EnumRule object)
Returns the result of interpreting the object as an instance of 'Enum Rule'
|
T |
caseEOF(EOF object)
Returns the result of interpreting the object as an instance of 'EOF'
|
T |
caseGeneratedMetamodel(GeneratedMetamodel object)
Returns the result of interpreting the object as an instance of 'Generated Metamodel'
|
T |
caseGrammar(Grammar object)
Returns the result of interpreting the object as an instance of 'Grammar'
|
T |
caseGroup(Group object)
Returns the result of interpreting the object as an instance of 'Group'
|
T |
caseKeyword(Keyword object)
Returns the result of interpreting the object as an instance of 'Keyword'
|
T |
caseNegatedToken(NegatedToken object)
Returns the result of interpreting the object as an instance of 'Negated Token'
|
T |
caseParserRule(ParserRule object)
Returns the result of interpreting the object as an instance of 'Parser Rule'
|
T |
caseReferencedMetamodel(ReferencedMetamodel object)
Returns the result of interpreting the object as an instance of 'Referenced Metamodel'
|
T |
caseRuleCall(RuleCall object)
Returns the result of interpreting the object as an instance of 'Rule Call'
|
T |
caseTerminalRule(TerminalRule object)
Returns the result of interpreting the object as an instance of 'Terminal Rule'
|
T |
caseTypeRef(TypeRef object)
Returns the result of interpreting the object as an instance of 'Type Ref'
|
T |
caseUnorderedGroup(UnorderedGroup object)
Returns the result of interpreting the object as an instance of 'Unordered Group'
|
T |
caseUntilToken(UntilToken object)
Returns the result of interpreting the object as an instance of 'Until Token'
|
T |
caseWildcard(Wildcard object)
Returns the result of interpreting the object as an instance of 'Wildcard'
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static XtextPackage modelPackage
public XtextSwitch()
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseGrammar(Grammar object)
object
- the target of the switch.doSwitch(EObject)
public T caseAbstractRule(AbstractRule object)
object
- the target of the switch.doSwitch(EObject)
public T caseAbstractMetamodelDeclaration(AbstractMetamodelDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseGeneratedMetamodel(GeneratedMetamodel object)
object
- the target of the switch.doSwitch(EObject)
public T caseReferencedMetamodel(ReferencedMetamodel object)
object
- the target of the switch.doSwitch(EObject)
public T caseParserRule(ParserRule object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypeRef(TypeRef object)
object
- the target of the switch.doSwitch(EObject)
public T caseAbstractElement(AbstractElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseAction(Action object)
object
- the target of the switch.doSwitch(EObject)
public T caseKeyword(Keyword object)
object
- the target of the switch.doSwitch(EObject)
public T caseRuleCall(RuleCall object)
object
- the target of the switch.doSwitch(EObject)
public T caseAssignment(Assignment object)
object
- the target of the switch.doSwitch(EObject)
public T caseCrossReference(CrossReference object)
object
- the target of the switch.doSwitch(EObject)
public T caseTerminalRule(TerminalRule object)
object
- the target of the switch.doSwitch(EObject)
public T caseAbstractNegatedToken(AbstractNegatedToken object)
object
- the target of the switch.doSwitch(EObject)
public T caseNegatedToken(NegatedToken object)
object
- the target of the switch.doSwitch(EObject)
public T caseUntilToken(UntilToken object)
object
- the target of the switch.doSwitch(EObject)
public T caseWildcard(Wildcard object)
object
- the target of the switch.doSwitch(EObject)
public T caseEOF(EOF object)
object
- the target of the switch.doSwitch(EObject)
public T caseEnumRule(EnumRule object)
object
- the target of the switch.doSwitch(EObject)
public T caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseAlternatives(Alternatives object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnorderedGroup(UnorderedGroup object)
object
- the target of the switch.doSwitch(EObject)
public T caseGroup(Group object)
object
- the target of the switch.doSwitch(EObject)
public T caseCharacterRange(CharacterRange object)
object
- the target of the switch.doSwitch(EObject)
public T caseCompoundElement(CompoundElement object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)