org.eclipse.xtext.ui.editor.contentassist.antlr
Class ParserBasedContentAssistContextFactory.FollowElementCalculator

java.lang.Object
  extended by org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
      extended by org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.FollowElementCalculator
Enclosing class:
ParserBasedContentAssistContextFactory

public static class ParserBasedContentAssistContextFactory.FollowElementCalculator
extends XtextSwitch<java.lang.Boolean>


Field Summary
protected  IFollowElementAcceptor acceptor
           
 
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
 
Constructor Summary
ParserBasedContentAssistContextFactory.FollowElementCalculator()
           
 
Method Summary
 java.lang.Boolean caseAction(Action object)
          Returns the result of interpreting the object as an instance of 'Action'
 java.lang.Boolean caseAlternatives(Alternatives object)
          Returns the result of interpreting the object as an instance of 'Alternatives'
 java.lang.Boolean caseAssignment(Assignment object)
          Returns the result of interpreting the object as an instance of 'Assignment'
 java.lang.Boolean caseCrossReference(CrossReference object)
          Returns the result of interpreting the object as an instance of 'Cross Reference'
 java.lang.Boolean caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
          Returns the result of interpreting the object as an instance of 'Enum Literal Declaration'
 java.lang.Boolean caseEnumRule(EnumRule object)
          Returns the result of interpreting the object as an instance of 'Enum Rule'
 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 caseParserRule(ParserRule object)
          Returns the result of interpreting the object as an instance of 'Parser Rule'
 java.lang.Boolean caseRuleCall(RuleCall object)
          Returns the result of interpreting the object as an instance of 'Rule Call'
 java.lang.Boolean caseTerminalRule(TerminalRule object)
          Returns the result of interpreting the object as an instance of 'Terminal Rule'
 java.lang.Boolean caseUnorderedGroup(UnorderedGroup object)
          Returns the result of interpreting the object as an instance of 'Unordered Group'
 void doSwitch(UnorderedGroup group, java.util.List<AbstractElement> handledAlternatives)
           
 boolean isOptional(AbstractElement element)
           
 
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseCharacterRange, caseCompoundElement, caseEOF, caseGeneratedMetamodel, caseGrammar, caseNegatedToken, caseReferencedMetamodel, caseTypeRef, caseUntilToken, caseWildcard, defaultCase, doSwitch, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceptor

protected IFollowElementAcceptor acceptor
Constructor Detail

ParserBasedContentAssistContextFactory.FollowElementCalculator

public ParserBasedContentAssistContextFactory.FollowElementCalculator()
Method Detail

doSwitch

public void doSwitch(UnorderedGroup group,
                     java.util.List<AbstractElement> handledAlternatives)

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)

caseUnorderedGroup

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

Overrides:
caseUnorderedGroup in class XtextSwitch<java.lang.Boolean>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Unordered Group'.
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)

caseAction

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

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

caseAssignment

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

caseCrossReference

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

caseParserRule

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

caseEnumRule

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

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

caseEnumLiteralDeclaration

public java.lang.Boolean caseEnumLiteralDeclaration(EnumLiteralDeclaration object)
Description copied from class: XtextSwitch
Returns the result of interpreting the object as an instance of 'Enum Literal Declaration'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseEnumLiteralDeclaration in class XtextSwitch<java.lang.Boolean>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Enum Literal Declaration'.
See Also:
doSwitch(EObject)

caseRuleCall

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

caseTerminalRule

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

isOptional

public boolean isOptional(AbstractElement element)