|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.xtext.util.XtextSwitch<T>
public class XtextSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call 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
Field Summary | |
---|---|
protected static XtextPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
XtextSwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
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(org.eclipse.emf.ecore.EClass theEClass,
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 |
T |
doSwitch(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 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static XtextPackage modelPackage
Constructor Detail |
---|
public XtextSwitch()
Method Detail |
---|
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.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.
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)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |