| Syntax |
|
| Documentation | $java.getFields: Returns a newline separated list of all field signatures from a named Java class. The server must be able to find the class via its classpath setting.
|
| 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 |
|
| Group | Special |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 1 |