org.eclipse.xtext.xtext
Class UsedRulesFinder

java.lang.Object
  extended by org.eclipse.xtext.util.XtextSwitch<java.lang.Void>
      extended by org.eclipse.xtext.xtext.UsedRulesFinder

public class UsedRulesFinder
extends XtextSwitch<java.lang.Void>

Author:
Sebastian Zarnekow - Initial contribution and API, Michael Clay

Field Summary
 
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
 
Constructor Summary
UsedRulesFinder(java.util.Collection<AbstractRule> usedRules)
           
 
Method Summary
 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, caseCharacterRange, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGroup, caseKeyword, caseNegatedToken, caseReferencedMetamodel, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, defaultCase, doSwitch, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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 class XtextSwitch<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)