java.lang.Object
org.kink_lang.kink.JavaHelper
The helper of
JavaVals.- See Also:
-
Method Summary
-
Method Details
-
of
Returns a java val.The
objectmust be able to typed astype. Namely,objectis null andtypeis not a primitive type,objectis a boxed value andtypeis the corresponding primitive type,- or
objectis not null andtype.isInstance(object)is true.
- Parameters:
object- the nullable java object referencetype- the static type.- Returns:
- a java val.
- Throws:
IllegalArgumentException- ifobjectcannot be typed astype.
-
isTypable
Returns true if the object is typable astype.- Parameters:
object- the object to test.type- the type to test.- Returns:
trueif the object is typable astype.
-