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.classfile
PREVIEW library.Provides specific components, transformations, and tools built on top of the
java.lang.classfile
PREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfile
PREVIEW library.-
Uses of LabelPREVIEW in java.lang.classfilePREVIEW
Modifier 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.Modifier and TypeMethodDescriptiondefault CodeBuilderPREVIEW
Generate a branch instructiondefault CodeBuilderPREVIEW
CodeBuilder.characterRange
(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags) Declare a character range entrydefault CodeBuilderPREVIEW
CodeBuilder.exceptionCatch
(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType) Declare an exception table entrydefault CodeBuilderPREVIEW
CodeBuilder.exceptionCatch
(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassDesc catchType) Declare an exception table entrydefault CodeBuilderPREVIEW
CodeBuilder.exceptionCatch
(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType) Declare an exception table entrydefault CodeBuilderPREVIEW
Declare an exception table entry catching all exceptions and errorsdefault CodeBuilderPREVIEW
Generate an instruction to branch alwaysdefault CodeBuilderPREVIEW
Generate an instruction to branch always with wide indexdefault CodeBuilderPREVIEW
Generate an instruction to branch if reference comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if reference comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if int comparison with zero succeedsdefault CodeBuilderPREVIEW
Generate an instruction to branch if reference is not nulldefault CodeBuilderPREVIEW
Generate an instruction to branch if reference is nulldefault CodeBuilderPREVIEW
CodeBuilder.labelBinding
(LabelPREVIEW label) Bind label with current positiondefault CodeBuilderPREVIEW
CodeBuilder.localVariable
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEW
CodeBuilder.localVariable
(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable entrydefault CodeBuilderPREVIEW
CodeBuilder.localVariableType
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrydefault CodeBuilderPREVIEW
CodeBuilder.localVariableType
(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Declare a local variable type entrydefault CodeBuilderPREVIEW
CodeBuilder.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 CodeBuilderPREVIEW
CodeBuilder.tableswitch
(int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Generate an instruction to access a jump table by index and jumpdefault CodeBuilderPREVIEW
CodeBuilder.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
Modifier and TypeMethodDescriptionStackMapFrameInfo.UninitializedVerificationTypeInfo.newTarget()
Returns thenew
instruction position that creates this unitialized object.StackMapFrameInfo.target()
Returns the frame target label.Modifier and TypeMethodDescriptionint
CodeAttribute.labelToBci
(LabelPREVIEW label) static StackMapFrameInfoPREVIEW
StackMapFrameInfo.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
Modifier and TypeMethodDescriptionstatic CodeRelabelerPREVIEW
CodeRelabeler.of
(BiFunction<LabelPREVIEW, CodeBuilderPREVIEW, LabelPREVIEW> mapFunction) Creates a new instance of CodeRelabeler using providedBiFunction
to re-label the code.static CodeRelabelerPREVIEW
CodeRelabeler.of
(BiFunction<LabelPREVIEW, CodeBuilderPREVIEW, LabelPREVIEW> mapFunction) Creates a new instance of CodeRelabeler using providedBiFunction
to re-label the code.static CodeRelabelerPREVIEW
Creates a new instance of CodeRelabeler storing the label mapping into the provided map.static CodeRelabelerPREVIEW
Creates a new instance of CodeRelabeler storing the label mapping into the provided map. -
Uses of LabelPREVIEW in java.lang.classfile.instructionPREVIEW
Modifier 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.Modifier and TypeMethodDescriptionstatic BranchInstructionPREVIEW
Returns a branch instruction.static CharacterRangePREVIEW
CharacterRange.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 ExceptionCatchPREVIEW
Returns an exception table pseudo-instruction for an unconditional handler.static ExceptionCatchPREVIEW
ExceptionCatch.of
(LabelPREVIEW handler, LabelPREVIEW tryStart, LabelPREVIEW tryEnd, Optional<ClassEntryPREVIEW> catchTypeEntry) Returns an exception table pseudo-instruction.static LocalVariablePREVIEW
LocalVariable.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariablePREVIEW
LocalVariable.of
(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable pseudo-instruction.static LocalVariableTypePREVIEW
LocalVariableType.of
(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.static LocalVariableTypePREVIEW
LocalVariableType.of
(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.Returns a lookup switch instruction.static SwitchCasePREVIEW
Create a SwitchCaseTableSwitchInstruction.of
(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases) Returns a table switch instruction.