Constructor
, Executable
, Field
, Method
public interface Member
Modifier and Type | Field | Description |
---|---|---|
static final int |
DECLARED |
Identifies the set of declared members of a class or interface. |
static final int |
PUBLIC |
Identifies the set of all public members of a class or interface, including inherited members. |
Modifier and Type | Method | Description |
---|---|---|
default Set |
accessFlags() |
Returns an unmodifiable set of the access flags for this member, possibly empty. |
Class |
getDeclaringClass() |
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. |
int |
getModifiers() |
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. |
String |
getName() |
Returns the simple name of the underlying member or constructor represented by this Member. |
boolean |
isSynthetic() |
Returns true if this member was introduced by the compiler; returns false otherwise. |
static final int PUBLIC
static final int DECLARED
Class<?> getDeclaringClass()
String getName()
int getModifiers()
default Set<AccessFlag> accessFlags()
UnsupportedOperationException
.boolean isSynthetic()
true
if this member was introduced by the compiler; returns false
otherwise.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/reflect/Member.html