java.lang.Class
, Field
, Method
, Constructor
Modifier and Type | Field and Description |
---|---|
public static final int | DECLARED
Identifies the set of declared members of a class or interface. |
public static final int | PUBLIC
Identifies the set of all public members of a class or interface, including inherited members. |
Modifier and Type | Method and Description |
---|---|
public default Set | Returns: an unmodifiable set of the access flags for this member, possibly emptyReturns an unmodifiable set of the access flags for this member, possibly empty. |
public Class | Returns: an object representing the declaring class of the underlying memberReturns the Class object representing the class or interface that declares the member or constructor represented by this Member. |
public int | Returns: the Java language modifiers for the underlying memberReturns the Java language modifiers for the member or constructor represented by this Member, as an integer. |
public String | Returns: the simple name of the underlying memberReturns the simple name of the underlying member or constructor represented by this Member. |
public boolean | Returns: true if and only if this member was introduced by the compiler.Returns |
DECLARED | back to summary |
---|---|
public static final int DECLARED Identifies the set of declared members of a class or interface. Inherited members are not included. |
PUBLIC | back to summary |
---|---|
public static final int PUBLIC Identifies the set of all public members of a class or interface, including inherited members. |
accessFlags | back to summary |
---|---|
public default Set Returns an unmodifiable set of the access flags for this member, possibly empty. Implementation Specification The default implementation throws
|
getDeclaringClass | back to summary |
---|---|
public Class Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
|
getModifiers | back to summary |
---|---|
public int getModifiers() Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.
|
getName | back to summary |
---|---|
public String getName() Returns the simple name of the underlying member or constructor represented by this Member.
|
isSynthetic | back to summary |
---|---|
public boolean isSynthetic() Returns
|