java.lang.Object
org.kink_lang.kink.JavaHelper
The helper of
JavaVal
s.-
Method Summary
-
Method Details
-
of
Returns a java val.The
object
must be able to typed asstaticType
. Namely,object
is null andstaticType
is not a primitive type,object
is a boxed value andstaticType
is the corresponding primitive type,- or
object
is not null andstaticType.isInstance(object)
is true.
- Parameters:
object
- the nullable java object referencestaticType
- the static type.- Returns:
- a java val.
- Throws:
IllegalArgumentException
- ifobject
cannot be typed asstaticType
.
-
isTypable
Returns true if the object is typable asstaticType
.- Parameters:
object
- the object to test.staticType
- the type to test.- Returns:
true
if the object is typable asstaticType
.
-