Uses of Interface
java.lang.classfile.Label
Packages that use Label
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file attributes for the java.lang.classfile library.Provides interfaces describing code instructions for the
java.lang.classfile library.-
Uses of Label in java.lang.classfile
Methods in java.lang.classfile that return LabelModifier 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.default LabelCodeBuilder.newBoundLabel()Creates a new label bound at the current position.CodeBuilder.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 label right before theInstructioncorresponding to the instanceof expression, the new expression, or the method reference expression.TypeAnnotation.TypeArgumentTarget.target()The label right before theInstructioncorresponding to the cast expression, the new expression, the explicit constructor invocation statement, the method invocation expression, or the method reference expression.Methods in java.lang.classfile with parameters of type LabelModifier and TypeMethodDescriptiondefault CodeBuilderGenerates a branch instruction.default CodeBuilderCodeBuilder.characterRange(Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags) Declares a character range entry.default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, ClassEntry catchType) Declares an exception table entry.default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, ClassDesc catchType) Declares an exception table entry.default CodeBuilderCodeBuilder.exceptionCatch(Label start, Label end, Label handler, Optional<ClassEntry> catchType) Declares an exception table entry.default CodeBuilderCodeBuilder.exceptionCatchAll(Label start, Label end, Label handler) Declares an exception table entry catching all exceptions and errors.default CodeBuilderGenerates an instruction to branch always.default CodeBuilderGenerates an instruction to branch always with wide index.default CodeBuilderGenerates an instruction to branch ifreferencecomparisonoperand1 == operand2succeeds.default CodeBuilderGenerates an instruction to branch ifreferencecomparisonoperand1 != operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 == operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 >= operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 > operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 <= operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 < operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparisonoperand1 != operand2succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero== 0succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero>= 0succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero> 0succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero<= 0succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero< 0succeeds.default CodeBuilderGenerates an instruction to branch ifintcomparison with zero!= 0succeeds.default CodeBuilderGenerates an instruction to branch ifreferenceis notnull.default CodeBuilderGenerates an instruction to branch ifreferenceisnull.default CodeBuilderCodeBuilder.labelBinding(Label label) Binds a label to the current position.default CodeBuilderCodeBuilder.localVariable(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Declares a local variable entry.default CodeBuilderCodeBuilder.localVariable(int slot, String name, ClassDesc descriptor, Label startScope, Label endScope) Declares a local variable entry.default CodeBuilderCodeBuilder.localVariableType(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Declares a local variable type entry.default CodeBuilderCodeBuilder.localVariableType(int slot, String name, Signature signature, Label startScope, Label endScope) Declares a local variable type entry.default CodeBuilderCodeBuilder.lookupswitch(Label defaultTarget, List<SwitchCase> cases) Generates an instruction to access a jump table by key match and jump.Returns local variable target info.TypeAnnotation.TargetInfo.ofCastExpr(Label target, int typeArgumentIndex) Returns a target for annotations on the i'th type in a cast expression.TypeAnnotation.TargetInfo.ofConstructorInvocationTypeArgument(Label 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.static TypeAnnotation.OffsetTargetTypeAnnotation.TargetInfo.ofConstructorReference(Label target) Returns a target for annotations on the type before the :: in a constructor reference expression.TypeAnnotation.TargetInfo.ofConstructorReferenceTypeArgument(Label target, int typeArgumentIndex) Returns a target for annotations on the i'th type argument in the explicit type argument list for a new expression.static TypeAnnotation.OffsetTargetTypeAnnotation.TargetInfo.ofInstanceofExpr(Label target) Returns a target for annotations on the type in an instanceof expression.TypeAnnotation.TargetInfo.ofMethodInvocationTypeArgument(Label 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.static TypeAnnotation.OffsetTargetTypeAnnotation.TargetInfo.ofMethodReference(Label target) Returns a target for annotations on the type before the :: in a method reference expression.TypeAnnotation.TargetInfo.ofMethodReferenceTypeArgument(Label 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.static TypeAnnotation.OffsetTargetReturns a target for annotations on the type in a new expression.static TypeAnnotation.OffsetTargetTypeAnnotation.TargetInfo.ofOffset(TypeAnnotation.TargetType targetType, Label 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.TargetType targetType, Label 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 CodeBuilderCodeBuilder.tableswitch(int low, int high, Label defaultTarget, List<SwitchCase> cases) Generates an instruction to access a jump table by index and jump.default CodeBuilderCodeBuilder.tableswitch(Label defaultTarget, List<SwitchCase> cases) Generates an instruction to access a jump table by index and jump. -
Uses of Label in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return LabelModifier and TypeMethodDescriptionStackMapFrameInfo.UninitializedVerificationTypeInfo.newTarget()Returns the label immediately before thenewinstruction that creates this uninitialized object.StackMapFrameInfo.target()Returns the frame target label.Methods in java.lang.classfile.attribute with parameters of type LabelModifier and TypeMethodDescriptionintCodeAttribute.labelToBci(Label label) Returns the position of thelabelin thecodeArray.static StackMapFrameInfoStackMapFrameInfo.of(Label target, List<StackMapFrameInfo.VerificationTypeInfo> locals, List<StackMapFrameInfo.VerificationTypeInfo> stack) Returns a new stack map frame.Returns an uninitialized verification type info. -
Uses of Label in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return LabelModifier 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 branch target of this instruction.DiscontinuedInstruction.JsrInstruction.target()Returns the target of the jump subroutine 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.instruction with parameters of type LabelModifier and TypeMethodDescriptionstatic BranchInstructionReturns a branch instruction.static CharacterRangeCharacterRange.of(Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags) Returns a character range pseudo-instruction.Returns a jump subroutine instruction.Returns a jump subroutine instruction.static ExceptionCatchReturns an exception table pseudo-instruction to catch everything.static ExceptionCatchReturns an exception table pseudo-instruction.static LocalVariableLocalVariable.of(int slot, Utf8Entry nameEntry, Utf8Entry descriptorEntry, Label startScope, Label endScope) Returns a local variable pseudo-instruction.static LocalVariableReturns a local variable pseudo-instruction.static LocalVariableTypeLocalVariableType.of(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Returns a local variable type pseudo-instruction.static LocalVariableTypeReturns a local variable type pseudo-instruction.static LookupSwitchInstructionLookupSwitchInstruction.of(Label defaultTarget, List<SwitchCase> cases) Returns a lookup switch instruction.static SwitchCaseReturns a new switch case.static TableSwitchInstructionTableSwitchInstruction.of(int lowValue, int highValue, Label defaultTarget, List<SwitchCase> cases) Returns a table switch instruction.