Name

Member

Synopsis

This interface defines the methods shared by all members (fields, methods, and constructors) of a class. getName( ) returns the name of the member, getModifiers( ) returns its modifiers, and getDeclaringClass( ) returns the Class object that represents the class of which the member is a part. isSynthetic( ) returns true if the member is one that does not appear in the source code but was introduced by the compiler.

public interface Member {
// Public Constants
     public static final int DECLARED;     =1
     public static final int PUBLIC;       =0
                  // Public Instance Methods
     Class getDeclaringClass( );  
     int getModifiers( );  
     String getName( );  
5.0  boolean isSynthetic( );  
}

Implementations

Constructor, Field, Method

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.