RingJavafor Ring

java.lang.classfile.instruction

37 classes of the module java.base.

Load them with:

using {
	"java.lang.classfile.instruction"
}

All packages

ArrayLoadInstruction#

interface · java.lang.classfile.instruction.ArrayLoadInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op)static ArrayLoadInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ArrayStoreInstruction#

interface · java.lang.classfile.instruction.ArrayStoreInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op)static ArrayStoreInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

BranchInstruction#

interface · java.lang.classfile.instruction.BranchInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op,target)static BranchInstruction of(Opcode op, Label target)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
targettarget()Label target()

CharacterRange#

interface · java.lang.classfile.instruction.CharacterRange

Extends: PseudoInstruction

Fields

NameTypeAccessIn Ring
FLAG_STATEMENTintconstant · statico.FLAG_STATEMENT
FLAG_BLOCKintconstant · statico.FLAG_BLOCK
FLAG_ASSIGNMENTintconstant · statico.FLAG_ASSIGNMENT
FLAG_FLOW_CONTROLLERintconstant · statico.FLAG_FLOW_CONTROLLER
FLAG_FLOW_TARGETintconstant · statico.FLAG_FLOW_TARGET
FLAG_INVOKEintconstant · statico.FLAG_INVOKE
FLAG_CREATEintconstant · statico.FLAG_CREATE
FLAG_BRANCH_TRUEintconstant · statico.FLAG_BRANCH_TRUE
FLAG_BRANCH_FALSEintconstant · statico.FLAG_BRANCH_FALSE

Methods

MethodRing callJava overloads
characterRangeEndcharacterRangeEnd()int characterRangeEnd()
characterRangeStartcharacterRangeStart()int characterRangeStart()
endScopeendScope()Label endScope()
flagsflags()int flags()
ofof(startScope,endScope,characterRangeStart,characterRangeEnd,flags)static CharacterRange of(Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags)
startScopestartScope()Label startScope()

ConstantInstruction#

interface · java.lang.classfile.instruction.ConstantInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
constantValueconstantValue()ConstantDesc constantValue()
ofArgumentofArgument(op,value)static ArgumentConstantInstruction ofArgument(Opcode op, int value)
ofIntrinsicofIntrinsic(op)static IntrinsicConstantInstruction ofIntrinsic(Opcode op)
ofLoadofLoad(op,constant)static LoadConstantInstruction ofLoad(Opcode op, LoadableConstantEntry constant)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ConstantInstructionArgumentConstantInstruction#

interface · java.lang.classfile.instruction.ConstantInstruction$ArgumentConstantInstruction

Extends: ConstantInstruction

Methods

MethodRing callJava overloads
constantValueconstantValue()Integer constantValue()
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ConstantInstructionIntrinsicConstantInstruction#

interface · java.lang.classfile.instruction.ConstantInstruction$IntrinsicConstantInstruction

Extends: ConstantInstruction

Methods

MethodRing callJava overloads
constantValueconstantValue()ConstantDesc constantValue()
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ConstantInstructionLoadConstantInstruction#

interface · java.lang.classfile.instruction.ConstantInstruction$LoadConstantInstruction

Extends: ConstantInstruction

Methods

MethodRing callJava overloads
constantEntryconstantEntry()LoadableConstantEntry constantEntry()
constantValueconstantValue()ConstantDesc constantValue()
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ConvertInstruction#

interface · java.lang.classfile.instruction.ConvertInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
fromTypefromType()TypeKind fromType()
ofof(op)
of([fromType,toType])
of([ :fromType = v, :toType = v ])
static ConvertInstruction of(Opcode op)
static ConvertInstruction of(TypeKind fromType, TypeKind toType)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
toTypetoType()TypeKind toType()

DiscontinuedInstruction#

interface · java.lang.classfile.instruction.DiscontinuedInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

DiscontinuedInstructionJsrInstruction#

interface · java.lang.classfile.instruction.DiscontinuedInstruction$JsrInstruction

