Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Member

public interface Member

java.lang.reflect.Member
Known Indirect Subclasses


Common interface providing access to reflective information on class members.

See also:

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

DECLARED

Added in API level 1
int DECLARED

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

Constant Value: 1 (0x00000001)

PUBLIC

Added in API level 1
int PUBLIC

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

Constant Value: 0 (0x00000000)

Public methods

getDeclaringClass

Added in API level 1
Class<?> getDeclaringClass ()

Returns the class that declares this member.

Returns
Class<?> the declaring class

getModifiers

Added in API level 1
int getModifiers ()

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:

getName

Added in API level 1
String getName ()

Returns the name of this member.

Returns
String the name of this member

isSynthetic

Added in API level 1
boolean isSynthetic ()

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

Returns
boolean true if this member is synthetic, false otherwise
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.