java语言中modifiers,java中e.getModifiers()的功用

Java code/*

* Access modifier flag constants from The Java Virtual

* Machine Specification, Second Edition, tables 4.1, 4.4,

* 4.5, and 4.7.

*/

/**

* The int value representing the public

* modifier.

*/

public static final int PUBLIC = 0x00000001;

/**

* The int value representing the private

* modifier.

*/

public static final int PRIVATE = 0x00000002;

/**

* The int value representing the protected

* modifier.

*/

public static final int PROTECTED = 0x00000004;

/**

* The int value representing the static

* modifier.

*/

public static final int STATIC = 0x00000008;

/**

* The int value representing the final

* modifier.

*/

public static final int FINAL = 0x00000010;

/**

* The int value representing the synchronized

* modifier.

*/

public static final int SYNCHRONIZED = 0x00000020;

/**

* The int value representing the volatile

* modifier.

*/

public static final int VOLATILE = 0x00000040;

/**

* The int value representing the transient

* modifier.

*/

public static final int TRANSIENT = 0x00000080;

/**

* The int value representing the native

* modifier.

*/

public static final int NATIVE = 0x00000100;

/**

* The int value representing the interface

* modifier.

*/

public static final int INTERFACE = 0x00000200;

/**

* The int value representing the abstract

* modifier.

*/

public static final int ABSTRACT = 0x00000400;

/**

* The int value representing the strictfp

* modifier.

*/

public static final int STRICT = 0x00000800;

// Bits not (yet) exposed in the public API either because they

// have different meanings for fields and methods and there is no

// way to distinguish between the two in this class, or because

// they are not Java programming language keywords

static final int BRIDGE = 0x00000040;

static final int VARARGS = 0x00000080;

static final int SYNTHETIC = 0x00001000;

static final int ANNOTATION= 0x00002000;

static final int ENUM = 0x00004000;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值