Liking cljdoc? Tell your friends :D

insn.op

Bytecode helpers. Fns for opcodes with an underscore in their name (e.g., IF_ICMPEQ) use a dash instead (e.g., if-icmpeq).

Bytecode helpers. Fns for opcodes with an underscore in their name
(e.g., IF_ICMPEQ) use a dash instead (e.g., if-icmpeq).
raw docstring

aaloadclj

(aaload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

aastoreclj

(aastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

aconst-nullclj

(aconst-null v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

aloadclj

(aload v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

anewclj

(anew v)

Alias for new since new is a special form in clojure.

Alias for new since new is a special form in clojure.
sourceraw docstring

anewarrayclj

(anewarray v stype)

Special type instruction.

Special type instruction.
sourceraw docstring

areturnclj

(areturn v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

arraylengthclj

(arraylength v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

astoreclj

(astore v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

athrowclj

(athrow v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

baloadclj

(baload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

bastoreclj

(bastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

bipushclj

(bipush v n)

Push int value n.

Push int value `n`.
sourceraw docstring

caloadclj

(caload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

castoreclj

(castore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

checkcastclj

(checkcast v stype)

Special type instruction.

Special type instruction.
sourceraw docstring

compileclj

(compile ops)

Compile a sequence of op seqs to a fn that accepts an ASM MethodVisitor to emit method bytecode.

Nested bytecode sequences will be flattened, and nils removed.

Compile a sequence of op seqs to a fn that accepts an ASM
MethodVisitor to emit method bytecode.

Nested bytecode sequences will be flattened, and nils removed.
sourceraw docstring

d2fclj

(d2f v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

d2iclj

(d2i v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

d2lclj

(d2l v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

daddclj

(dadd v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

daloadclj

(daload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dastoreclj

(dastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dcmpgclj

(dcmpg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dcmplclj

(dcmpl v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dconst-0clj

(dconst-0 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dconst-1clj

(dconst-1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ddivclj

(ddiv v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dloadclj

(dload v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

dmulclj

(dmul v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dnegclj

(dneg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dremclj

(drem v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dreturnclj

(dreturn v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dstoreclj

(dstore v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

dsubclj

(dsub v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dupclj

(dup v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dup-x1clj

(dup-x1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dup-x2clj

(dup-x2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dup2clj

(dup2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dup2-x1clj

(dup2-x1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

dup2-x2clj

(dup2-x2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

f2dclj

(f2d v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

f2iclj

(f2i v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

f2lclj

(f2l v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

faddclj

(fadd v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

faloadclj

(faload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fastoreclj

(fastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fcmpgclj

(fcmpg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fcmplclj

(fcmpl v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fconst-0clj

(fconst-0 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fconst-1clj

(fconst-1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fconst-2clj

(fconst-2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fdivclj

(fdiv v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

floadclj

(fload v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

fmulclj

(fmul v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fnegclj

(fneg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fremclj

(frem v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

freturnclj

(freturn v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

fstoreclj

(fstore v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

fsubclj

(fsub v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

getfieldclj

(getfield v cls fname)
(getfield v cls fname ftype)

Read or write type ftype instance or static field named fname of class cls.

If the type is not provided, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Read or write type `ftype` instance or static field named `fname` of
class `cls`.

If the type is not provided, it will be determined through reflection.
In this case, the class must be given as a string or Class object.
sourceraw docstring

getstaticclj

(getstatic v cls fname)
(getstatic v cls fname ftype)

Read or write type ftype instance or static field named fname of class cls.

If the type is not provided, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Read or write type `ftype` instance or static field named `fname` of
class `cls`.

If the type is not provided, it will be determined through reflection.
In this case, the class must be given as a string or Class object.
sourceraw docstring

gotoclj

(goto v label)

Unconditionally jump to offset label.

Unconditionally jump to offset `label`.
sourceraw docstring

i2bclj

(i2b v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

i2cclj

(i2c v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

i2dclj

(i2d v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

i2fclj

(i2f v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

i2lclj

(i2l v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

i2sclj

(i2s v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iaddclj

(iadd v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ialoadclj

(iaload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iandclj

(iand v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iastoreclj

(iastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-0clj

(iconst-0 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-1clj

(iconst-1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-2clj

(iconst-2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-3clj

(iconst-3 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-4clj

(iconst-4 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-5clj

(iconst-5 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iconst-m1clj

(iconst-m1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

idivclj

(idiv v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

if-acmpeqclj

(if-acmpeq v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-acmpneclj

(if-acmpne v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpeqclj

(if-icmpeq v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpgeclj

(if-icmpge v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpgtclj

(if-icmpgt v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpleclj

(if-icmple v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpltclj

(if-icmplt v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

if-icmpneclj

(if-icmpne v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifeqclj

(ifeq v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifgeclj

(ifge v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifgtclj

(ifgt v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifleclj

(ifle v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifltclj

(iflt v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifneclj

(ifne v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifnonnullclj

(ifnonnull v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

ifnullclj

(ifnull v label)

Conditionally jump to offset label.

Conditionally jump to offset `label`.
sourceraw docstring

iincclj

(iinc v idx n)

Increment int local variable index idx by amount n.

Increment int local variable index `idx` by amount `n`.
sourceraw docstring

iloadclj

(iload v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

imulclj

(imul v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

inegclj

(ineg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

instanceofclj

(instanceof v stype)

Special type instruction.

Special type instruction.
sourceraw docstring

invokedynamicclj

(invokedynamic v mname desc boot)
(invokedynamic v mname desc boot args)

Call bootstrap method boot to return callsite for method mname with arguments and return type given by desc. Note that this instruction requires version 7 bytecode and above.

The bootstrap method can be a ASM Handle (see insn.util) or an op sequence of the form specified by the invokeX instructions.

An optional seq of constant arguments args may be given and each must be either an Integer, Float, Long, Double, String, ASM Type, ASM Handle, or ASM ConstantDynamic object. These are passed to the bootstrap method.

Call bootstrap method `boot` to return callsite for method `mname`
with arguments and return type given by `desc`. Note that this
instruction requires version 7 bytecode and above.

The bootstrap method can be a ASM Handle (see `insn.util`) or an op
sequence of the form specified by the invokeX instructions.

An optional seq of constant arguments `args` may be given and each
must be either an Integer, Float, Long, Double, String, ASM Type, ASM
Handle, or ASM ConstantDynamic object. These are passed to the
bootstrap method.
sourceraw docstring

invokeinterfaceclj

(invokeinterface v cls mname)
(invokeinterface v cls mname desc-or-arity)

Call method named mname of class cls with the method arguments and return type given by desc.

If the type descriptor is not provided or is a numeric arity, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Call method named `mname` of class `cls` with the method arguments
and return type given by `desc`.

If the type descriptor is not provided or is a numeric arity, it will
be determined through reflection. In this case, the class must be
given as a string or Class object.
sourceraw docstring

invokespecialclj

(invokespecial v cls mname)
(invokespecial v cls mname desc-or-arity)

Call method named mname of class cls with the method arguments and return type given by desc.

If the type descriptor is not provided or is a numeric arity, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Call method named `mname` of class `cls` with the method arguments
and return type given by `desc`.

If the type descriptor is not provided or is a numeric arity, it will
be determined through reflection. In this case, the class must be
given as a string or Class object.
sourceraw docstring

invokestaticclj

(invokestatic v cls mname)
(invokestatic v cls mname desc-or-arity)

Call method named mname of class cls with the method arguments and return type given by desc.

If the type descriptor is not provided or is a numeric arity, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Call method named `mname` of class `cls` with the method arguments
and return type given by `desc`.

If the type descriptor is not provided or is a numeric arity, it will
be determined through reflection. In this case, the class must be
given as a string or Class object.
sourceraw docstring

invokevirtualclj

(invokevirtual v cls mname)
(invokevirtual v cls mname desc-or-arity)

Call method named mname of class cls with the method arguments and return type given by desc.

If the type descriptor is not provided or is a numeric arity, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Call method named `mname` of class `cls` with the method arguments
and return type given by `desc`.

If the type descriptor is not provided or is a numeric arity, it will
be determined through reflection. In this case, the class must be
given as a string or Class object.
sourceraw docstring

iorclj

(ior v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iremclj

(irem v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ireturnclj

(ireturn v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ishlclj

(ishl v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ishrclj

(ishr v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

istoreclj

(istore v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

isubclj

(isub v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

iushrclj

(iushr v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ixorclj

(ixor v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

jsrclj

(jsr v label)

Unconditionally jump to offset label.

Unconditionally jump to offset `label`.
sourceraw docstring

l2dclj

(l2d v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

l2fclj

(l2f v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

l2iclj

(l2i v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

laddclj

(ladd v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

laloadclj

(laload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

landclj

(land v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lastoreclj

(lastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lcmpclj

(lcmp v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lconst-0clj

(lconst-0 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lconst-1clj

(lconst-1 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

ldcclj

(ldc v x)

Load constant null, int, float, String, Type, Handle, or ConstantDynamic value x.

Load constant null, int, float, String, Type, Handle, or
ConstantDynamic value `x`.
sourceraw docstring

ldc2clj

(ldc2 v x)

Load constant long or double value x.

Load constant long or double value `x`.
sourceraw docstring

ldivclj

(ldiv v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

line-numberclj

(line-number v n label)

Add a reference to source line n starting at label. If the label has not yet been visited (marked), an error will be thrown.

Add a reference to source line `n` starting at `label`. If the label
has not yet been visited (marked), an error will be thrown.
sourceraw docstring

lloadclj

(lload v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

lmulclj

(lmul v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lnegclj

(lneg v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

local-variableclj

(local-variable v vname vtype start end idx)

Add a reference to a local variable vname of type vtype with index number idx. The variable scope is demarcated by labels start and end. If either label has not yet been visited (marked), an error will be thrown.

Add a reference to a local variable `vname` of type `vtype` with
index number `idx`. The variable scope is demarcated by labels `start`
and `end`. If either label has not yet been visited (marked), an
error will be thrown.
sourceraw docstring

lookupswitchclj

(lookupswitch v default m)

Like lookupswitch* with the keys and labels given as a map.

Like `lookupswitch*` with the keys and labels given as a map.
sourceraw docstring

lookupswitch*clj

(lookupswitch* v default tkeys tlabels)

Jump to a corresponding label given in tlabels by an int table lookup of the pre-sorted tkeys (as per zipmap.) If no mapping is found, jump to the default label.

Jump to a corresponding label given in `tlabels` by an int table
lookup of the pre-sorted `tkeys` (as per `zipmap`.) If no mapping is
found, jump to the `default` label.
sourceraw docstring

lorclj

(lor v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lremclj

(lrem v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lreturnclj

(lreturn v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lshlclj

(lshl v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lshrclj

(lshr v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lstoreclj

(lstore v idx)

Push or write local variable at index idx.

Push or write local variable at index `idx`.
sourceraw docstring

lsubclj

(lsub v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lushrclj

(lushr v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

lxorclj

(lxor v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

markclj

(mark v label)

Alias for visit-label!.

Alias for visit-label!.
sourceraw docstring

monitorenterclj

(monitorenter v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

monitorexitclj

(monitorexit v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

multianewarrayclj

(multianewarray v atype dims)

Make a new array of type atype with dims dimensions.

Make a new array of type `atype` with `dims` dimensions.
sourceraw docstring

newclj

(new v stype)

Special type instruction.

Special type instruction.
sourceraw docstring

newarrayclj

(newarray v atype)

Make a new primitive array of operand type atype.

Make a new primitive array of operand type `atype`.
sourceraw docstring

nopclj

(nop v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

op-seqclj

(op-seq xs)

Return a flattened sequence of ops.

Return a flattened sequence of ops.
sourceraw docstring

popclj

(pop v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

pop1clj

(pop1 v)

Alias for pop since clojure.core also defines pop.

Alias for pop since clojure.core also defines pop.
sourceraw docstring

pop2clj

(pop2 v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

putfieldclj

(putfield v cls fname)
(putfield v cls fname ftype)

Read or write type ftype instance or static field named fname of class cls.

If the type is not provided, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Read or write type `ftype` instance or static field named `fname` of
class `cls`.

If the type is not provided, it will be determined through reflection.
In this case, the class must be given as a string or Class object.
sourceraw docstring

putstaticclj

(putstatic v cls fname)
(putstatic v cls fname ftype)

Read or write type ftype instance or static field named fname of class cls.

If the type is not provided, it will be determined through reflection. In this case, the class must be given as a string or Class object.

Read or write type `ftype` instance or static field named `fname` of
class `cls`.

If the type is not provided, it will be determined through reflection.
In this case, the class must be given as a string or Class object.
sourceraw docstring

retclj

(ret v idx)

Continue from address given by local variable at index idx.

Continue from address given by local variable at index `idx`.
sourceraw docstring

returnclj

(return v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

saloadclj

(saload v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

sastoreclj

(sastore v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

sipushclj

(sipush v n)

Push int value n.

Push int value `n`.
sourceraw docstring

swapclj

(swap v)

Single-byte opcode.

Single-byte opcode.
sourceraw docstring

tableswitchclj

(tableswitch v imin imax default labels)

Constant-time index of int table between imin and imax inclusive, jumping to corresponding label in labels. If the value 'off' is not within range, jump to the default label. Otherwise, jump to the label index given by: (- (- imax imin) (- imax off))

Constant-time index of int table between `imin` and `imax` inclusive,
jumping to corresponding label in `labels`. If the value 'off' is not
within range, jump to the `default` label. Otherwise, jump to the
label index given by: (- (- imax imin) (- imax off))
sourceraw docstring

trycatchclj

(trycatch v start end handler etype)

Mark region between start and end labels as protected by label handler against throwable etype. To handle all exceptions, pass nil as the throwable type.

Mark region between `start` and `end` labels as protected by label
`handler` against throwable `etype`. To handle all exceptions, pass
nil as the throwable type.
sourceraw docstring

visit-label!clj

(visit-label! v label)

Set label offset to current visitor position.

Set label offset to current visitor position.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close