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