.Java or .JavaConstructor.
setJavaConverter(handler, matcher=-1, autoArray=TRUE, description="", userObject=NULL, register = TRUE)matcher determines that .javaMatchFunctions,
either as (part of) a name of an element or the integer value. These
are then used to identify one of the built-in converter matching
functions. getJavaConverterDescriptions.matcher argument identifies one of
the built-in matching routines (i.e. assignable from, instance of,
equals) this is interpreted as a Java class identifier. That is
either a class name (which is resoloved, and expanded as necessary,
by Omegahat) and used to parameterize the particular use matching
routine.userObject) is convertible. This calls
setJavaConvertible with the class and matching
mechanism specified for this function..javaMatchFunctions
(hence a named integer) or a string identifying the C routine..javaMatchFunctions.
The class name is resolved by Omegahat and converted to use
`/' instead of `.' to separate the Java packages. This is so that it can be easily used in
the native C code.removeJavaConverter.index field, this is useful when
we wish to remove the converter as it acts as an identifier for
the converter. See removeJavaConverter.
getJavaConverterDescriptions
getNumJavaConverters
setJavaConvertible
## Not run:
# setJavaConverter(.RSJava.symbol("RealVariableConverter"),
# matcher="AssignableFrom",
# autoArray=TRUE,
# description="Omegahat RealVariable to numeric vector",
# userObject="RealVariable")
# ## End(Not run)
Run the code above in your browser using DataLab