Opaque type (joe)


Opaque is the "type" of all opaque Java values: the fallback when Joe has no other type information for a value. Thus, this page describes the interface of the type returned by

Methods

var type = Joe.typeOf(someOpaqueValue);

Note: there is no Opaque type defined in the global scope; Joe.typeOf() will return a distinct opaque type for each distinct Java class with no explicit Joe binding.

Methods


opaque.javaName()


opaque.javaName() → String

Returns the full name of the Java class to which the opaque value belongs. In Java terms:

return value.getClass().getName();

opaque.name()


opaque.name() → String

Returns the simple name of the Java class to which the opaque value belongs. In Java terms:

return value.getClass().getSimpleName();

opaque.toString()


opaque.toString() → String

Returns the same string as the javaName() method.