public class TranslationContext extends Object
| Constructor and Description |
|---|
TranslationContext(org.dmg.pmml.PMML pmml,
com.sun.codemodel.JCodeModel codeModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
_comment(String string) |
com.sun.codemodel.JInvocation |
_new(Class<?> type,
Object... args) |
com.sun.codemodel.JInvocation |
_new(com.sun.codemodel.JClass type,
Object... args) |
com.sun.codemodel.JType |
_ref(Class<?> type) |
void |
_return(com.sun.codemodel.JExpression resultExpr) |
void |
_return(com.sun.codemodel.JExpression testExpr,
com.sun.codemodel.JExpression trueResultExpr,
com.sun.codemodel.JExpression falseResultExpr) |
<V> void |
_return(com.sun.codemodel.JExpression valueExpr,
Map<?,V> resultMap,
V defaultResult) |
void |
_returnIf(com.sun.codemodel.JExpression testExpr,
com.sun.codemodel.JExpression resultExpr) |
void |
add(com.sun.codemodel.JStatement statement) |
void |
addIssue(org.jpmml.model.PMMLException issue) |
void |
addTranslation(org.dmg.pmml.Model model,
TranslatedModel translatedModel) |
com.sun.codemodel.JBlock |
block() |
com.sun.codemodel.JExpression |
constantFieldName(String name) |
com.sun.codemodel.JExpression |
constantFieldName(String name,
boolean markActive) |
<E> com.sun.codemodel.JFieldRef |
constantValues(Class<? extends E> componentType,
String name,
List<E> values) |
com.sun.codemodel.JExpression |
constantXmlName(QName name) |
com.sun.codemodel.JVar |
declare(Class<?> type,
String name,
com.sun.codemodel.JExpression init) |
com.sun.codemodel.JVar |
declare(com.sun.codemodel.JType type,
String name,
com.sun.codemodel.JExpression init) |
Scope |
ensureOpenScope() |
OperableRef |
ensureOperable(FieldInfo fieldInfo,
Function<com.sun.codemodel.JMethod,Boolean> declareAsVariableFunction) |
Set<String> |
getActiveFieldNames() |
ArgumentsRef |
getArgumentsVariable() |
com.sun.codemodel.JCodeModel |
getCodeModel() |
EvaluationContextRef |
getContextVariable() |
List<org.jpmml.model.PMMLException> |
getIssues() |
com.sun.codemodel.JTypeVar |
getNumberTypeVariable() |
com.sun.codemodel.JDefinedClass |
getOwner() |
com.sun.codemodel.JDefinedClass |
getOwner(Class<?> clazz) |
Deque<com.sun.codemodel.JDefinedClass> |
getOwners() |
org.dmg.pmml.PMML |
getPMML() |
Scope |
getScope() |
Map<org.dmg.pmml.Model,TranslatedModel> |
getTranslations() |
com.sun.codemodel.JTypeVar |
getTypeVariable(String name) |
ValueFactoryRef |
getValueFactoryVariable() |
com.sun.codemodel.JClass |
getValueMapType() |
com.sun.codemodel.JClass |
getValueType() |
com.sun.codemodel.JVar |
getVariable(String name) |
com.sun.codemodel.JInvocation |
invoke(com.sun.codemodel.JExpression variable,
String method,
Object... args) |
com.sun.codemodel.JInvocation |
invoke(com.sun.codemodel.JVar variable,
String method,
Object... args) |
boolean |
isNonMissing(OperableRef operableRef) |
void |
markNonMissing(OperableRef operableRef) |
void |
popOwner() |
void |
popScope() |
void |
pushOwner(com.sun.codemodel.JDefinedClass owner) |
void |
pushScope(Scope scope) |
com.sun.codemodel.JClass |
ref(Class<?> type) |
com.sun.codemodel.JInvocation |
staticInvoke(Class<?> type,
String method,
Object... args) |
com.sun.codemodel.JInvocation |
staticInvoke(com.sun.codemodel.JClass type,
String method,
Object... args) |
public TranslationContext(org.dmg.pmml.PMML pmml,
com.sun.codemodel.JCodeModel codeModel)
public com.sun.codemodel.JClass ref(Class<?> type)
public com.sun.codemodel.JType _ref(Class<?> type)
public com.sun.codemodel.JDefinedClass getOwner()
public com.sun.codemodel.JDefinedClass getOwner(Class<?> clazz)
public Deque<com.sun.codemodel.JDefinedClass> getOwners()
public void pushOwner(com.sun.codemodel.JDefinedClass owner)
public void popOwner()
public com.sun.codemodel.JVar getVariable(String name)
public ArgumentsRef getArgumentsVariable()
public EvaluationContextRef getContextVariable()
public ValueFactoryRef getValueFactoryVariable()
public boolean isNonMissing(OperableRef operableRef)
public void markNonMissing(OperableRef operableRef)
public OperableRef ensureOperable(FieldInfo fieldInfo, Function<com.sun.codemodel.JMethod,Boolean> declareAsVariableFunction)
public com.sun.codemodel.JTypeVar getTypeVariable(String name)
public com.sun.codemodel.JTypeVar getNumberTypeVariable()
public com.sun.codemodel.JClass getValueType()
public com.sun.codemodel.JClass getValueMapType()
public com.sun.codemodel.JVar declare(Class<?> type, String name, com.sun.codemodel.JExpression init)
public com.sun.codemodel.JVar declare(com.sun.codemodel.JType type,
String name,
com.sun.codemodel.JExpression init)
public void add(com.sun.codemodel.JStatement statement)
public void _comment(String string)
public void _returnIf(com.sun.codemodel.JExpression testExpr,
com.sun.codemodel.JExpression resultExpr)
public void _return(com.sun.codemodel.JExpression testExpr,
com.sun.codemodel.JExpression trueResultExpr,
com.sun.codemodel.JExpression falseResultExpr)
public void _return(com.sun.codemodel.JExpression resultExpr)
public <V> void _return(com.sun.codemodel.JExpression valueExpr,
Map<?,V> resultMap,
V defaultResult)
public com.sun.codemodel.JInvocation _new(com.sun.codemodel.JClass type,
Object... args)
public com.sun.codemodel.JInvocation invoke(com.sun.codemodel.JVar variable,
String method,
Object... args)
public com.sun.codemodel.JInvocation invoke(com.sun.codemodel.JExpression variable,
String method,
Object... args)
public com.sun.codemodel.JInvocation staticInvoke(Class<?> type, String method, Object... args)
public com.sun.codemodel.JInvocation staticInvoke(com.sun.codemodel.JClass type,
String method,
Object... args)
public com.sun.codemodel.JBlock block()
public Scope ensureOpenScope()
public Scope getScope()
public void pushScope(Scope scope)
public void popScope()
public com.sun.codemodel.JExpression constantFieldName(String name)
public com.sun.codemodel.JExpression constantFieldName(String name, boolean markActive)
public com.sun.codemodel.JExpression constantXmlName(QName name)
public <E> com.sun.codemodel.JFieldRef constantValues(Class<? extends E> componentType, String name, List<E> values)
public void addIssue(org.jpmml.model.PMMLException issue)
public org.dmg.pmml.PMML getPMML()
public com.sun.codemodel.JCodeModel getCodeModel()
public List<org.jpmml.model.PMMLException> getIssues()
public Map<org.dmg.pmml.Model,TranslatedModel> getTranslations()
public void addTranslation(org.dmg.pmml.Model model,
TranslatedModel translatedModel)
Copyright © 2023. All rights reserved.