Constructor, Executable, Field, Methodpublic interface Member
Class,
Field,
Method,
Constructor| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
DECLARED |
Identifies the set of declared members of a class or interface.
|
static int |
PUBLIC |
Identifies the set of all public members of a class or interface,
including inherited members.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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 DECLARED
static final int PUBLIC
Class<?> getDeclaringClass()
String getName()
int getModifiers()
Modifierboolean isSynthetic()
true if this member was introduced by
the compiler; returns false otherwise.