mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8342466: Improve API documentation for java.lang.classfile.attribute
Reviewed-by: darcy, asotona
This commit is contained in:
parent
9782bfdd27
commit
973c630777
70 changed files with 2443 additions and 967 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,11 +24,16 @@
|
|||
*/
|
||||
package java.lang.classfile.attribute;
|
||||
|
||||
import java.lang.classfile.CodeBuilder;
|
||||
import java.lang.classfile.instruction.LineNumber;
|
||||
|
||||
import jdk.internal.classfile.impl.UnboundAttribute;
|
||||
|
||||
/**
|
||||
* Models a single line number in the {@link LineNumberTableAttribute}.
|
||||
* Models a single line number entry in the {@link LineNumberTableAttribute}.
|
||||
*
|
||||
* @see LineNumberTableAttribute#lineNumbers()
|
||||
* @see LineNumber
|
||||
* @since 24
|
||||
*/
|
||||
public sealed interface LineNumberInfo
|
||||
|
@ -47,6 +52,12 @@ public sealed interface LineNumberInfo
|
|||
|
||||
/**
|
||||
* {@return a line number description}
|
||||
*
|
||||
* @apiNote
|
||||
* The created entry cannot be written to a {@link CodeBuilder}. Call
|
||||
* {@link CodeBuilder#lineNumber CodeBuilder::lineNumber} in the correct
|
||||
* order instead.
|
||||
*
|
||||
* @param startPc the starting index of the code array for this line
|
||||
* @param lineNumber the line number within the original source file
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue