mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8263333: Improve links from core reflection to JLS and JVMS
Reviewed-by: jfranck
This commit is contained in:
parent
9399e1b710
commit
acda812958
5 changed files with 21 additions and 1 deletions
|
@ -223,6 +223,7 @@ public final class Constructor<T> extends Executable {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @jls 8.8.3 Constructor Modifiers
|
||||
*/
|
||||
@Override
|
||||
public int getModifiers() {
|
||||
|
@ -332,7 +333,7 @@ public final class Constructor<T> extends Executable {
|
|||
* followed by a parenthesized, comma-separated list of the
|
||||
* constructor's formal parameter types. For example:
|
||||
* <pre>{@code
|
||||
* public java.util.Hashtable(int,float)
|
||||
* public java.util.HashMap(int,float)
|
||||
* }</pre>
|
||||
*
|
||||
* <p>If the constructor is declared to throw exceptions, the
|
||||
|
@ -502,6 +503,7 @@ public final class Constructor<T> extends Executable {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* @since 1.5
|
||||
* @jls 8.4.1 Formal Parameters
|
||||
*/
|
||||
@Override
|
||||
public boolean isVarArgs() {
|
||||
|
|
|
@ -199,6 +199,8 @@ class Field extends AccessibleObject implements Member {
|
|||
* be used to decode the modifiers.
|
||||
*
|
||||
* @see Modifier
|
||||
* @jls 8.3 Field Declarations
|
||||
* @jls 9.3 Field (Constant) Declarations
|
||||
*/
|
||||
public int getModifiers() {
|
||||
return modifiers;
|
||||
|
@ -211,6 +213,7 @@ class Field extends AccessibleObject implements Member {
|
|||
* @return {@code true} if and only if this field represents an element of
|
||||
* an enumerated class.
|
||||
* @since 1.5
|
||||
* @jls 8.9.1 Enum Constants
|
||||
*/
|
||||
public boolean isEnumConstant() {
|
||||
return (getModifiers() & Modifier.ENUM) != 0;
|
||||
|
|
|
@ -234,6 +234,7 @@ public final class Method extends Executable {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @jls 8.4.3 Method Modifiers
|
||||
*/
|
||||
@Override
|
||||
public int getModifiers() {
|
||||
|
@ -244,6 +245,7 @@ public final class Method extends Executable {
|
|||
* {@inheritDoc}
|
||||
* @throws GenericSignatureFormatError {@inheritDoc}
|
||||
* @since 1.5
|
||||
* @jls 8.4.4 Generic Methods
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
|
@ -613,6 +615,7 @@ public final class Method extends Executable {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* @since 1.5
|
||||
* @jls 8.4.1 Formal Parameters
|
||||
*/
|
||||
@Override
|
||||
public boolean isVarArgs() {
|
||||
|
@ -640,6 +643,7 @@ public final class Method extends Executable {
|
|||
* @return true if and only if this method is a default
|
||||
* method as defined by the Java Language Specification.
|
||||
* @since 1.8
|
||||
* @jls 9.4 Method Declarations
|
||||
*/
|
||||
public boolean isDefault() {
|
||||
// Default methods are public non-abstract instance methods
|
||||
|
@ -697,6 +701,7 @@ public final class Method extends Executable {
|
|||
* {@link Class} and no definition can be found for the
|
||||
* default class value.
|
||||
* @since 1.5
|
||||
* @jls 9.6.2 Defaults for Annotation Type Elements
|
||||
*/
|
||||
public Object getDefaultValue() {
|
||||
if (annotationDefault == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue