Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Member

public interface Member

java.lang.reflect.Member
Known Indirect Subclasses


Member is an interface that reflects identifying information about a single member (a field or a method) or a constructor.

See also:

Summary

Constants

int DECLARED

Identifies the set of declared members of a class or interface.

int PUBLIC

Identifies the set of all public members of a class or interface, including inherited members.

Public methods

abstract Class<?> getDeclaringClass()

Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.

abstract int getModifiers()

Returns the Java language modifiers for the member or constructor represented by this Member, as an integer.

abstract String getName()

Returns the simple name of the underlying member or constructor represented by this Member.

abstract boolean isSynthetic()

Returns true if this member was introduced by the compiler; returns false otherwise.

Constants

DECLARED

Added in API level 1
int DECLARED

Identifies the set of declared members of a class or interface. Inherited members are not included.

See also:

Constant Value: 1 (0x00000001)

PUBLIC

Added in API level 1
int PUBLIC

Identifies the set of all public members of a class or interface, including inherited members.

See also:

Constant Value: 0 (0x00000000)

Public methods

getDeclaringClass

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

Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.

Returns
Class<?> an object representing the declaring class of the underlying member

getModifiers

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

Returns
int the Java language modifiers for the underlying member

See also:

getName

Added in API level 1
String getName ()

Returns the simple name of the underlying member or constructor represented by this Member.

Returns
String the simple name of the underlying member

isSynthetic

Added in API level 1
boolean isSynthetic ()

Returns true if this member was introduced by the compiler; returns false otherwise.

Returns
boolean true if and only if this member was introduced by the compiler.
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.