$java.getField

Returns the value of the field of an object or a class.
Syntax
    $java.getField{object}{field_name}
Documentation$java.getField:
Returns the value of the field of an object or a class. The first parameter may either be an object or the name of a java class. Field may be the name of a static field or an instance field.
    Paramter:
      1 - an object 2 - a field name
    Returns:
      Field value.
    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_ADVANCED
Minimum parameters2
Maximum parameters 2