Extends: DiscontinuedInstruction

Methods

MethodRing callJava overloads
ofof(target)
of([op,target])
of([ :op = v, :target = v ])
static JsrInstruction of(Label target)
static JsrInstruction of(Opcode op, Label target)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
targettarget()Label target()

DiscontinuedInstructionRetInstruction#

interface · java.lang.classfile.instruction.DiscontinuedInstruction$RetInstruction

Extends: DiscontinuedInstruction

Methods

MethodRing callJava overloads
ofof(slot)
of([op,slot])
of([ :op = v, :slot = v ])
static RetInstruction of(int slot)
static RetInstruction of(Opcode op, int slot)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
slotslot()int slot()

ExceptionCatch#

interface · java.lang.classfile.instruction.ExceptionCatch

Extends: PseudoInstruction

Methods

MethodRing callJava overloads
catchTypecatchType()Optional catchType()
handlerhandler()Label handler()
ofof([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)
tryEndtryEnd()Label tryEnd()
tryStarttryStart()Label tryStart()

FieldInstruction#

interface · java.lang.classfile.instruction.FieldInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
fieldfield()FieldRefEntry field()
namename()Utf8Entry name()
ofof([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)
opcodeopcode()Opcode opcode()
ownerowner()ClassEntry owner()
sizeInBytessizeInBytes()int sizeInBytes()
typetype()Utf8Entry type()
typeSymboltypeSymbol()ClassDesc typeSymbol()

IncrementInstruction#

interface · java.lang.classfile.instruction.IncrementInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
constantconstant()int constant()
ofof(slot,constant)static IncrementInstruction of(int slot, int constant)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
slotslot()int slot()

InvokeDynamicInstruction#

interface · java.lang.classfile.instruction.InvokeDynamicInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
bootstrapArgsbootstrapArgs()List bootstrapArgs()
bootstrapMethodbootstrapMethod()DirectMethodHandleDesc bootstrapMethod()
invokedynamicinvokedynamic()InvokeDynamicEntry invokedynamic()
namename()Utf8Entry name()
ofof(invokedynamic)static InvokeDynamicInstruction of(InvokeDynamicEntry invokedynamic)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typetype()Utf8Entry type()
typeSymboltypeSymbol()MethodTypeDesc typeSymbol()

InvokeInstruction#

interface · java.lang.classfile.instruction.InvokeInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
countcount()int count()
isInterfaceisInterface()boolean isInterface()
methodmethod()MemberRefEntry method()
namename()Utf8Entry name()
ofof([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)
opcodeopcode()Opcode opcode()
ownerowner()ClassEntry owner()
sizeInBytessizeInBytes()int sizeInBytes()
typetype()Utf8Entry type()
typeSymboltypeSymbol()MethodTypeDesc typeSymbol()

LabelTarget#

interface · java.lang.classfile.instruction.LabelTarget

Extends: PseudoInstruction

Methods

MethodRing callJava overloads
labellabel()Label label()

LineNumber#

interface · java.lang.classfile.instruction.LineNumber

Extends: PseudoInstruction

Methods

MethodRing callJava overloads
lineline()int line()
ofof(line)static LineNumber of(int line)

LoadInstruction#

interface · java.lang.classfile.instruction.LoadInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op,slot)static LoadInstruction of(Opcode op, int slot)
static LoadInstruction of(TypeKind kind, int slot)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
slotslot()int slot()
typeKindtypeKind()TypeKind typeKind()

LocalVariable#

interface · java.lang.classfile.instruction.LocalVariable

Extends: PseudoInstruction

Methods

MethodRing callJava overloads
endScopeendScope()Label endScope()
namename()Utf8Entry name()
ofof(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)
slotslot()int slot()
startScopestartScope()Label startScope()
typetype()Utf8Entry type()
typeSymboltypeSymbol()ClassDesc typeSymbol()

LocalVariableType#

interface · java.lang.classfile.instruction.LocalVariableType

Extends: PseudoInstruction

Methods

MethodRing callJava overloads
endScopeendScope()Label endScope()
namename()Utf8Entry name()
ofof(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)
signaturesignature()Utf8Entry signature()
signatureSymbolsignatureSymbol()Signature signatureSymbol()
slotslot()int slot()
startScopestartScope()Label startScope()

LookupSwitchInstruction#

interface · java.lang.classfile.instruction.LookupSwitchInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
casescases()List cases()
defaultTargetdefaultTarget()Label defaultTarget()
ofof(defaultTarget,cases)static LookupSwitchInstruction of(Label defaultTarget, List cases)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

MonitorInstruction#

interface · java.lang.classfile.instruction.MonitorInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op)static MonitorInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

NewMultiArrayInstruction#

interface · java.lang.classfile.instruction.NewMultiArrayInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
arrayTypearrayType()ClassEntry arrayType()
dimensionsdimensions()int dimensions()
ofof(arrayTypeEntry,dimensions)static NewMultiArrayInstruction of(ClassEntry arrayTypeEntry, int dimensions)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

NewObjectInstruction#

interface · java.lang.classfile.instruction.NewObjectInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
@className@className()ClassEntry className()
ofof(className)static NewObjectInstruction of(ClassEntry className)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

NewPrimitiveArrayInstruction#

interface · java.lang.classfile.instruction.NewPrimitiveArrayInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(typeKind)static NewPrimitiveArrayInstruction of(TypeKind typeKind)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

NewReferenceArrayInstruction#

interface · java.lang.classfile.instruction.NewReferenceArrayInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
componentTypecomponentType()ClassEntry componentType()
ofof(componentType)static NewReferenceArrayInstruction of(ClassEntry componentType)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

NopInstruction#

interface · java.lang.classfile.instruction.NopInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof()static NopInstruction of()
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

OperatorInstruction#

interface · java.lang.classfile.instruction.OperatorInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op)static OperatorInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

