$java.getConstructors

Returns the constructor signatures of a java class.
Syntax
    $java.getConstructors{class_name}
Documentation$java.getConstructors:
Returns a newline separated list of all constructor signatures of the specified java class. The class of course must be in the classpath of the server.
    Paramter:
      1 - java class name
    Returns:
      Constructor list.
    Throws:
      See java API documentation for Class.forName.
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_BASIC
Minimum parameters1
Maximum parameters 1