java.lang.classfile.instruction
37 classes of the module java.base.
Load them with:
using {
"java.lang.classfile.instruction"
}
ArrayLoadInstruction#
interface · java.lang.classfile.instruction.ArrayLoadInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op) | static ArrayLoadInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ArrayStoreInstruction#
interface · java.lang.classfile.instruction.ArrayStoreInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op) | static ArrayStoreInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
BranchInstruction#
interface · java.lang.classfile.instruction.BranchInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op,target) | static BranchInstruction of(Opcode op, Label target) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
target | target() | Label target() |
CharacterRange#
interface · java.lang.classfile.instruction.CharacterRange
Extends: PseudoInstruction
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FLAG_STATEMENT | int | constant · static | o.FLAG_STATEMENT |
FLAG_BLOCK | int | constant · static | o.FLAG_BLOCK |
FLAG_ASSIGNMENT | int | constant · static | o.FLAG_ASSIGNMENT |
FLAG_FLOW_CONTROLLER | int | constant · static | o.FLAG_FLOW_CONTROLLER |
FLAG_FLOW_TARGET | int | constant · static | o.FLAG_FLOW_TARGET |
FLAG_INVOKE | int | constant · static | o.FLAG_INVOKE |
FLAG_CREATE | int | constant · static | o.FLAG_CREATE |
FLAG_BRANCH_TRUE | int | constant · static | o.FLAG_BRANCH_TRUE |
FLAG_BRANCH_FALSE | int | constant · static | o.FLAG_BRANCH_FALSE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
characterRangeEnd | characterRangeEnd() | int characterRangeEnd() |
characterRangeStart | characterRangeStart() | int characterRangeStart() |
endScope | endScope() | Label endScope() |
flags | flags() | int flags() |
of | of(startScope,endScope,characterRangeStart,characterRangeEnd,flags) | static CharacterRange of(Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags) |
startScope | startScope() | Label startScope() |
ConstantInstruction#
interface · java.lang.classfile.instruction.ConstantInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
constantValue | constantValue() | ConstantDesc constantValue() |
ofArgument | ofArgument(op,value) | static ArgumentConstantInstruction ofArgument(Opcode op, int value) |
ofIntrinsic | ofIntrinsic(op) | static IntrinsicConstantInstruction ofIntrinsic(Opcode op) |
ofLoad | ofLoad(op,constant) | static LoadConstantInstruction ofLoad(Opcode op, LoadableConstantEntry constant) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ConstantInstructionArgumentConstantInstruction#
interface · java.lang.classfile.instruction.ConstantInstruction$ArgumentConstantInstruction
Extends: ConstantInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
constantValue | constantValue() | Integer constantValue() |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ConstantInstructionIntrinsicConstantInstruction#
interface · java.lang.classfile.instruction.ConstantInstruction$IntrinsicConstantInstruction
Extends: ConstantInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
constantValue | constantValue() | ConstantDesc constantValue() |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ConstantInstructionLoadConstantInstruction#
interface · java.lang.classfile.instruction.ConstantInstruction$LoadConstantInstruction
Extends: ConstantInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
constantEntry | constantEntry() | LoadableConstantEntry constantEntry() |
constantValue | constantValue() | ConstantDesc constantValue() |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ConvertInstruction#
interface · java.lang.classfile.instruction.ConvertInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
fromType | fromType() | TypeKind fromType() |
of | of(op)of([fromType,toType])of([ :fromType = v, :toType = v ]) | static ConvertInstruction of(Opcode op)static ConvertInstruction of(TypeKind fromType, TypeKind toType) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
toType | toType() | TypeKind toType() |
DiscontinuedInstruction#
interface · java.lang.classfile.instruction.DiscontinuedInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
DiscontinuedInstructionJsrInstruction#
interface · java.lang.classfile.instruction.DiscontinuedInstruction$JsrInstruction
Extends: DiscontinuedInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(target)of([op,target])of([ :op = v, :target = v ]) | static JsrInstruction of(Label target)static JsrInstruction of(Opcode op, Label target) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
target | target() | Label target() |
DiscontinuedInstructionRetInstruction#
interface · java.lang.classfile.instruction.DiscontinuedInstruction$RetInstruction
Extends: DiscontinuedInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(slot)of([op,slot])of([ :op = v, :slot = v ]) | static RetInstruction of(int slot)static RetInstruction of(Opcode op, int slot) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
slot | slot() | int slot() |
ExceptionCatch#
interface · java.lang.classfile.instruction.ExceptionCatch
Extends: PseudoInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
catchType | catchType() | Optional catchType() |
handler | handler() | Label handler() |
of | of([handler,tryStart,tryEnd])of([ :handler = v, :tryStart = v, :tryEnd = v ])of([handler,tryStart,tryEnd,catchTypeEntry])of([ :handler = v, :tryStart = v, :tryEnd = v, :catchTypeEntry = v ]) | static ExceptionCatch of(Label handler, Label tryStart, Label tryEnd)static ExceptionCatch of(Label handler, Label tryStart, Label tryEnd, Optional catchTypeEntry) |
tryEnd | tryEnd() | Label tryEnd() |
tryStart | tryStart() | Label tryStart() |
FieldInstruction#
interface · java.lang.classfile.instruction.FieldInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
field | field() | FieldRefEntry field() |
name | name() | Utf8Entry name() |
of | of([op,field])of([ :op = v, :field = v ])of([op,owner,nameAndType])of([ :op = v, :owner = v, :nameAndType = v ])of([op,owner,name,type])of([ :op = v, :owner = v, :name = v, :type = v ]) | static FieldInstruction of(Opcode op, FieldRefEntry field)static FieldInstruction of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType)static FieldInstruction of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) |
opcode | opcode() | Opcode opcode() |
owner | owner() | ClassEntry owner() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
type | type() | Utf8Entry type() |
typeSymbol | typeSymbol() | ClassDesc typeSymbol() |
IncrementInstruction#
interface · java.lang.classfile.instruction.IncrementInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
constant | constant() | int constant() |
of | of(slot,constant) | static IncrementInstruction of(int slot, int constant) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
slot | slot() | int slot() |
InvokeDynamicInstruction#
interface · java.lang.classfile.instruction.InvokeDynamicInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
bootstrapArgs | bootstrapArgs() | List bootstrapArgs() |
bootstrapMethod | bootstrapMethod() | DirectMethodHandleDesc bootstrapMethod() |
invokedynamic | invokedynamic() | InvokeDynamicEntry invokedynamic() |
name | name() | Utf8Entry name() |
of | of(invokedynamic) | static InvokeDynamicInstruction of(InvokeDynamicEntry invokedynamic) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
type | type() | Utf8Entry type() |
typeSymbol | typeSymbol() | MethodTypeDesc typeSymbol() |
InvokeInstruction#
interface · java.lang.classfile.instruction.InvokeInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
count | count() | int count() |
isInterface | isInterface() | boolean isInterface() |
method | method() | MemberRefEntry method() |
name | name() | Utf8Entry name() |
of | of([op,method])of([ :op = v, :method = v ])of([op,owner,nameAndType,isInterface])of([ :op = v, :owner = v, :nameAndType = v, :isInterface = v ])of([op,owner,name,type,isInterface])of([ :op = v, :owner = v, :name = v, :type = v, :isInterface = v ]) | static InvokeInstruction of(Opcode op, MemberRefEntry method)static InvokeInstruction of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType, boolean isInterface)static InvokeInstruction of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type, boolean isInterface) |
opcode | opcode() | Opcode opcode() |
owner | owner() | ClassEntry owner() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
type | type() | Utf8Entry type() |
typeSymbol | typeSymbol() | MethodTypeDesc typeSymbol() |
LabelTarget#
interface · java.lang.classfile.instruction.LabelTarget
LineNumber#
interface · java.lang.classfile.instruction.LineNumber
Extends: PseudoInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
line | line() | int line() |
of | of(line) | static LineNumber of(int line) |
LoadInstruction#
interface · java.lang.classfile.instruction.LoadInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op,slot) | static LoadInstruction of(Opcode op, int slot)static LoadInstruction of(TypeKind kind, int slot) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
slot | slot() | int slot() |
typeKind | typeKind() | TypeKind typeKind() |
LocalVariable#
interface · java.lang.classfile.instruction.LocalVariable
Extends: PseudoInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
endScope | endScope() | Label endScope() |
name | name() | Utf8Entry name() |
of | of(slot,nameEntry,descriptorEntry,startScope,endScope) | static LocalVariable of(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope)static LocalVariable of(int slot, String name, ClassDesc descriptor, Label startScope, Label endScope) |
slot | slot() | int slot() |
startScope | startScope() | Label startScope() |
type | type() | Utf8Entry type() |
typeSymbol | typeSymbol() | ClassDesc typeSymbol() |
LocalVariableType#
interface · java.lang.classfile.instruction.LocalVariableType
Extends: PseudoInstruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
endScope | endScope() | Label endScope() |
name | name() | Utf8Entry name() |
of | of(slot,nameEntry,signatureEntry,startScope,endScope) | static LocalVariableType of(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope)static LocalVariableType of(int slot, String name, Signature signature, Label startScope, Label endScope) |
signature | signature() | Utf8Entry signature() |
signatureSymbol | signatureSymbol() | Signature signatureSymbol() |
slot | slot() | int slot() |
startScope | startScope() | Label startScope() |
LookupSwitchInstruction#
interface · java.lang.classfile.instruction.LookupSwitchInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
cases | cases() | List cases() |
defaultTarget | defaultTarget() | Label defaultTarget() |
of | of(defaultTarget,cases) | static LookupSwitchInstruction of(Label defaultTarget, List cases) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
MonitorInstruction#
interface · java.lang.classfile.instruction.MonitorInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op) | static MonitorInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
NewMultiArrayInstruction#
interface · java.lang.classfile.instruction.NewMultiArrayInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
arrayType | arrayType() | ClassEntry arrayType() |
dimensions | dimensions() | int dimensions() |
of | of(arrayTypeEntry,dimensions) | static NewMultiArrayInstruction of(ClassEntry arrayTypeEntry, int dimensions) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
NewObjectInstruction#
interface · java.lang.classfile.instruction.NewObjectInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@className | @className() | ClassEntry className() |
of | of(className) | static NewObjectInstruction of(ClassEntry className) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
NewPrimitiveArrayInstruction#
interface · java.lang.classfile.instruction.NewPrimitiveArrayInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(typeKind) | static NewPrimitiveArrayInstruction of(TypeKind typeKind) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
NewReferenceArrayInstruction#
interface · java.lang.classfile.instruction.NewReferenceArrayInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
componentType | componentType() | ClassEntry componentType() |
of | of(componentType) | static NewReferenceArrayInstruction of(ClassEntry componentType) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
NopInstruction#
interface · java.lang.classfile.instruction.NopInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of() | static NopInstruction of() |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
OperatorInstruction#
interface · java.lang.classfile.instruction.OperatorInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op) | static OperatorInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
ReturnInstruction#
interface · java.lang.classfile.instruction.ReturnInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(typeKind) | static ReturnInstruction of(TypeKind typeKind)static ReturnInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
typeKind | typeKind() | TypeKind typeKind() |
StackInstruction#
interface · java.lang.classfile.instruction.StackInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op) | static StackInstruction of(Opcode op) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
StoreInstruction#
interface · java.lang.classfile.instruction.StoreInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op,slot) | static StoreInstruction of(Opcode op, int slot)static StoreInstruction of(TypeKind kind, int slot) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
slot | slot() | int slot() |
typeKind | typeKind() | TypeKind typeKind() |
SwitchCase#
interface · java.lang.classfile.instruction.SwitchCase
Methods
| Method | Ring call | Java overloads |
|---|---|---|
caseValue | caseValue() | int caseValue() |
of | of(caseValue,target) | static SwitchCase of(int caseValue, Label target) |
target | target() | Label target() |
TableSwitchInstruction#
interface · java.lang.classfile.instruction.TableSwitchInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
cases | cases() | List cases() |
defaultTarget | defaultTarget() | Label defaultTarget() |
highValue | highValue() | int highValue() |
lowValue | lowValue() | int lowValue() |
of | of(lowValue,highValue,defaultTarget,cases) | static TableSwitchInstruction of(int lowValue, int highValue, Label defaultTarget, List cases) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
ThrowInstruction#
interface · java.lang.classfile.instruction.ThrowInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of() | static ThrowInstruction of() |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
TypeCheckInstruction#
interface · java.lang.classfile.instruction.TypeCheckInstruction
Extends: Instruction
Methods
| Method | Ring call | Java overloads |
|---|---|---|
of | of(op,type) | static TypeCheckInstruction of(Opcode op, ClassEntry type)static TypeCheckInstruction of(Opcode op, ClassDesc type) |
opcode | opcode() | Opcode opcode() |
sizeInBytes | sizeInBytes() | int sizeInBytes() |
type | type() | ClassEntry type() |