org.eclipse.xtext.ui.editor.templates
Class DefaultTemplateProposalProvider.FollowElementAcceptor

java.lang.Object
  extended by org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
      extended by org.eclipse.xtext.ui.editor.templates.DefaultTemplateProposalProvider.FollowElementAcceptor
All Implemented Interfaces:
IFollowElementAcceptor
Enclosing class:
DefaultTemplateProposalProvider

public class DefaultTemplateProposalProvider.FollowElementAcceptor
extends XtextSwitch<java.lang.Boolean>
implements IFollowElementAcceptor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.contentassist.IFollowElementAcceptor
IFollowElementAcceptor.NullSafeElementAcceptor
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.util.XtextSwitch
modelPackage
 
Constructor Summary
DefaultTemplateProposalProvider.FollowElementAcceptor(java.util.Collection<org.eclipse.jface.text.templates.TemplateContextType> result)
           
 
Method Summary
 void accept(AbstractElement element)
           
protected  void addContextType(Keyword keyword)
           
protected  void addContextType(ParserRule rule)
           
protected  void addContextType(java.lang.String id)
           
 java.lang.Boolean caseAssignment(Assignment object)
          Returns the result of interpreting the object as an instance of 'Assignment'
 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 defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'
 
Methods inherited from class org.eclipse.xtext.util.XtextSwitch
caseAbstractElement, caseAbstractMetamodelDeclaration, caseAbstractNegatedToken, caseAbstractRule, caseAction, caseAlternatives, caseCharacterRange, caseCompoundElement, caseCrossReference, caseEnumLiteralDeclaration, caseEnumRule, caseEOF, caseGeneratedMetamodel, caseGrammar, caseGroup, caseNegatedToken, caseReferencedMetamodel, caseTerminalRule, caseTypeRef, caseUnorderedGroup, caseUntilToken, caseWildcard, doSwitch, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTemplateProposalProvider.FollowElementAcceptor

public DefaultTemplateProposalProvider.FollowElementAcceptor(java.util.Collection<org.eclipse.jface.text.templates.TemplateContextType> result)
Method Detail

defaultCase

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

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)

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)

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)

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)

accept

public void accept(AbstractElement element)
Specified by:
accept in interface IFollowElementAcceptor

addContextType

protected void addContextType(ParserRule rule)

addContextType

protected void addContextType(Keyword keyword)

addContextType

protected void addContextType(java.lang.String id)