public class UsedRulesFinder extends XtextSwitch<java.lang.Void>
modelPackage
Constructor and Description |
---|
UsedRulesFinder(java.util.Collection<AbstractRule> usedRules) |
Modifier and Type | Method and 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) |
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAction, caseAlternatives, caseCharacterRange, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGroup, caseKeyword, caseNegatedToken, caseReferencedMetamodel, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, defaultCase, doSwitch, isSwitchFor
public UsedRulesFinder(java.util.Collection<AbstractRule> usedRules)
public java.lang.Void caseAbstractRule(AbstractRule object)
XtextSwitch
caseAbstractRule
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseParserRule(ParserRule object)
XtextSwitch
caseParserRule
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseTerminalRule(TerminalRule object)
XtextSwitch
caseTerminalRule
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseAbstractNegatedToken(AbstractNegatedToken object)
XtextSwitch
caseAbstractNegatedToken
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseRuleCall(RuleCall object)
XtextSwitch
caseRuleCall
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseCrossReference(CrossReference object)
XtextSwitch
caseCrossReference
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseAssignment(Assignment object)
XtextSwitch
caseAssignment
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseCompoundElement(CompoundElement object)
XtextSwitch
caseCompoundElement
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public java.lang.Void caseGrammar(Grammar object)
XtextSwitch
caseGrammar
in class XtextSwitch<java.lang.Void>
object
- the target of the switch.doSwitch(EObject)
public void compute(Grammar grammar)