org.eclipse.xtext.ui.editor.templates
Class DefaultTemplateProposalProvider.FollowElementAcceptor
java.lang.Object
org.eclipse.xtext.util.XtextSwitch<java.lang.Boolean>
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
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 |
DefaultTemplateProposalProvider.FollowElementAcceptor
public DefaultTemplateProposalProvider.FollowElementAcceptor(java.util.Collection<org.eclipse.jface.text.templates.TemplateContextType> result)
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)