Class TranslationContext


  • public class TranslationContext
    extends Object
    • Constructor Detail

      • TranslationContext

        public TranslationContext​(org.dmg.pmml.PMML pmml,
                                  com.sun.codemodel.JCodeModel codeModel)
    • Method Detail

      • ref

        public com.sun.codemodel.JClass ref​(Class<?> type)
      • genericRef

        public com.sun.codemodel.JClass genericRef​(Class<?> type,
                                                   Object... typeArgs)
      • genericRef

        public com.sun.codemodel.JClass genericRef​(Class<?> type,
                                                   List<com.sun.codemodel.JClass> typeArgs)
      • _ref

        public com.sun.codemodel.JType _ref​(Class<?> type)
      • wildcard

        public com.sun.codemodel.JClass wildcard()
      • getOwner

        public com.sun.codemodel.JDefinedClass getOwner()
      • getOwner

        public com.sun.codemodel.JDefinedClass getOwner​(Class<?> clazz)
      • getOwners

        public Deque<com.sun.codemodel.JDefinedClass> getOwners()
      • pushOwner

        public void pushOwner​(com.sun.codemodel.JDefinedClass owner)
      • popOwner

        public void popOwner()
      • getVariable

        public com.sun.codemodel.JVar getVariable​(String name)
      • getArgumentsVariable

        public ArgumentsRef getArgumentsVariable()
      • getValueFactoryVariable

        public ValueFactoryRef getValueFactoryVariable()
      • isNonMissing

        public boolean isNonMissing​(OperableRef operableRef)
      • markNonMissing

        public void markNonMissing​(OperableRef operableRef)
      • getTypeVariable

        public com.sun.codemodel.JTypeVar getTypeVariable​(String name)
      • getNumberTypeVariable

        public com.sun.codemodel.JTypeVar getNumberTypeVariable()
      • getValueType

        public com.sun.codemodel.JClass getValueType()
      • getValueMapType

        public com.sun.codemodel.JClass getValueMapType()
      • declare

        public com.sun.codemodel.JVar declare​(Class<?> type,
                                              String name,
                                              com.sun.codemodel.JExpression init)
      • declare

        public com.sun.codemodel.JVar declare​(com.sun.codemodel.JType type,
                                              String name,
                                              com.sun.codemodel.JExpression init)
      • add

        public void add​(com.sun.codemodel.JStatement statement)
      • _comment

        public void _comment​(String string)
      • _returnIf

        public void _returnIf​(com.sun.codemodel.JExpression testExpr,
                              com.sun.codemodel.JExpression resultExpr)
      • _return

        public void _return​(com.sun.codemodel.JExpression testExpr,
                            com.sun.codemodel.JExpression trueResultExpr,
                            com.sun.codemodel.JExpression falseResultExpr)
      • _return

        public void _return​(com.sun.codemodel.JExpression resultExpr)
      • _return

        public <V> void _return​(com.sun.codemodel.JExpression valueExpr,
                                Map<?,​V> resultMap,
                                V defaultResult)
      • _new

        public com.sun.codemodel.JInvocation _new​(Class<?> type,
                                                  Object... args)
      • _new

        public com.sun.codemodel.JInvocation _new​(com.sun.codemodel.JClass type,
                                                  Object... args)
      • invoke

        public com.sun.codemodel.JInvocation invoke​(com.sun.codemodel.JVar variable,
                                                    String method,
                                                    Object... args)
      • invoke

        public com.sun.codemodel.JInvocation invoke​(com.sun.codemodel.JExpression variable,
                                                    String method,
                                                    Object... args)
      • staticInvoke

        public com.sun.codemodel.JInvocation staticInvoke​(Class<?> type,
                                                          String method,
                                                          Object... args)
      • staticInvoke

        public com.sun.codemodel.JInvocation staticInvoke​(com.sun.codemodel.JClass type,
                                                          String method,
                                                          Object... args)
      • block

        public com.sun.codemodel.JBlock block()
      • ensureOpenScope

        public Scope ensureOpenScope()
      • getScope

        public Scope getScope()
      • pushScope

        public void pushScope​(Scope scope)
      • popScope

        public void popScope()
      • constantFieldName

        public com.sun.codemodel.JExpression constantFieldName​(String name)
      • constantFieldName

        public com.sun.codemodel.JExpression constantFieldName​(String name,
                                                               boolean markActive)
      • constantXmlName

        public com.sun.codemodel.JExpression constantXmlName​(QName name)
      • constantValues

        public <E> com.sun.codemodel.JFieldRef constantValues​(Class<? extends E> componentType,
                                                              String name,
                                                              List<E> values)
      • addIssue

        public void addIssue​(org.jpmml.model.PMMLException issue)
      • getPMML

        public org.dmg.pmml.PMML getPMML()
      • getCodeModel

        public com.sun.codemodel.JCodeModel getCodeModel()
      • getIssues

        public List<org.jpmml.model.PMMLException> getIssues()
      • addTranslation

        public void addTranslation​(org.dmg.pmml.Model model,
                                   TranslatedModel translatedModel)
      • getActiveFieldNames

        public Set<String> getActiveFieldNames()