java.lang.Object
org.kink_lang.kink.HostResultCore
org.kink_lang.kink.Val
org.kink_lang.kink.JavaVal
- All Implemented Interfaces:
HostResult
A java val.
A java val consists of an object reference, and a static type. the object reference is always typable as the static type. Namely,
- the object is null and the static type is not a primitive type,
- the object is a boxed value and the static type is the corresponding primitive type,
- or the object is not null and an instance of the static type.
-
Field Summary
-
Method Summary
Methods inherited from class org.kink_lang.kink.Val
getVar, getVarSymHandleSet, hasVar, identity, makeHostResultCore, setVar
-
Method Details
-
objectReference
Returns the java object reference.- Returns:
- the java object reference.
-
staticType
Returns the static type of the java object reference.- Returns:
- the static type of the java object reference.
-
toString
-
hashCode
public int hashCode() -
equals
Returnstrue
if the argument is equal tothis
java val.Namely, if
- they are members of the same vm,
- the object references are identical (via Java == operator),
- and the static types are equal.
-