Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang.reflect

Interface Member

java.lang.Object
|
+--java.lang.reflect.Member


public interface Member

Member is an interface that represents any member of a class (field or method) or a constructor. You can get information about the declaring class, name or modifiers of the member with this interface.

Since:Authors:See Also:

Method Summary

java.lang.ClassgetDeclaringClass()

Gets the class that declared this member.
intgetModifiers()

Gets the modifiers this member uses.
java.lang.StringgetName()

Gets the simple name of this member.

Method Details

getDeclaringClass

public Class getDeclaringClass()

Gets the class that declared this member. This is not the class where this method was called, or even the class where this Member object came to life, but the class that declares the member this represents.

Returns:


getModifiers

public int getModifiers()

Gets the modifiers this member uses. Use the Modifier class to interpret the values.

Returns:

See Also:


getName

public String getName()

Gets the simple name of this member. This will be a valid Java identifier, with no qualification.

Returns: