org.eclipse.xtext.ui.editor.toggleComments
Class SLCommentPrefixCalculator

java.lang.Object
  extended by org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
      extended by org.eclipse.xtext.ui.editor.toggleComments.SLCommentPrefixCalculator

public class SLCommentPrefixCalculator
extends XtextSwitch<java.lang.Boolean>

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
 
Constructor Summary
protected SLCommentPrefixCalculator(java.util.List<java.lang.String> result)
           
 
Method Summary
 java.lang.Boolean caseAbstractNegatedToken(AbstractNegatedToken object)
          Returns the result of interpreting the object as an instance of 'Abstract Negated Token'.
 java.lang.Boolean caseAlternatives(Alternatives object)
          Returns the result of interpreting the object as an instance of 'Alternatives'.
 java.lang.Boolean caseCharacterRange(CharacterRange object)
          Returns the result of interpreting the object as an instance of 'Character Range'.
 java.lang.Boolean caseGroup(Group object)
          Returns the result of interpreting the object as an instance of 'Group'.
 java.lang.Boolean caseKeyword(Keyword object)
          Returns the result of interpreting the object as an instance of 'Keyword'.
 java.lang.Boolean caseUntilToken(UntilToken object)
          Returns the result of interpreting the object as an instance of 'Until Token'.
 
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractRule, caseAction, caseAssignment, caseCompoundElement, caseCrossReference, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseNegatedToken, caseParserRule, caseReferencedMetamodel, caseRuleCall, caseTerminalRule, caseTypeRef, caseUnorderedGroup, 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

SLCommentPrefixCalculator

protected SLCommentPrefixCalculator(java.util.List<java.lang.String> result)
Method Detail

caseAlternatives

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

caseGroup

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

caseAbstractNegatedToken

public java.lang.Boolean 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.Boolean>
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)

caseUntilToken

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

caseCharacterRange

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