Contents | Prev | Next | Java Core Reflection |
Thepackage java.lang.reflect;
public interface Member
Member
interface reflects identifying information about a class or interface
member or constructor.
public final static int PUBLIC
Identifies the public members of a class or interface.
This is used by class SecurityManager
when determining security policy.
public final static int DECLARED
Identifies the declared members of a class or interface.
This is used by class SecurityManager
when determining security policy.
public abstract Class getDeclaringClass()
Returns the Class
object representing the class or interface that declares this
member or constructor.
public abstract String getName()
Returns the name of this member or constructor, as a String
. The member or
constructor name does not include the name of its declaring class or interface.
public abstract int getModifiers()
Returns the Java language modifiers for this member or constructor, encoded
in an integer. The Modifier
class should be used to decode the modifiers.
The modifier encodings are defined in The Java Virtual Machine Specification, Tables 4.1, 4.3, and 4.4.