Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/java/lang/reflect/Member#constants) \| [Methods](https://developer.android.com/reference/java/lang/reflect/Member#pubmethods)

# Member

` public interface Member `   
` `

|---|
| java.lang.reflect.Member |

Known indirect subclasses [Constructor](https://developer.android.com/reference/java/lang/reflect/Constructor)\<T\>, [Executable](https://developer.android.com/reference/java/lang/reflect/Executable), [Field](https://developer.android.com/reference/java/lang/reflect/Field), [Method](https://developer.android.com/reference/java/lang/reflect/Method) [Constructor](https://developer.android.com/reference/java/lang/reflect/Constructor)\<T\> `Constructor` provides information about, and access to, a single constructor for a class. [Executable](https://developer.android.com/reference/java/lang/reflect/Executable) A shared superclass for the common functionality of `https://developer.android.com/reference/java/lang/reflect/Method` and `https://developer.android.com/reference/java/lang/reflect/Constructor`. [Field](https://developer.android.com/reference/java/lang/reflect/Field) A `Field` provides information about, and dynamic access to, a single field of a class or an interface. [Method](https://developer.android.com/reference/java/lang/reflect/Method) A `Method` provides information about, and access to, a single method on a class or interface.   

*** ** * ** ***

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

- `https://developer.android.com/reference/java/lang/Class`
- `https://developer.android.com/reference/java/lang/reflect/Field`
- `https://developer.android.com/reference/java/lang/reflect/Method`
- `https://developer.android.com/reference/java/lang/reflect/Constructor`

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/java/lang/reflect/Member#DECLARED` Identifies the set of declared members of a class or interface. |
| `int` | `https://developer.android.com/reference/java/lang/reflect/Member#PUBLIC` Identifies the set of all public members of a class or interface, including inherited members. |

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/reflect/Member#getDeclaringClass()() ` Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. |
| ` abstract int` | ` https://developer.android.com/reference/java/lang/reflect/Member#getModifiers()() ` Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/reflect/Member#getName()() ` Returns the simple name of the underlying member or constructor represented by this Member. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/lang/reflect/Member#isSynthetic()() ` Returns `true` if this member was introduced by the compiler; returns `false` otherwise. |

## Constants

### DECLARED

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DECLARED
```

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

<br />

Constant Value: 1 (0x00000001)

### PUBLIC

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PUBLIC
```

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

<br />

Constant Value: 0 (0x00000000)

## Public methods

### getDeclaringClass

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Class<?> getDeclaringClass ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Class<?>` | an object representing the declaring class of the underlying member <br /> |

### getModifiers

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract 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.

<br />

| Returns ||
|---|---|
| `int` | the Java language modifiers for the underlying member <br /> |

**See also:**

- `https://developer.android.com/reference/java/lang/reflect/Modifier`

### getName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract String getName ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the simple name of the underlying member <br /> |

### isSynthetic

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isSynthetic ()
```

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

<br />

| Returns ||
|---|---|
| `boolean` | true if and only if this member was introduced by the compiler. <br /> |