@Data public abstract class AbstractFunctionRule<T> extends AbstractRule implements IParameterlessFunctionRule<T>
_elementsExtensions, _eLSupport, _generateClassContext, _messageCollector, _ruleFactory, _ruleUtils, _typesExtensions, _typesRegistry| Constructor and Description |
|---|
AbstractFunctionRule(AnnotationMirror metaAnnotation,
Element metaElement,
Class<? extends T> type) |
AbstractFunctionRule(AnnotationMirror metaAnnotation,
Element metaElement,
Class<? extends T> type,
org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> errorValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
apply() |
T |
apply(Object src) |
List<org.eclipse.xtext.xbase.lib.Pair<Class<?>,String>> |
createParams(Element element) |
boolean |
equals(Object obj) |
T |
eval(Object src) |
protected abstract T |
evalInternal() |
T |
evalWithParams(Object[] args) |
org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> |
getErrorValue() |
List<org.eclipse.xtext.xbase.lib.Pair<Class<?>,String>> |
getParams() |
Class<? extends T> |
getType() |
int |
hashCode() |
boolean |
mustBeCalledWithParams() |
String |
toString() |
getMetaAnnotation, getMetaElement, getRuleCreationException, inRule, registerMetaTypeElement, throwRuleCreationException, throwRuleCreationExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaAnnotation, getMetaElementpublic AbstractFunctionRule(AnnotationMirror metaAnnotation, Element metaElement, Class<? extends T> type)
public AbstractFunctionRule(AnnotationMirror metaAnnotation, Element metaElement, Class<? extends T> type, org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> errorValue)
public List<org.eclipse.xtext.xbase.lib.Pair<Class<?>,String>> createParams(Element element)
public boolean mustBeCalledWithParams()
protected abstract T evalInternal()
public T apply()
apply in interface org.eclipse.xtext.xbase.lib.Functions.Function0<T>@Pure public int hashCode()
hashCode in class AbstractRule@Pure public boolean equals(Object obj)
equals in class AbstractRule@Pure public String toString()
toString in class AbstractRule@Pure public org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> getErrorValue()
Copyright © 2018. All rights reserved.