@Data public class AbstractRule extends Object implements Rule
| Modifier and Type | Field and Description |
|---|---|
protected ElementsExtensions |
_elementsExtensions |
protected ELSupport |
_eLSupport |
protected GenerateClassContext |
_generateClassContext |
protected MessageCollector |
_messageCollector |
protected RuleFactory |
_ruleFactory |
protected RuleUtils |
_ruleUtils |
protected TypesExtensions |
_typesExtensions |
protected TypesRegistry |
_typesRegistry |
| Constructor and Description |
|---|
AbstractRule(AnnotationMirror metaAnnotation,
Element metaElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AnnotationMirror |
getMetaAnnotation()
The meta annoation of this rule or null, if the rule has no meta annoatation (f.e. purely template based rule)
|
Element |
getMetaElement()
The meta element of the rule.
|
RuleException[] |
getRuleCreationException() |
int |
hashCode() |
protected <T> T |
inRule(org.eclipse.xtext.xbase.lib.Functions.Function1<? super Object,? extends T> closure) |
void |
registerMetaTypeElement(Element element) |
protected void |
throwRuleCreationException(String msg) |
protected void |
throwRuleCreationException(String msg,
String avName) |
String |
toString() |
@Extension protected final transient GenerateClassContext _generateClassContext
@Extension protected final transient ElementsExtensions _elementsExtensions
@Extension protected final transient TypesRegistry _typesRegistry
@Extension protected final transient RuleUtils _ruleUtils
@Extension protected final transient RuleFactory _ruleFactory
@Extension protected final transient ELSupport _eLSupport
@Extension protected final transient TypesExtensions _typesExtensions
@Extension protected final transient MessageCollector _messageCollector
public AbstractRule(AnnotationMirror metaAnnotation, Element metaElement)
protected <T> T inRule(org.eclipse.xtext.xbase.lib.Functions.Function1<? super Object,? extends T> closure)
protected void throwRuleCreationException(String msg)
public void registerMetaTypeElement(Element element)
@Pure public AnnotationMirror getMetaAnnotation()
RulegetMetaAnnotation in interface Rule@Pure public Element getMetaElement()
RulegetMetaElement in interface Rule@Pure public RuleException[] getRuleCreationException()
Copyright © 2018. All rights reserved.