Android APIs
Added in API level 1
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

Added in API level 1

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

Constant Value: 1 (0x00000001)

public static final int PUBLIC

Added in API level 1

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

Constant Value: 0 (0x00000000)

Public Methods

public abstract Class<?> getDeclaringClass ()

Added in API level 1

Returns the class that declares this member.

Returns
Class<?> the declaring class

public abstract int getModifiers ()

Added in API level 1

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

Returns
int the modifiers for this member

See also:

public abstract String getName ()

Added in API level 1

Returns the name of this member.

Returns
String the name of this member

public abstract boolean isSynthetic ()

Added in API level 1

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

Returns
boolean true if this member is synthetic, false otherwise