typeOf

Synopsis

^ typeOf($scalar)

Returns the Java class of the container referenced by $scalar

Parameters

$scalar - The scalar to return the type of

Returns

A Java class object.

Examples

$long = 4L; $double = 3.5; $result = $long + $double; # what is the result? println("Type of result is: " . typeOf($result));

Type of result is: class sleep.engine.types.DoubleValue

See Also