public interface

Member

java.lang.reflect.Member
Known Indirect Subclasses

Class Overview

Common interface providing access to reflective information on class members.

Summary

Constants
int DECLARED Designates all declared members of a class or interface (without inherited members).
int PUBLIC Designates all public members of a class or interface (including inherited members).
Public Methods
abstract Class getDeclaringClass()
Returns the class that declares this member.
abstract int getModifiers()
Returns the modifiers for this member.
abstract String getName()
Returns the name of this member.
abstract boolean isSynthetic()
Indicates whether or not this member is synthetic (artificially introduced by the compiler).

Constants

public static final int DECLARED

Designates all declared members of a class or interface (without inherited members).

Constant Value: 1 (0x00000001)

public static final int PUBLIC

Designates all public members of a class or interface (including inherited members).

Constant Value: 0 (0x00000000)

Public Methods

public abstract Class getDeclaringClass ()

Returns the class that declares this member.

Returns
  • the declaring class

public abstract int getModifiers ()

Returns the modifiers for this member. The Modifier class should be used to decode the result.

Returns
  • the modifiers for this member
See Also

public abstract String getName ()

Returns the name of this member.

Returns
  • the name of this member

public abstract boolean isSynthetic ()

Indicates whether or not this member is synthetic (artificially introduced by the compiler).

Returns
  • true if this member is synthetic, false otherwise