$java.new

Creates a Java object instance of a given class.
Syntax
    $java.new{class_name}[{parameter}]*
Documentation$java.new:
Creates a Java object instance of a given class. The first parameter names the class and may be enhanced by the constructors parameter signatures in round brackets to avoid ambiguities.
    Paramter:
      1 - Java class name 2 ... n - Constructor parameters
    Returns:
      New object instance.
    Throws:
      Exception
Examples

Information about a class

$set{class}{java.math.BigDecimal} Constructors:
$java.getConstructors{$get{class}}
Methods:
$java.getMethods{$get{class}}
Fields:
$java.getFields{$get{class}}
Field (separatorChar): $java.getField{$get{class}}{ROUND_DOWN}

Initializing and using an object

$set{o}{$java.new{java.math.BigDecimal(java.lang.String)}{10}} Class: $java.getClass{$get{o}}
Invoke: $set{r}{$java.invoke{$get{o}}{equals(java.math.BigDecimal)}{10}} $// cast 10 to new BigDecimal $java.invoke{$get{r}}{toString}
Print float value: $java.invoke{$get{o}}{floatValue}
Add to itself: $java.invoke{$get{o}}{add}{$get{o}} $// no need to give param types 'cause we neither need a cast nor is it unclear which function is meant
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_EXPERT
Minimum parameters1
Maximum parameters <unlimited>