public class TransformationRule extends ExtensibleNamedRule
| Modifier and Type | Field and Description |
|---|---|
protected ExecutableBlock<Void> |
body |
protected IEtlContext |
context |
protected ExecutableBlock<Boolean> |
guard |
protected Boolean |
isPrimary |
protected Collection<Object> |
rejected |
protected Parameter |
sourceParameter |
protected List<Parameter> |
targetParameters |
protected Set<Object> |
transformedElements |
allSuperRules, isAbstract, isGreedy, isLazy, ofKindCache, ofTypeCache, superRules, superRulesIdentifiersnameExpressionannotationBlock| Constructor and Description |
|---|
TransformationRule() |
calculateSuperRules, calculateSuperRules, getAllInstances, getAllOfKind, getAllOfType, getAllSuperRules, getRuleByName, getSuperRules, isAbstract, isGreedyequals, getName, getNameAst, getNameExpression, hashCode, setNameExpressiongetAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlockgetChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUriprotected Parameter sourceParameter
protected ExecutableBlock<Boolean> guard
protected ExecutableBlock<Void> body
protected IEtlContext context
protected Boolean isPrimary
protected Collection<Object> rejected
public AST getSuperRulesAst(AST cst)
getSuperRulesAst in class ExtensibleNamedRulepublic Parameter getSourceParameter()
public void setSourceParameter(Parameter sourceParameter)
public ExecutableBlock<Void> getBody()
public void setBody(ExecutableBlock<Void> body)
public ExecutableBlock<Boolean> getGuard()
public void setGuard(ExecutableBlock<Boolean> guard)
public void build(AST cst, IModule module)
build in interface ModuleElementbuild in class ExtensibleNamedRulepublic boolean isLazy(IEolContext context) throws EolRuntimeException
isLazy in class ExtensibleNamedRuleEolRuntimeExceptionpublic boolean hasTransformed(Object source)
public boolean appliesTo(Object source, IEtlContext context, boolean asSuperRule) throws EolRuntimeException
EolRuntimeExceptionpublic boolean appliesTo(Object source, IEtlContext context, boolean asSuperRule, boolean checkTypes) throws EolRuntimeException
EolRuntimeExceptionpublic Collection<?> getAllInstances(IEtlContext context) throws EolRuntimeException
context - EolRuntimeExceptionpublic void transformAll(IEtlContext context, Collection<Object> excluded, boolean includeLazy) throws EolRuntimeException
context - excluded - includeLazy - Whether to transform lazy rules.EolRuntimeExceptionpublic Collection<?> transform(Object source, Collection<Object> targets, IEtlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic Collection<?> transform(Object source, IEtlContext context) throws EolRuntimeException
EolRuntimeExceptionprotected void executeSuperRulesAndBody(Object source, Collection<Object> targets_, IEtlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean isPrimary(IEtlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean canTransformExcluded(IEtlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean shouldBeTransformed(Object instance, Collection<Object> excluded, IEtlContext context, boolean overrideLazy) throws EolRuntimeException
EolRuntimeExceptionpublic void dispose()
Copyright © 2020. All rights reserved.