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 |
|---|---|
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.evaluator.PMMLException issue) |
com.sun.codemodel.JBlock |
block() |
com.sun.codemodel.JExpression |
constantFieldName(org.dmg.pmml.FieldName name) |
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) |
FieldValueRef |
ensureFieldValueVariable(FieldInfo fieldInfo) |
Scope |
ensureOpenScope() |
OperableRef |
ensureOperableVariable(FieldInfo fieldInfo) |
ArgumentsRef |
getArgumentsVariable() |
com.sun.codemodel.JCodeModel |
getCodeModel() |
EvaluationContextRef |
getContextVariable() |
List<org.jpmml.evaluator.PMMLException> |
getIssues() |
com.sun.codemodel.JTypeVar |
getNumberTypeVariable() |
com.sun.codemodel.JDefinedClass |
getOwner() |
org.dmg.pmml.PMML |
getPMML() |
com.sun.codemodel.JExpression |
getRepresentation(org.dmg.pmml.PMMLObject pmmlObject) |
Scope |
getScope() |
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(com.sun.codemodel.JVar variable) |
void |
markNonMissing(com.sun.codemodel.JVar variable) |
void |
popOwner() |
void |
popScope() |
void |
pushOwner(com.sun.codemodel.JDefinedClass owner) |
void |
pushScope(Scope scope) |
void |
putRepresentation(org.dmg.pmml.PMMLObject pmmlObject,
com.sun.codemodel.JExpression reprExpr) |
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 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 FieldValueRef ensureFieldValueVariable(FieldInfo fieldInfo)
public boolean isNonMissing(com.sun.codemodel.JVar variable)
public void markNonMissing(com.sun.codemodel.JVar variable)
public OperableRef ensureOperableVariable(FieldInfo fieldInfo)
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 _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(org.dmg.pmml.FieldName name)
public com.sun.codemodel.JExpression constantXmlName(QName name)
public void addIssue(org.jpmml.evaluator.PMMLException issue)
public org.dmg.pmml.PMML getPMML()
public com.sun.codemodel.JCodeModel getCodeModel()
public List<org.jpmml.evaluator.PMMLException> getIssues()
public com.sun.codemodel.JExpression getRepresentation(org.dmg.pmml.PMMLObject pmmlObject)
public void putRepresentation(org.dmg.pmml.PMMLObject pmmlObject,
com.sun.codemodel.JExpression reprExpr)
Copyright © 2020. All rights reserved.