Execute any Java constructor or method indexed in the JVM classpath.
This extension is proposed for testing purposes or to be used on a private Warp10 instance. Expose it on a public instance only with caution.
Note that SNAPSHOT
won't be able to work on arbitrary objects you bring to WarpScript with functions of this extension.
JAVAIMPORT // add an import statement to be used by the other functions below JAVANEW // creates a new instance of a Java class JAVAMETHOD // invoke a method of an instance JAVASTATICMETHOD // invoke a static method of a Java class
'java.util.Date' JAVAIMPORT [] 'Date' JAVANEW 'date' STORE $date [ NOW ] 'setTime' JAVAMETHOD
'org.apache.commons.lang3.math.NumberUtils.isParsable' JAVAIMPORT [ '123##456' ] 'isParsable' JAVASTATICMETHOD
Available on warpfleet or under src/main/warpscript/io.warp10/java-reflector/doc/
.
Contact: jean-charles.vialatte@senx.io