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 asstaticType. Namely,objectis null andstaticTypeis not a primitive type,objectis a boxed value andstaticTypeis the corresponding primitive type,- or 
objectis not null andstaticType.isInstance(object)is true. 
- Parameters:
 object- the nullable java object referencestaticType- the static type.- Returns:
 - a java val.
 - Throws:
 IllegalArgumentException- ifobjectcannot be typed asstaticType.
 - 
isTypable
Returns true if the object is typable asstaticType.- Parameters:
 object- the object to test.staticType- the type to test.- Returns:
 trueif the object is typable asstaticType.
 
 -