@Data public class SwitchRule extends AbstractFunctionRule<Object> implements ICodeFragmentRule
_elementsExtensions, _eLSupport, _generateClassContext, _messageCollector, _ruleFactory, _ruleUtils, _typesExtensions, _typesRegistry| Constructor and Description |
|---|
SwitchRule(AnnotationMirror switchAnnotation,
Element metaElement) |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
code() |
List<org.eclipse.xtext.xbase.lib.Pair<Class<?>,String>> |
createParams(Element element) |
boolean |
equals(Object obj) |
protected Object |
evalInternal() |
List<CaseRule<Object>> |
getCaseRules() |
ScopeRule<Object> |
getScopeRule() |
int |
hashCode() |
CharSequence |
surround(CharSequence surrounded) |
String |
toString() |
apply, apply, eval, evalWithParams, getErrorValue, getParams, getType, mustBeCalledWithParamsgetMetaAnnotation, getMetaElement, getRuleCreationException, inRule, registerMetaTypeElement, throwRuleCreationException, throwRuleCreationExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaAnnotation, getMetaElementpublic SwitchRule(AnnotationMirror switchAnnotation, Element metaElement)
public List<org.eclipse.xtext.xbase.lib.Pair<Class<?>,String>> createParams(Element element)
createParams in class AbstractFunctionRule<Object>protected Object evalInternal()
evalInternal in class AbstractFunctionRule<Object>public CharSequence code()
code in interface ICodeFragmentRulepublic CharSequence surround(CharSequence surrounded)
surround in interface ICodeFragmentRule@Pure public int hashCode()
hashCode in class AbstractFunctionRule<Object>@Pure public boolean equals(Object obj)
equals in class AbstractFunctionRule<Object>@Pure public String toString()
toString in class AbstractFunctionRule<Object>Copyright © 2018. All rights reserved.