Uses of Interface
java.lang.classfile.Label
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfilePREVIEW library.Provides specific components, transformations, and tools built on top of the
java.lang.classfilePREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfilePREVIEW library.-
Uses of LabelPREVIEW in java.lang.classfilePREVIEW
Methods in java.lang.classfilePREVIEW that return LabelPREVIEWModifier and TypeMethodDescriptionCodeBuilder.BlockCodeBuilder.breakLabel()Returns the label locating where control is passed back to the parent block..CodeBuilder.endLabel()Returns the label associated with the end of the current block.TypeAnnotation.LocalVarTargetInfo.endLabel()The given local variable has a value at indices into the code array in the interval [start_pc, start_pc + length), that is, between start_pc inclusive and start_pc + length exclusive.CodeBuilder.newBoundLabel()Create new label bound with current positionCodeBuilder.newLabel()Returns a fresh unbound label.CodeBuilder.startLabel()Returns the label associated with the beginning of the current block.TypeAnnotation.LocalVarTargetInfo.startLabel()The given local variable has a value at indices into the code array in the interval [start_pc, start_pc + length), that is, between start_pc inclusive and start_pc + length exclusive.TypeAnnotation.OffsetTarget.target()The code array offset of either the bytecode instruction corresponding to the instanceof expression, the new bytecode instruction corresponding to the new expression, or the bytecode instruction corresponding to the method reference expression.TypeAnnotation.TypeArgumentTarget.target()The code array offset of either the bytecode instruction corresponding to the cast expression, the new bytecode instruction corresponding to the new expression, the bytecode instruction corresponding to the explicit constructor invocation statement, the bytecode instruction corresponding to the method invocation expression, or the bytecode instruction corresponding to the method reference expression.Methods in java.lang.classfilePREVIEW with parameters of type LabelPREVIEWModifier and TypeMethodDescriptiondefault CodeBuilderPREVIEWGenerate a branch instructiondefault CodeBuilderPREVIEWCodeBuilder.characterRange(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags) Declare a character range entrydefault 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 CodeBuilderPREVIEWGenerate an instruction to branch alwaysdefault CodeBuilderPREVIEWGenerate an instruction to branch always with wide indexdefault 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 CodeBuilderPREVIEWCodeBuilder.if_nonnull(LabelPREVIEW target) Generate an instruction to branch if reference is not nulldefault CodeBuilderPREVIEWGenerate an instruction to branch if reference is nulldefault 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 CodeBuilderPREVIEWCodeBuilder.labelBinding(LabelPREVIEW label) Bind label with current positiondefault 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 jumpReturns local variable target info.TypeAnnotation.TargetInfo.ofCastExpr(LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type in a cast expression.TypeAnnotation.TargetInfo.ofConstructorInvocationTypeArgument(LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type argument in the explicit type argument list for an explicit constructor invocation statement.TypeAnnotation.TargetInfo.ofConstructorReference(LabelPREVIEW target) Returns a target for annotations on the type before the :: in a constructor reference expression.TypeAnnotation.TargetInfo.ofConstructorReferenceTypeArgument(LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type argument in the explicit type argument list for a new expression.TypeAnnotation.TargetInfo.ofInstanceofExpr(LabelPREVIEW target) Returns a target for annotations on the type in an instanceof expression.TypeAnnotation.TargetInfo.ofMethodInvocationTypeArgument(LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type argument in the explicit type argument list for a method invocation expression.TypeAnnotation.TargetInfo.ofMethodReference(LabelPREVIEW target) Returns a target for annotations on the type before the :: in a method reference expression.TypeAnnotation.TargetInfo.ofMethodReferenceTypeArgument(LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type argument in the explicit type argument list for a method reference expression.Returns a target for annotations on the type in a new expression.TypeAnnotation.TargetInfo.ofOffset(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target) Returns a target for annotations on the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.TypeAnnotation.TargetInfo.ofTypeArgument(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target, int typeArgumentIndex) Returns a target for annotations on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.default 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 jump -
Uses of LabelPREVIEW in java.lang.classfile.attributePREVIEW
Methods in java.lang.classfile.attributePREVIEW that return LabelPREVIEWModifier and TypeMethodDescriptionStackMapFrameInfo.UninitializedVerificationTypeInfo.newTarget()Returns thenewinstruction position that creates this unitialized object.StackMapFrameInfo.target()Returns the frame target label.Methods in java.lang.classfile.attributePREVIEW with parameters of type LabelPREVIEWModifier and TypeMethodDescriptionintCodeAttribute.labelToBci(LabelPREVIEW label) Returns the position of theLabelin thecodeArrayor -1 if theLabeldoes not point to thecodeArray.static StackMapFrameInfoPREVIEWStackMapFrameInfo.of(LabelPREVIEW target, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> locals, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> stack) Returns a new stack map frame.Returns an unitialized verification type info. -
Uses of LabelPREVIEW in java.lang.classfile.componentsPREVIEW
Methods in java.lang.classfile.componentsPREVIEW that return LabelPREVIEWModifier and TypeMethodDescriptionCodeRelabeler.relabel(LabelPREVIEW label, CodeBuilderPREVIEW codeBuilder) Access method to internal re-labeling function.Methods in java.lang.classfile.componentsPREVIEW with parameters of type LabelPREVIEWModifier and TypeMethodDescriptionCodeRelabeler.relabel(LabelPREVIEW label, CodeBuilderPREVIEW codeBuilder) Access method to internal re-labeling function.Method parameters in java.lang.classfile.componentsPREVIEW with type arguments of type LabelPREVIEWModifier and TypeMethodDescriptionstatic CodeRelabelerPREVIEWCodeRelabeler.of(BiFunction<LabelPREVIEW, CodeBuilderPREVIEW, LabelPREVIEW> mapFunction) Creates a new instance of CodeRelabeler using providedBiFunctionto re-label the code.static CodeRelabelerPREVIEWCodeRelabeler.of(BiFunction<LabelPREVIEW, CodeBuilderPREVIEW, LabelPREVIEW> mapFunction) Creates a new instance of CodeRelabeler using providedBiFunctionto re-label the code.static CodeRelabelerPREVIEWCreates a new instance of CodeRelabeler storing the label mapping into the provided map.static CodeRelabelerPREVIEWCreates a new instance of CodeRelabeler storing the label mapping into the provided map. -
Uses of LabelPREVIEW in java.lang.classfile.instructionPREVIEW
Methods in java.lang.classfile.instructionPREVIEW that return LabelPREVIEWModifier and TypeMethodDescriptionLookupSwitchInstruction.defaultTarget()Returns the target of the default case.TableSwitchInstruction.defaultTarget()Returns the default target of the switch.CharacterRange.endScope()Returns the end of the instruction range.LocalVariable.endScope()Returns the end range of the local variable scope.LocalVariableType.endScope()Returns the end range of the local variable scope.ExceptionCatch.handler()Returns the handler for the exception.LabelTarget.label()Returns the label corresponding to this target.CharacterRange.startScope()Returns the start of the instruction range.LocalVariable.startScope()Returns the start range of the local variable scope.LocalVariableType.startScope()Returns the start range of the local variable scope.BranchInstruction.target()Returns the target of the branch.DiscontinuedInstruction.JsrInstruction.target()Returns the target of the JSR instruction.SwitchCase.target()Returns the branch target corresponding to this case.ExceptionCatch.tryEnd()Returns the end of the instruction range for the guarded instructions.ExceptionCatch.tryStart()Returns the beginning of the instruction range for the guarded instructions.Methods in java.lang.classfile.instructionPREVIEW with parameters of type LabelPREVIEWModifier and TypeMethodDescriptionstatic BranchInstructionPREVIEWReturns a branch instruction.static CharacterRangePREVIEWCharacterRange.of(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags) Returns a character range pseudo-instruction.Returns a JSR instruction.Returns a JSR instruction.static ExceptionCatchPREVIEWReturns an exception table pseudo-instruction for an unconditional handler.static ExceptionCatchPREVIEWExceptionCatch.of(LabelPREVIEW handler, LabelPREVIEW tryStart, LabelPREVIEW tryEnd, Optional<ClassEntryPREVIEW> catchTypeEntry) Returns an exception table pseudo-instruction.static LocalVariablePREVIEWLocalVariable.of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariablePREVIEWLocalVariable.of(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariableTypePREVIEWLocalVariableType.of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.static LocalVariableTypePREVIEWLocalVariableType.of(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.Returns a lookup switch instruction.static SwitchCasePREVIEWCreate a SwitchCasePREVIEWTableSwitchInstruction.of(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Returns a table switch instruction.