Uses of Class
org.kink_lang.kink.Val
Packages that use Val
Package
Description
The core package of the Kink vm.
Interfaces used to make a host fun,
which is a FunVal to perform action in Java code.
Provides the Execution Graph DSL,
which is a convenient way to invoke Kink funs from Java actions or handlers.
Implementations of the Execution Graph DSL.
Temporary vals used by generated code.
Provides funs used from intrinsics.
Package of JAVA and JAVA_PROXY mods.
The internal classes for mods under kink/random.
Provides kink/STOPWATCH mod.
Provides utility classes around numbers.
Internal representation of vec vals.
-
Uses of Val in org.kink_lang.kink
Subclasses of Val in org.kink_lang.kinkModifier and TypeClassDescriptionclass
A binding val.class
A bin val, which represents an immutable array of bytes.class
An exception val.class
A fun val.final class
A java val.class
A location in a program.class
A num val.class
A str val.class
A trace.class
A varref val.class
A vec val.Fields in org.kink_lang.kink declared as ValModifier and TypeFieldDescriptionfinal Val
BoolHelper.falseVal
Kink false.final Val
Vm.nada
The nada val.final Val
BoolHelper.trueVal
Kink true.Methods in org.kink_lang.kink that return ValModifier and TypeMethodDescriptionfinal Val
Val.getVar
(int symHandle) Returns the target of the var specified bysym
; or null if absent.final Val
Vm.newVal()
Returns a new val.final Val
Vm.newVal
(SharedVars sharedVars) Returns a new val with the shared vars.BoolHelper.of
(boolean bl) Returns a bool val from the Java boolean.VarrefVal.owner()
Returns the owner of the var.Methods in org.kink_lang.kink that return types with arguments of type ValModifier and TypeMethodDescriptionVecVal.toList()
Returns a list containing the elements of the vec.Methods in org.kink_lang.kink with parameters of type ValModifier and TypeMethodDescriptionReturns a constant fun: which is a 0-ary fun returning the val constantly.boolean
Returns true if the val is a bool val.Returns a varref.Returns a varref.Returns a new vec.Returns a new vec.Returns a new vec from the range of the array.Returns a new vec.Returns a new vec.Returns a new vec.final void
Assignsval
to the var specified bysymHandle
.Method parameters in org.kink_lang.kink with type arguments of type ValModifier and TypeMethodDescriptionReturns aSharedVars
instance containing the entries ofmap
.Returns a vec containing the elems.<T> T
Vm.run
(HostFunAction bootstrapAction, Function<? super Val, ? extends T> onReturned, Function<? super ExceptionVal, ? extends T> onRaised) Runs a new execution stack which starts from the bootstrap action. -
Uses of Val in org.kink_lang.kink.hostfun
Methods in org.kink_lang.kink.hostfun that return ValModifier and TypeMethodDescriptionCallContext.arg
(int index) Returns the arg of the current call at the index.CallContext.recv()
Returns the actual receiver of the current call.Methods in org.kink_lang.kink.hostfun with parameters of type ValModifier and TypeMethodDescriptionBinds one arg to the flow.Binds the args to the flow.Binds two args to the flow.Binds the three args to the flow.Binds the four args to the flow.Binds the five args to the flow.Returns a call flow to call a method ofownerRecv
with no args.HostFunReaction.reaction
(HostContext ctx, Val calleeResult) Performs reaction on the result of invocation.Binds the recv to the flow. -
Uses of Val in org.kink_lang.kink.hostfun.graph
Methods in org.kink_lang.kink.hostfun.graph with parameters of type Val -
Uses of Val in org.kink_lang.kink.hostfun.graph.impl
Methods in org.kink_lang.kink.hostfun.graph.impl with parameters of type Val -
Uses of Val in org.kink_lang.kink.internal.compile.tempval
Subclasses of Val in org.kink_lang.kink.internal.compile.tempval -
Uses of Val in org.kink_lang.kink.internal.intrinsicsupport
Methods in org.kink_lang.kink.internal.intrinsicsupport that return ValModifier and TypeMethodDescriptionstatic Val
PreloadedFuns.preloadedFun
(Vm vm, String sym) Returns a preloaded fun.Methods in org.kink_lang.kink.internal.intrinsicsupport with parameters of type ValModifier and TypeMethodDescriptionstatic FunVal
BranchSupport.condNotBool
(Vm vm, int index, Val actual) Returns a nullary fun raising cond-result-not-bool error.static FunVal
IfSupport.condNotBool
(Vm vm, Val actual) Returns a fun to raise cond-not-bool exception.static FunVal
ArgsSupport.raiseNotVecRhs
(Vm vm, Val rhs) Returns not-vec-rhs fun, which takes no arg.static FunVal
Returns a nullary fun to raise sym-not-str error. -
Uses of Val in org.kink_lang.kink.internal.mod.java
Methods in org.kink_lang.kink.internal.mod.java that return Val -
Uses of Val in org.kink_lang.kink.internal.mod.random
Subclasses of Val in org.kink_lang.kink.internal.mod.random -
Uses of Val in org.kink_lang.kink.internal.mod.stopwatch
Methods in org.kink_lang.kink.internal.mod.stopwatch that return Val -
Uses of Val in org.kink_lang.kink.internal.num
Methods in org.kink_lang.kink.internal.num with parameters of type ValModifier and TypeMethodDescriptionstatic int
NumOperations.getElemIndex
(Val val, int size) Returns the exact int value of the val, if the val is a NumVal and it represents a valid element index exactly in the sequence which has the sizesize
, otherwise returns -1.static BigInteger
NumOperations.getExactBigInteger
(Val val) Returns an exact BigInteger from the val, if the val is a NumVal and it represents an int number.static OptionalInt
NumOperations.getExactInt
(Val val) Returns an exact int number from the val, if the val is a NumVal and it represents the exact int number.static OptionalLong
NumOperations.getExactLongBetween
(Val val, long min, long max) Returns an exact long number from the val, if the val is a NumVal and it represents the exact long number betweenmin
andmax
.static int
NumOperations.getPosIndex
(Val val, int size) Returns the exact int value of the val, if the val is a NumVal and it represents a valid position index exactly in the sequence which has the sizesize
, otherwise returns -1. -
Uses of Val in org.kink_lang.kink.internal.vec
Methods in org.kink_lang.kink.internal.vec that return ValModifier and TypeMethodDescriptionTraitError.SymNotStr.elem()
Returns the value of theelem
record component.VecInternal.get
(int index) Returns the indexed element.Methods in org.kink_lang.kink.internal.vec that return types with arguments of type ValModifier and TypeMethodDescriptionVecInternal.asList()
Returns a list which is a view of the vec internal.Methods in org.kink_lang.kink.internal.vec with parameters of type ValModifier and TypeMethodDescriptionInserts a val to the end.void
Copies the vals between [0] to [size - 1] to the dest array.abstract VecInternal
Inserts a val to the position index.TraitVecInternal.insertRange
(int index, Val[] src, int from, int to) abstract VecInternal
VecInternal.insertRange
(int index, Val[] src, int from, int to) Inserts the elements in the range ofsrc
to the position index.static VecInternal
Returns a new vec internal.static VecInternal
Returns a new vec containing elements betweenfrom
(inclusive) andto
(exclusive) on the array.static VecInternal
Returns a new vec internal.static VecInternal
Returns a new vec internal.static VecInternal
Returns a new vec internal.abstract VecInternal
Sets the indexed element.Method parameters in org.kink_lang.kink.internal.vec with type arguments of type ValModifier and TypeMethodDescriptionstatic VecInternal
Returns a new vec internal containing the elements of the list.Constructors in org.kink_lang.kink.internal.vec with parameters of type Val