JavaTM Platform
Standard Ed. 6

java.lang.reflect
�� Modifier

java.lang.Object
  �̳��� java.lang.reflect.Modifier

public class Modifier
extends Object

Modifier ���ṩ�� static �����ͳ���������ͳ�Ա�������η����н��롣���η�������ʾΪ�������ò�ͬ��λλ�� (bit position) ��ʾ��ͬ�����η�����ʾ���η��ij���ֵȡ���� The JavaTM Virtual Machine Specification, Second edition �ı� 4.1��4.4��4.5 �� 4.7��

������
Class.getModifiers(), Member.getModifiers()

�ֶ�ժҪ
static int ABSTRACT
          ��ʾ abstract ���η��� int ��ֵ��
static int FINAL
          ��ʾ final ���η��� int ֵ��
static int INTERFACE
          ��ʾ interface ���η��� int ��ֵ��
static int NATIVE
          ��ʾ native ���η��� int ��ֵ��
static int PRIVATE
          ��ʾ private ���η��� int ֵ��
static int PROTECTED
          ��ʾ protected ���η��� int ֵ��
static int PUBLIC
          ��ʾ public ���η��� int ֵ��
static int STATIC
          ��ʾ static ���η��� int ֵ��
static int STRICT
          ��ʾ strictfp ���η��� int ��ֵ��
static int SYNCHRONIZED
          ��ʾ synchronized ���η��� int ֵ��
static int TRANSIENT
          ��ʾ transient ���η��� int ��ֵ��
static int VOLATILE
          ��ʾ volatile ���η��� int ֵ��
 
���췽��ժҪ
Modifier()
           
 
����ժҪ
static boolean isAbstract(int mod)
          ��������������� abstract ���η����򷵻� true�����򷵻� false��
static boolean isFinal(int mod)
          ��������������� final ���η����򷵻� true�����򷵻� false��
static boolean isInterface(int mod)
          ��������������� interface ���η����򷵻� true�����򷵻� false��
static boolean isNative(int mod)
          ��������������� native ���η����򷵻� true�����򷵻� false��
static boolean isPrivate(int mod)
          ��������������� private ���η����򷵻� true�����򷵻� false��
static boolean isProtected(int mod)
          ��������������� protected ���η����򷵻� true�����򷵻� false��
static boolean isPublic(int mod)
          ��������������� public ���η����򷵻� true�����򷵻� false��
static boolean isStatic(int mod)
          ��������������� static ���η����򷵻� true�����򷵻� false��
static boolean isStrict(int mod)
          ��������������� strictfp ���η����򷵻� true�����򷵻� false��
static boolean isSynchronized(int mod)
          ��������������� synchronized ���η����򷵻� true�����򷵻� false��
static boolean isTransient(int mod)
          ��������������� transient ���η����򷵻� true�����򷵻� false��
static boolean isVolatile(int mod)
          ��������������� volatile ���η����򷵻� true�����򷵻� false��
static String toString(int mod)
          ��������ָ�����η��еķ������η���־���ַ�����
 
���� java.lang.Object �̳еķ���
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

�ֶ���ϸ��Ϣ

PUBLIC

public static final int PUBLIC
��ʾ public ���η��� int ֵ��

������
�����ֶ�ֵ

PRIVATE

public static final int PRIVATE
��ʾ private ���η��� int ֵ��

������
�����ֶ�ֵ

PROTECTED

public static final int PROTECTED
��ʾ protected ���η��� int ֵ��

������
�����ֶ�ֵ

STATIC

public static final int STATIC
��ʾ static ���η��� int ֵ��

������
�����ֶ�ֵ

FINAL

public static final int FINAL
��ʾ final ���η��� int ֵ��

������
�����ֶ�ֵ

SYNCHRONIZED

public static final int SYNCHRONIZED
��ʾ synchronized ���η��� int ֵ��

������
�����ֶ�ֵ

VOLATILE

public static final int VOLATILE
��ʾ volatile ���η��� int ֵ��

������
�����ֶ�ֵ

TRANSIENT

public static final int TRANSIENT
��ʾ transient ���η��� int ��ֵ��

������
�����ֶ�ֵ

NATIVE

public static final int NATIVE
��ʾ native ���η��� int ��ֵ��

������
�����ֶ�ֵ

INTERFACE

public static final int INTERFACE
��ʾ interface ���η��� int ��ֵ��

������
�����ֶ�ֵ

ABSTRACT

public static final int ABSTRACT
��ʾ abstract ���η��� int ��ֵ��

������
�����ֶ�ֵ

STRICT

public static final int STRICT
��ʾ strictfp ���η��� int ��ֵ��

������
�����ֶ�ֵ
���췽����ϸ��Ϣ

Modifier

public Modifier()
������ϸ��Ϣ

isPublic

public static boolean isPublic(int mod)
��������������� public ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� public ���η����򷵻� true�����򷵻� false��

isPrivate

public static boolean isPrivate(int mod)
��������������� private ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� private ���η����򷵻� true�����򷵻� false��

isProtected

public static boolean isProtected(int mod)
��������������� protected ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� protected ���η����򷵻� true�����򷵻� false��

isStatic

public static boolean isStatic(int mod)
��������������� static ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� static ���η����򷵻� true�����򷵻� false��

isFinal

public static boolean isFinal(int mod)
��������������� final ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� final ���η����򷵻� true�����򷵻� false��

isSynchronized

public static boolean isSynchronized(int mod)
��������������� synchronized ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� synchronized ���η����򷵻� true�����򷵻� false��

isVolatile

public static boolean isVolatile(int mod)
��������������� volatile ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� volatile ���η����򷵻� true�����򷵻� false��

isTransient

public static boolean isTransient(int mod)
��������������� transient ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� transient ���η����򷵻� true�����򷵻� false��

isNative

public static boolean isNative(int mod)
��������������� native ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� native ���η����򷵻� true�����򷵻� false��

isInterface

public static boolean isInterface(int mod)
��������������� interface ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� interface ���η����򷵻� true�����򷵻� false��

isAbstract

public static boolean isAbstract(int mod)
��������������� abstract ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� abstract ���η����򷵻� true�����򷵻� false��

isStrict

public static boolean isStrict(int mod)
��������������� strictfp ���η����򷵻� true�����򷵻� false��

������
mod - �����
���أ�
��� mod ���� strictfp ���η����򷵻� true�����򷵻� false��

toString

public static String toString(int mod)
��������ָ�����η��еķ������η���־���ַ��������磺
    public final synchronized strictfp
 
���ص����η����Ƶ�˳���� The Java Language Specification, Second Edition ��§8.1.1��§8.3.1��§8.4.3��§8.8.3 �� §9.1.1 �и����Ľ������η�������һ�µġ��˷���ʹ�õ��������η������ǣ�
public protected private abstract static final transient volatile synchronized native strictfp interface
����������۵� interface ���η����������� Java �������η������������ڴ˷����г��������������η��ĺ��档�˷������ܷ���һ��������Ч Java ʵ�����η������η������仰˵����û�жԸ������ʾ�Ŀ�����Ч��������η����м�顣

������
mod - �����
���أ�
mod ��ʾ�����η������ַ�����ʾ��ʽ

JavaTM Platform
Standard Ed. 6

�ύ��������
�йظ���� API �ο����ϺͿ�����Ա�ĵ�������� Java SE ������Ա�ĵ������ĵ���������ϸ�ġ����򿪷���Ա���������Լ�������������ﶨ�塢ʹ�ü��ɺ͹�������ʾ����

��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������