Package org.eclipse.xtext.xtext
Class CurrentTypeFinder.Implementation
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
-
- org.eclipse.xtext.xtext.CurrentTypeFinder.Implementation
-
- Enclosing class:
- CurrentTypeFinder
public static class CurrentTypeFinder.Implementation extends XtextSwitch<java.lang.Boolean>
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description Implementation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
caseAbstractElement(AbstractElement object)
Returns the result of interpreting the object as an instance of 'Abstract Element'.java.lang.Boolean
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'.java.lang.Boolean
caseAlternatives(Alternatives object)
Returns the result of interpreting the object as an instance of 'Alternatives'.java.lang.Boolean
caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'.java.lang.Boolean
caseCompoundElement(CompoundElement object)
Returns the result of interpreting the object as an instance of 'Compound Element'.java.lang.Boolean
caseCrossReference(CrossReference object)
Returns the result of interpreting the object as an instance of 'Cross Reference'.java.lang.Boolean
caseParserRule(ParserRule object)
Returns the result of interpreting the object as an instance of 'Parser Rule'.java.lang.Boolean
caseRuleCall(RuleCall object)
Returns the result of interpreting the object as an instance of 'Rule Call'.void
computeResult(AbstractRule rule, AbstractElement element)
protected org.eclipse.emf.ecore.EClassifier
getCompatibleType(org.eclipse.emf.ecore.EClassifier a, org.eclipse.emf.ecore.EClassifier b, org.eclipse.emf.ecore.EObject context)
org.eclipse.emf.ecore.EClassifier
getResult()
-
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAnnotation, caseCharacterRange, caseCompositeCondition, caseCondition, caseConjunction, caseDisjunction, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseGroup, caseKeyword, caseLiteralCondition, caseNamedArgument, caseNegatedToken, caseNegation, caseParameter, caseParameterReference, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Method Detail
-
getResult
public org.eclipse.emf.ecore.EClassifier getResult()
-
computeResult
public void computeResult(AbstractRule rule, AbstractElement element)
-
caseAbstractElement
public java.lang.Boolean caseAbstractElement(AbstractElement object)
Description copied from class:XtextSwitch
Returns 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:
caseAbstractElement
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Abstract Element'.
- See Also:
doSwitch(EObject)
-
caseAction
public java.lang.Boolean caseAction(Action object)
Description copied from class:XtextSwitch
Returns 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:
caseAction
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action'.
- See Also:
doSwitch(EObject)
-
caseParserRule
public java.lang.Boolean caseParserRule(ParserRule object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Parser Rule'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseParserRule
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parser Rule'.
- See Also:
doSwitch(EObject)
-
caseAssignment
public java.lang.Boolean caseAssignment(Assignment object)
Description copied from class:XtextSwitch
Returns 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:
caseAssignment
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assignment'.
- See Also:
doSwitch(EObject)
-
caseCompoundElement
public java.lang.Boolean caseCompoundElement(CompoundElement object)
Description copied from class:XtextSwitch
Returns the result of interpreting the object as an instance of 'Compound Element'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCompoundElement
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Compound Element'.
- See Also:
doSwitch(EObject)
-
caseCrossReference
public java.lang.Boolean caseCrossReference(CrossReference object)
Description copied from class:XtextSwitch
Returns 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:
caseCrossReference
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Cross Reference'.
- See Also:
doSwitch(EObject)
-
caseRuleCall
public java.lang.Boolean caseRuleCall(RuleCall object)
Description copied from class:XtextSwitch
Returns 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:
caseRuleCall
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Rule Call'.
- See Also:
doSwitch(EObject)
-
getCompatibleType
protected org.eclipse.emf.ecore.EClassifier getCompatibleType(org.eclipse.emf.ecore.EClassifier a, org.eclipse.emf.ecore.EClassifier b, org.eclipse.emf.ecore.EObject context)
-
caseAlternatives
public java.lang.Boolean caseAlternatives(Alternatives object)
Description copied from class:XtextSwitch
Returns 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:
caseAlternatives
in classXtextSwitch<java.lang.Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Alternatives'.
- See Also:
doSwitch(EObject)
-
-