public interface java.lang.reflect
Member


Hide details Login
Java SE 6
  
Implemented by: Constructor, Field, Method

Member is an interface that reflects identifying information about a single member (a field or a method) or a constructor.
See also java.lang.Class, java.lang.reflect.Field, java.lang.reflect.Method, java.lang.reflect.Constructor

Fields
final public static int PUBLIC
Identifies the set of all public members of a class or interface, including inherited members.
See also checkMemberAccess
final public static int DECLARED
Identifies the set of declared members of a class or interface. Inherited members are not included.
See also checkMemberAccess

Properties
public Class getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
returnan object representing the declaring class of the underlying member
public 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.
returnthe Java language modifiers for the underlying member
See also java.lang.reflect.Modifier
public String getName()
Returns the simple name of the underlying member or constructor represented by this Member.
returnthe simple name of the underlying member
public boolean isSynthetic()
Returns true if this member was introduced by the compiler; returns false otherwise.
returntrue if and only if this member was introduced by the compiler.
since1.5