Uses of Interface
java.lang.classfile.CodeBuilder
Packages that use CodeBuilderPREVIEW
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfilePREVIEW library.-
Uses of CodeBuilderPREVIEW in java.lang.classfilePREVIEW
Subinterfaces of CodeBuilderPREVIEW in java.lang.classfilePREVIEWModifier and TypeInterfaceDescriptionstatic interfacePreview.A builder for blocks of code.Subinterfaces with type arguments of type CodeBuilderPREVIEW in java.lang.classfilePREVIEWModifier and TypeInterfaceDescriptioninterfacePreview.A builder for code attributes (method bodies).interfacePreview.A transformation on streams ofCodeElementPREVIEW.Methods in java.lang.classfilePREVIEW that return CodeBuilderPREVIEWModifier and TypeMethodDescriptiondefault CodeBuilderPREVIEWCodeBuilder.aaload()Generate an instruction to load a reference from an arraydefault CodeBuilderPREVIEWCodeBuilder.aastore()Generate an instruction to store into a reference arraydefault CodeBuilderPREVIEWCodeBuilder.aconst_null()Generate an instruction pushing the null object reference onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.aload(int slot) Generate an instruction to load a reference from a local variabledefault CodeBuilderPREVIEWCodeBuilder.anewarray(ClassEntryPREVIEW classEntry) Generate an instruction to create a new array of referencedefault CodeBuilderPREVIEWGenerate an instruction to create a new array of referencedefault CodeBuilderPREVIEWCodeBuilder.areturn()Generate an instruction to return a reference from the methoddefault CodeBuilderPREVIEWCodeBuilder.arraylength()Generate an instruction to get length of an arraydefault CodeBuilderPREVIEWGenerate an instruction to load from an arraydefault CodeBuilderPREVIEWCodeBuilder.arrayStore(TypeKindPREVIEW tk) Generate an instruction to store into an arraydefault CodeBuilderPREVIEWCodeBuilder.astore(int slot) Generate an instruction to store a reference into a local variabledefault CodeBuilderPREVIEWCodeBuilder.athrow()Generate an instruction to throw an exception or errordefault CodeBuilderPREVIEWCodeBuilder.baload()Generate an instruction to load a byte from a arraydefault CodeBuilderPREVIEWCodeBuilder.bastore()Generate an instruction to store into a byte arraydefault CodeBuilderPREVIEWCodeBuilder.bipush(int b) Generate an instruction pushing an int in the range of byte onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.block(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> handler) Add a lexical block to the method being built.default CodeBuilderPREVIEWGenerate a branch instructiondefault CodeBuilderPREVIEWCodeBuilder.caload()Generate an instruction to load a char from an arraydefault CodeBuilderPREVIEWCodeBuilder.castore()Generate an instruction to store into a char arraydefault CodeBuilderPREVIEWCodeBuilder.characterRange(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags) Declare a character range entrydefault CodeBuilderPREVIEWCodeBuilder.checkcast(ClassEntryPREVIEW type) Generate an instruction to check whether an object is of the given typedefault CodeBuilderPREVIEWGenerate an instruction to check whether an object is of the given typedefault CodeBuilderPREVIEWCodeBuilder.conversion(TypeKindPREVIEW fromType, TypeKindPREVIEW toType) Generate instruction(s) to convertfromTypetotoTypedefault CodeBuilderPREVIEWCodeBuilder.d2f()Generate an instruction to convert a double into a floatdefault CodeBuilderPREVIEWCodeBuilder.d2i()Generate an instruction to convert a double into an intdefault CodeBuilderPREVIEWCodeBuilder.d2l()Generate an instruction to convert a double into a longdefault CodeBuilderPREVIEWCodeBuilder.dadd()Generate an instruction to add a doubledefault CodeBuilderPREVIEWCodeBuilder.daload()Generate an instruction to load a double from an arraydefault CodeBuilderPREVIEWCodeBuilder.dastore()Generate an instruction to store into a double arraydefault CodeBuilderPREVIEWCodeBuilder.dcmpg()Generate an instruction to add a doubledefault CodeBuilderPREVIEWCodeBuilder.dcmpl()Generate an instruction to compare doublesdefault CodeBuilderPREVIEWCodeBuilder.dconst_0()Generate an instruction pushing double constant 0 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.dconst_1()Generate an instruction pushing double constant 1 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.ddiv()Generate an instruction to divide doublesdefault CodeBuilderPREVIEWCodeBuilder.dload(int slot) Generate an instruction to load a double from a local variabledefault CodeBuilderPREVIEWCodeBuilder.dmul()Generate an instruction to multiply doublesdefault CodeBuilderPREVIEWCodeBuilder.dneg()Generate an instruction to negate a doubledefault CodeBuilderPREVIEWCodeBuilder.drem()Generate an instruction to calculate double remainderdefault CodeBuilderPREVIEWCodeBuilder.dreturn()Generate an instruction to return a double from the methoddefault CodeBuilderPREVIEWCodeBuilder.dstore(int slot) Generate an instruction to store a double into a local variabledefault CodeBuilderPREVIEWCodeBuilder.dsub()Generate an instruction to subtract doublesdefault CodeBuilderPREVIEWCodeBuilder.dup()Generate an instruction to duplicate the top operand stack valuedefault CodeBuilderPREVIEWCodeBuilder.dup_x1()Generate an instruction to duplicate the top operand stack value and insert two values downdefault CodeBuilderPREVIEWCodeBuilder.dup_x2()Generate an instruction to duplicate the top operand stack value and insert two or three values downdefault CodeBuilderPREVIEWCodeBuilder.dup2()Generate an instruction to duplicate the top one or two operand stack valuedefault CodeBuilderPREVIEWCodeBuilder.dup2_x1()Generate an instruction to duplicate the top one or two operand stack values and insert two or three values downdefault CodeBuilderPREVIEWCodeBuilder.dup2_x2()Generate an instruction to duplicate the top one or two operand stack values and insert two, three, or four values downdefault CodeBuilderPREVIEWCodeBuilder.exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType) Declare an exception table entrydefault CodeBuilderPREVIEWCodeBuilder.exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassDesc catchType) Declare an exception table entrydefault CodeBuilderPREVIEWCodeBuilder.exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType) Declare an exception table entrydefault CodeBuilderPREVIEWDeclare an exception table entry catching all exceptions and errorsdefault CodeBuilderPREVIEWCodeBuilder.f2d()Generate an instruction to convert a float into a doubledefault CodeBuilderPREVIEWCodeBuilder.f2i()Generate an instruction to convert a float into an intdefault CodeBuilderPREVIEWCodeBuilder.f2l()Generate an instruction to convert a float into a longdefault CodeBuilderPREVIEWCodeBuilder.fadd()Generate an instruction to add a floatdefault CodeBuilderPREVIEWCodeBuilder.faload()Generate an instruction to load a float from an arraydefault CodeBuilderPREVIEWCodeBuilder.fastore()Generate an instruction to store into a float arraydefault CodeBuilderPREVIEWCodeBuilder.fcmpg()Generate an instruction to compare floatsdefault CodeBuilderPREVIEWCodeBuilder.fcmpl()Generate an instruction to compare floatsdefault CodeBuilderPREVIEWCodeBuilder.fconst_0()Generate an instruction pushing float constant 0 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.fconst_1()Generate an instruction pushing float constant 1 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.fconst_2()Generate an instruction pushing float constant 2 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.fdiv()Generate an instruction to divide floatsdefault CodeBuilderPREVIEWCodeBuilder.fieldAccess(OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref) Generate an instruction to access a fielddefault CodeBuilderPREVIEWGenerate an instruction to access a fielddefault CodeBuilderPREVIEWCodeBuilder.fload(int slot) Generate an instruction to load a float from a local variabledefault CodeBuilderPREVIEWCodeBuilder.fmul()Generate an instruction to multiply floatsdefault CodeBuilderPREVIEWCodeBuilder.fneg()Generate an instruction to negate a floatdefault CodeBuilderPREVIEWCodeBuilder.frem()Generate an instruction to calculate floats remainderdefault CodeBuilderPREVIEWCodeBuilder.freturn()Generate an instruction to return a float from the methoddefault CodeBuilderPREVIEWCodeBuilder.fstore(int slot) Generate an instruction to store a float into a local variabledefault CodeBuilderPREVIEWCodeBuilder.fsub()Generate an instruction to subtract floatsdefault CodeBuilderPREVIEWCodeBuilder.getfield(FieldRefEntryPREVIEW ref) Generate an instruction to fetch field from an objectdefault CodeBuilderPREVIEWGenerate an instruction to fetch field from an objectdefault CodeBuilderPREVIEWCodeBuilder.getstatic(FieldRefEntryPREVIEW ref) Generate an instruction to get static field from a classdefault CodeBuilderPREVIEWGenerate an instruction to get static field from a classdefault CodeBuilderPREVIEWGenerate an instruction to branch alwaysdefault CodeBuilderPREVIEWGenerate an instruction to branch always with wide indexdefault CodeBuilderPREVIEWCodeBuilder.i2b()Generate an instruction to convert an int into a bytedefault CodeBuilderPREVIEWCodeBuilder.i2c()Generate an instruction to convert an int into a chardefault CodeBuilderPREVIEWCodeBuilder.i2d()Generate an instruction to convert an int into a doubledefault CodeBuilderPREVIEWCodeBuilder.i2f()Generate an instruction to convert an int into a floatdefault CodeBuilderPREVIEWCodeBuilder.i2l()Generate an instruction to convert an int into a longdefault CodeBuilderPREVIEWCodeBuilder.i2s()Generate an instruction to convert an int into a shortdefault CodeBuilderPREVIEWCodeBuilder.iadd()Generate an instruction to add an intdefault CodeBuilderPREVIEWCodeBuilder.iaload()Generate an instruction to load a int from an arraydefault CodeBuilderPREVIEWCodeBuilder.iand()Generate an instruction to calculate boolean AND of intsdefault CodeBuilderPREVIEWCodeBuilder.iastore()Generate an instruction to store into an int arraydefault CodeBuilderPREVIEWCodeBuilder.iconst_0()Generate an instruction pushing int constant 0 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_1()Generate an instruction pushing int constant 1 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_2()Generate an instruction pushing int constant 2 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_3()Generate an instruction pushing int constant 3 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_4()Generate an instruction pushing int constant 4 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_5()Generate an instruction pushing int constant 5 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.iconst_m1()Generate an instruction pushing int constant -1 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.idiv()Generate an instruction to divide intsdefault CodeBuilderPREVIEWGenerate an instruction to branch if reference comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if reference comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEWGenerate an instruction to branch if reference is not nulldefault CodeBuilderPREVIEWGenerate an instruction to branch if reference is nulldefault CodeBuilderPREVIEWAdd an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.ifThen(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler) Add an "if-then" block that is conditional on the boolean value on top of the operand stack.default CodeBuilderPREVIEWCodeBuilder.ifThenElse(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) Add an "if-then-else" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.ifThenElse(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) Add an "if-then-else" block that is conditional on the boolean value on top of the operand stack.default CodeBuilderPREVIEWCodeBuilder.iinc(int slot, int val) Generate an instruction to increment a local variable by a constantdefault CodeBuilderPREVIEWCodeBuilder.iload(int slot) Generate an instruction to load an int from a local variabledefault CodeBuilderPREVIEWCodeBuilder.imul()Generate an instruction to multiply intsdefault CodeBuilderPREVIEWCodeBuilder.ineg()Generate an instruction to negate an intdefault CodeBuilderPREVIEWCodeBuilder.instanceOf(ClassEntryPREVIEW target) Generate an instruction to determine if an object is of the given typedefault CodeBuilderPREVIEWCodeBuilder.instanceOf(ClassDesc target) Generate an instruction to determine if an object is of the given typedefault CodeBuilderPREVIEWCodeBuilder.invoke(OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref) Generate an instruction to invoke a method or constructordefault CodeBuilderPREVIEWCodeBuilder.invoke(OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface) Generate an instruction to invoke a method or constructordefault CodeBuilderPREVIEWCodeBuilder.invokedynamic(InvokeDynamicEntryPREVIEW ref) Generate an instruction to invoke a dynamically-computed call sitedefault CodeBuilderPREVIEWCodeBuilder.invokedynamic(DynamicCallSiteDesc ref) Generate an instruction to invoke a dynamically-computed call sitedefault CodeBuilderPREVIEWCodeBuilder.invokeinterface(InterfaceMethodRefEntryPREVIEW ref) Generate an instruction to invoke an interface methoddefault CodeBuilderPREVIEWCodeBuilder.invokeinterface(ClassDesc owner, String name, MethodTypeDesc type) Generate an instruction to invoke an interface methoddefault CodeBuilderPREVIEWCodeBuilder.invokespecial(InterfaceMethodRefEntryPREVIEW ref) Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypesdefault CodeBuilderPREVIEWCodeBuilder.invokespecial(MethodRefEntryPREVIEW ref) Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypesdefault CodeBuilderPREVIEWCodeBuilder.invokespecial(ClassDesc owner, String name, MethodTypeDesc type) Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypesdefault CodeBuilderPREVIEWCodeBuilder.invokespecial(ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface) Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypesdefault CodeBuilderPREVIEWCodeBuilder.invokestatic(InterfaceMethodRefEntryPREVIEW ref) Generate an instruction to invoke a class (static) methoddefault CodeBuilderPREVIEWCodeBuilder.invokestatic(MethodRefEntryPREVIEW ref) Generate an instruction to invoke a class (static) methoddefault CodeBuilderPREVIEWCodeBuilder.invokestatic(ClassDesc owner, String name, MethodTypeDesc type) Generate an instruction to invoke a class (static) methoddefault CodeBuilderPREVIEWCodeBuilder.invokestatic(ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface) Generate an instruction to invoke a class (static) methoddefault CodeBuilderPREVIEWCodeBuilder.invokevirtual(MethodRefEntryPREVIEW ref) Generate an instruction to invoke an instance method; dispatch based on classdefault CodeBuilderPREVIEWCodeBuilder.invokevirtual(ClassDesc owner, String name, MethodTypeDesc type) Generate an instruction to invoke an instance method; dispatch based on classdefault CodeBuilderPREVIEWCodeBuilder.ior()Generate an instruction to calculate boolean OR of intsdefault CodeBuilderPREVIEWCodeBuilder.irem()Generate an instruction to calculate ints remainderdefault CodeBuilderPREVIEWCodeBuilder.ireturn()Generate an instruction to return an int from the methoddefault CodeBuilderPREVIEWCodeBuilder.ishl()Generate an instruction to shift an int leftdefault CodeBuilderPREVIEWCodeBuilder.ishr()Generate an instruction to shift an int rightdefault CodeBuilderPREVIEWCodeBuilder.istore(int slot) Generate an instruction to store an int into a local variabledefault CodeBuilderPREVIEWCodeBuilder.isub()Generate an instruction to subtract intsdefault CodeBuilderPREVIEWCodeBuilder.iushr()Generate an instruction to logical shift an int rightdefault CodeBuilderPREVIEWCodeBuilder.ixor()Generate an instruction to calculate boolean XOR of intsdefault CodeBuilderPREVIEWCodeBuilder.l2d()Generate an instruction to convert a long into a doubledefault CodeBuilderPREVIEWCodeBuilder.l2f()Generate an instruction to convert a long into a floatdefault CodeBuilderPREVIEWCodeBuilder.l2i()Generate an instruction to convert a long into an intdefault CodeBuilderPREVIEWCodeBuilder.labelBinding(LabelPREVIEW label) Bind label with current positiondefault CodeBuilderPREVIEWCodeBuilder.ladd()Generate an instruction to add a longdefault CodeBuilderPREVIEWCodeBuilder.laload()Generate an instruction to load a long from an arraydefault CodeBuilderPREVIEWCodeBuilder.land()Generate an instruction to calculate boolean AND of longsdefault CodeBuilderPREVIEWCodeBuilder.lastore()Generate an instruction to store into a long arraydefault CodeBuilderPREVIEWCodeBuilder.lcmp()Generate an instruction to compare longsdefault CodeBuilderPREVIEWCodeBuilder.lconst_0()Generate an instruction pushing long constant 0 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.lconst_1()Generate an instruction pushing long constant 1 onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.ldc(LoadableConstantEntryPREVIEW entry) Generate an instruction pushing an item from the run-time constant pool onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.ldc(ConstantDesc value) Generate an instruction pushing an item from the run-time constant pool onto the operand stackdefault CodeBuilderPREVIEWCodeBuilder.ldiv()Generate an instruction to divide longsdefault CodeBuilderPREVIEWCodeBuilder.lineNumber(int line) Declare a source line number of the current builder positiondefault CodeBuilderPREVIEWCodeBuilder.lload(int slot) Generate an instruction to load a long from a local variabledefault CodeBuilderPREVIEWCodeBuilder.lmul()Generate an instruction to multiply longsdefault CodeBuilderPREVIEWCodeBuilder.lneg()Generate an instruction to negate a longdefault CodeBuilderPREVIEWCodeBuilder.loadConstant(double value) Generate an instruction pushing a constant double value onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.loadConstant(float value) Generate an instruction pushing a constant float value onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.loadConstant(int value) Generate an instruction pushing a constant int value onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.loadConstant(long value) Generate an instruction pushing a constant long value onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.loadConstant(ConstantDesc value) Generate an instruction pushing a constant onto the operand stackdefault CodeBuilderPREVIEWGenerate an instruction to load a value from a local variabledefault CodeBuilderPREVIEWCodeBuilder.localVariable(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEWCodeBuilder.localVariable(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEWCodeBuilder.localVariableType(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrydefault CodeBuilderPREVIEWCodeBuilder.localVariableType(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrydefault CodeBuilderPREVIEWCodeBuilder.lookupswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Generate an instruction to access a jump table by key match and jumpdefault CodeBuilderPREVIEWCodeBuilder.lor()Generate an instruction to calculate boolean OR of longsdefault CodeBuilderPREVIEWCodeBuilder.lrem()Generate an instruction to calculate longs remainderdefault CodeBuilderPREVIEWCodeBuilder.lreturn()Generate an instruction to return a long from the methoddefault CodeBuilderPREVIEWCodeBuilder.lshl()Generate an instruction to shift a long leftdefault CodeBuilderPREVIEWCodeBuilder.lshr()Generate an instruction to shift a long rightdefault CodeBuilderPREVIEWCodeBuilder.lstore(int slot) Generate an instruction to store a long into a local variabledefault CodeBuilderPREVIEWCodeBuilder.lsub()Generate an instruction to subtract longsdefault CodeBuilderPREVIEWCodeBuilder.lushr()Generate an instruction to logical shift a long leftdefault CodeBuilderPREVIEWCodeBuilder.lxor()Generate an instruction to calculate boolean XOR of longsdefault CodeBuilderPREVIEWCodeBuilder.monitorenter()Generate an instruction to enter monitor for an objectdefault CodeBuilderPREVIEWCodeBuilder.monitorexit()Generate an instruction to exit monitor for an objectdefault CodeBuilderPREVIEWCodeBuilder.multianewarray(ClassEntryPREVIEW array, int dims) Generate an instruction to create a new multidimensional arraydefault CodeBuilderPREVIEWCodeBuilder.multianewarray(ClassDesc array, int dims) Generate an instruction to create a new multidimensional arraydefault CodeBuilderPREVIEWCodeBuilder.new_(ClassEntryPREVIEW clazz) Generate an instruction to create a new objectdefault CodeBuilderPREVIEWGenerate an instruction to create a new objectdefault CodeBuilderPREVIEWGenerate an instruction to create a new array of a primitive typedefault CodeBuilderPREVIEWCodeBuilder.nop()Generate a do nothing instructiondefault CodeBuilderPREVIEWCodeBuilder.pop()Generate an instruction to pop the top operand stack valuedefault CodeBuilderPREVIEWCodeBuilder.pop2()Generate an instruction to pop the top one or two operand stack valuesdefault CodeBuilderPREVIEWCodeBuilder.putfield(FieldRefEntryPREVIEW ref) Generate an instruction to set field in an objectdefault CodeBuilderPREVIEWGenerate an instruction to set field in an objectdefault CodeBuilderPREVIEWCodeBuilder.putstatic(FieldRefEntryPREVIEW ref) Generate an instruction to set static field in a classdefault CodeBuilderPREVIEWGenerate an instruction to set static field in a classdefault CodeBuilderPREVIEWCodeBuilder.return_()Generate an instruction to return void from the methoddefault CodeBuilderPREVIEWGenerate return instructiondefault CodeBuilderPREVIEWCodeBuilder.saload()Generate an instruction to load a short from an arraydefault CodeBuilderPREVIEWCodeBuilder.sastore()Generate an instruction to store into a short arraydefault CodeBuilderPREVIEWCodeBuilder.sipush(int s) Generate an instruction pushing an int in the range of short onto the operand stack.default CodeBuilderPREVIEWCodeBuilder.storeLocal(TypeKindPREVIEW tk, int slot) Generate an instruction to store a value to a local variabledefault CodeBuilderPREVIEWCodeBuilder.swap()Generate an instruction to swap the top two operand stack valuesdefault CodeBuilderPREVIEWCodeBuilder.tableswitch(int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Generate an instruction to access a jump table by index and jumpdefault CodeBuilderPREVIEWCodeBuilder.tableswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Generate an instruction to access a jump table by index and jumpdefault CodeBuilderPREVIEWCodeBuilder.transforming(CodeTransformPREVIEW transform, Consumer<CodeBuilderPREVIEW> handler) Apply a transform to the code built by a handler, directing results to this builder.default CodeBuilderPREVIEWCodeBuilder.trying(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> tryHandler, Consumer<CodeBuilder.CatchBuilderPREVIEW> catchesHandler) Adds a "try-catch" block comprising one try block and zero or more catch blocks.Method parameters in java.lang.classfilePREVIEW with type arguments of type CodeBuilderPREVIEWModifier and TypeMethodDescriptionstatic CodeTransformPREVIEWCodeTransform.endHandler(Consumer<CodeBuilderPREVIEW> finisher) Create a code transform that passes each element through to the builder, and calls the specified function when transformation is complete.default CodeBuilderPREVIEWCodeBuilder.transforming(CodeTransformPREVIEW transform, Consumer<CodeBuilderPREVIEW> handler) Apply a transform to the code built by a handler, directing results to this builder.MethodBuilder.withCode(Consumer<? super CodeBuilderPREVIEW> code) Build the method body for this method.default ClassBuilderPREVIEWClassBuilder.withMethodBody(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super CodeBuilderPREVIEW> handler) Adds a method, with only aCodeattribute.default ClassBuilderPREVIEWClassBuilder.withMethodBody(String name, MethodTypeDesc descriptor, int methodFlags, Consumer<? super CodeBuilderPREVIEW> handler) Adds a method, with only aCodeAttributePREVIEW. -
Uses of CodeBuilderPREVIEW in java.lang.classfile.componentsPREVIEW
Method parameters in java.lang.classfile.componentsPREVIEW with type arguments of type CodeBuilderPREVIEWModifier and TypeMethodDescriptionstatic CodeRelabelerPREVIEWCodeRelabeler.of(BiFunction<LabelPREVIEW, CodeBuilderPREVIEW, LabelPREVIEW> mapFunction) Creates a new instance of CodeRelabeler using providedBiFunctionto re-label the code.