ReturnInstruction#

interface · java.lang.classfile.instruction.ReturnInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(typeKind)static ReturnInstruction of(TypeKind typeKind)
static ReturnInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typeKindtypeKind()TypeKind typeKind()

StackInstruction#

interface · java.lang.classfile.instruction.StackInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op)static StackInstruction of(Opcode op)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

StoreInstruction#

interface · java.lang.classfile.instruction.StoreInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op,slot)static StoreInstruction of(Opcode op, int slot)
static StoreInstruction of(TypeKind kind, int slot)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
slotslot()int slot()
typeKindtypeKind()TypeKind typeKind()

SwitchCase#

interface · java.lang.classfile.instruction.SwitchCase

Methods

MethodRing callJava overloads
caseValuecaseValue()int caseValue()
ofof(caseValue,target)static SwitchCase of(int caseValue, Label target)
targettarget()Label target()

TableSwitchInstruction#

interface · java.lang.classfile.instruction.TableSwitchInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
casescases()List cases()
defaultTargetdefaultTarget()Label defaultTarget()
highValuehighValue()int highValue()
lowValuelowValue()int lowValue()
ofof(lowValue,highValue,defaultTarget,cases)static TableSwitchInstruction of(int lowValue, int highValue, Label defaultTarget, List cases)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

ThrowInstruction#

interface · java.lang.classfile.instruction.ThrowInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof()static ThrowInstruction of()
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()

TypeCheckInstruction#

interface · java.lang.classfile.instruction.TypeCheckInstruction

Extends: Instruction

Methods

MethodRing callJava overloads
ofof(op,type)static TypeCheckInstruction of(Opcode op, ClassEntry type)
static TypeCheckInstruction of(Opcode op, ClassDesc type)
opcodeopcode()Opcode opcode()
sizeInBytessizeInBytes()int sizeInBytes()
typetype()ClassEntry type()
RingJava - use Java classes and methods from Ring programs.