org.eclipse.xtext.generator.parser.antlr
Class TerminalRuleToLexerBody

java.lang.Object
  extended by org.eclipse.xtext.util.XtextSwitch<java.lang.String>
      extended by org.eclipse.xtext.generator.parser.antlr.TerminalRuleToLexerBody

public class TerminalRuleToLexerBody
extends XtextSwitch<java.lang.String>

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
 
Method Summary
 java.lang.String caseAlternatives(Alternatives object)
          Returns the result of interpreting the object as an instance of 'Alternatives'.
 java.lang.String caseCharacterRange(CharacterRange object)
          Returns the result of interpreting the object as an instance of 'Character Range'.
 java.lang.String caseEOF(EOF object)
          Returns the result of interpreting the object as an instance of 'EOF'.
 java.lang.String caseGroup(Group object)
          Returns the result of interpreting the object as an instance of 'Group'.
 java.lang.String caseKeyword(Keyword object)
          Returns the result of interpreting the object as an instance of 'Keyword'.
 java.lang.String caseNegatedToken(NegatedToken object)
          Returns the result of interpreting the object as an instance of 'Negated Token'.
 java.lang.String caseParserRule(ParserRule object)
          Returns the result of interpreting the object as an instance of 'Parser Rule'.
 java.lang.String caseRuleCall(RuleCall object)
          Returns the result of interpreting the object as an instance of 'Rule Call'.
 java.lang.String caseTerminalRule(TerminalRule object)
          Returns the result of interpreting the object as an instance of 'Terminal Rule'.
 java.lang.String caseUntilToken(UntilToken object)
          Returns the result of interpreting the object as an instance of 'Until Token'.
 java.lang.String caseWildcard(Wildcard object)
          Returns the result of interpreting the object as an instance of 'Wildcard'.
 java.lang.String defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 java.lang.String print(TerminalRule rule)
           
static java.lang.String toLexerBody(TerminalRule rule)
           
 
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAction, caseAssignment, caseCompoundElement, caseCrossReference, caseEnumLiteralDeclaration, caseEnumRule, caseGeneratedMetamodel, caseGrammar, caseReferencedMetamodel, caseTypeRef, caseUnorderedGroup, doSwitch, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toLexerBody

public static java.lang.String toLexerBody(TerminalRule rule)

print

public java.lang.String print(TerminalRule rule)

caseAlternatives

public java.lang.String 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 class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Alternatives'.
See Also:
doSwitch(EObject)

caseCharacterRange

public java.lang.String caseCharacterRange(CharacterRange object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Character Range'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseCharacterRange in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Character Range'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.String defaultCase(org.eclipse.emf.ecore.EObject object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Overrides:
defaultCase in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
XtextSwitch.doSwitch(org.eclipse.emf.ecore.EObject)

caseGroup

public java.lang.String caseGroup(Group object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Group'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseGroup in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Group'.
See Also:
doSwitch(EObject)

caseKeyword

public java.lang.String caseKeyword(Keyword object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Keyword'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseKeyword in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Keyword'.
See Also:
doSwitch(EObject)

caseWildcard

public java.lang.String caseWildcard(Wildcard object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Wildcard'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseWildcard in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Wildcard'.
See Also:
doSwitch(EObject)

caseEOF

public java.lang.String caseEOF(EOF object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'EOF'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseEOF in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EOF'.
Since:
2.0
See Also:
doSwitch(EObject)

caseTerminalRule

public java.lang.String 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.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Terminal Rule'.
See Also:
doSwitch(EObject)

caseParserRule

public java.lang.String 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.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Parser Rule'.
See Also:
doSwitch(EObject)

caseRuleCall

public java.lang.String 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.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Rule Call'.
See Also:
doSwitch(EObject)

caseNegatedToken

public java.lang.String caseNegatedToken(NegatedToken object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Negated Token'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseNegatedToken in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Negated Token'.
See Also:
doSwitch(EObject)

caseUntilToken

public java.lang.String caseUntilToken(UntilToken object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Until Token'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseUntilToken in class XtextSwitch<java.lang.String>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Until Token'.
See Also:
doSwitch(EObject)