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.VoidcaseAbstractNegatedToken(AbstractNegatedToken object)Returns the result of interpreting the object as an instance of 'Abstract Negated Token'.java.lang.VoidcaseAbstractRule(AbstractRule object)Returns the result of interpreting the object as an instance of 'Abstract Rule'.java.lang.VoidcaseAssignment(Assignment object)Returns the result of interpreting the object as an instance of 'Assignment'.java.lang.VoidcaseCompoundElement(CompoundElement object)Returns the result of interpreting the object as an instance of 'Compound Element'.java.lang.VoidcaseCrossReference(CrossReference object)Returns the result of interpreting the object as an instance of 'Cross Reference'.java.lang.VoidcaseGrammar(Grammar object)Returns the result of interpreting the object as an instance of 'Grammar'.java.lang.VoidcaseParserRule(ParserRule object)Returns the result of interpreting the object as an instance of 'Parser Rule'.java.lang.VoidcaseRuleCall(RuleCall object)Returns the result of interpreting the object as an instance of 'Rule Call'.java.lang.VoidcaseTerminalRule(TerminalRule object)Returns the result of interpreting the object as an instance of 'Terminal Rule'.voidcompute(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:XtextSwitchReturns 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:
caseAbstractRulein 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:XtextSwitchReturns 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:
caseParserRulein 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:XtextSwitchReturns 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:
caseTerminalRulein 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:XtextSwitchReturns 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:
caseAbstractNegatedTokenin 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:XtextSwitchReturns 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:
caseRuleCallin 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:XtextSwitchReturns 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:
caseCrossReferencein 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:XtextSwitchReturns 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:
caseAssignmentin 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:XtextSwitchReturns 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:
caseCompoundElementin 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:XtextSwitchReturns 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:
caseGrammarin 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)
-
-