站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Access (Classfile Reader) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.classfile/1 1.19

org.netbeans.modules.classfile
Class Access

java.lang.Object
  extended by org.netbeans.modules.classfile.Access

public class Access
extends Object

A utility class defining access flags and access utility methods. Access flags are as defined by the Java Virtual Machine Specification Second Edition, tables 4.1, 4.4, 4.5 and 4.7.


Field Summary
static int ABSTRACT
          Declared abstract; must not be instantiated.
static int ANNOTATION
          Declared as an annotation type.
static int BRIDGE
          A bridge method, generated by the compiler.
static int ENUM
          For classes, declared as an enum type.
static int FINAL
          Declared final.
static int INTERFACE
          Is an interface, not a class.
static int NATIVE
          Declared native; implemented in a language other than Java.
static int PRIVATE
          Declared private, usable only within the defining class.
static int PROTECTED
          Declared protected, may be accessed within subclasses.
static int PUBLIC
          Declared public, may be accessed from outside its package.
static int STATIC
          Declared static.
static int STRICT
          Declared strictfp; floating point mode is FP-strict.
static int SUPER
          Treat superclass methods specially when invoked by the invokespecial instruction.
static int SYNCHRONIZED
          Declared synchronized; invocation is wrapped in a monitor lock.
static int SYNTHETIC
          Declared synthetic, not present in the source file.
static int TRANSIENT
          Declared transient; not written or read by a persistent object manager
static int VARARGS
          Declared with a variable number of arguments.
static int VOLATILE
          Declared volatile; cannot be cached.
 
Method Summary
static boolean isPackagePrivate(int access)
           
static boolean isPrivate(int access)
           
static boolean isProtected(int access)
           
static boolean isPublic(int access)
           
static boolean isStatic(int access)
           
static String toString(int access)
          Return a text representation for a given set of access flags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLIC

public static final int PUBLIC
Declared public, may be accessed from outside its package.

See Also:
Constant Field Values

PRIVATE

public static final int PRIVATE
Declared private, usable only within the defining class.

See Also:
Constant Field Values

PROTECTED

public static final int PROTECTED
Declared protected, may be accessed within subclasses.

See Also:
Constant Field Values

STATIC

public static final int STATIC
Declared static.

See Also:
Constant Field Values

FINAL

public static final int FINAL
Declared final. For classes this means no subclassing allowed. For fields it means no further assignment allowed after initialization. For methods it means that the method cannot be overridden.

See Also:
Constant Field Values

SYNCHRONIZED

public static final int SYNCHRONIZED
Declared synchronized; invocation is wrapped in a monitor lock.

See Also:
Constant Field Values

SUPER

public static final int SUPER
Treat superclass methods specially when invoked by the invokespecial instruction. This access only applies to classes, and shares the same value as SYNCHRONIZED.

See Also:
Constant Field Values

VOLATILE

public static final int VOLATILE
Declared volatile; cannot be cached.

See Also:
Constant Field Values

BRIDGE

public static final int BRIDGE
A bridge method, generated by the compiler.

See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
Declared transient; not written or read by a persistent object manager

See Also:
Constant Field Values

VARARGS

public static final int VARARGS
Declared with a variable number of arguments.

See Also:
Constant Field Values

NATIVE

public static final int NATIVE
Declared native; implemented in a language other than Java.

See Also:
Constant Field Values

INTERFACE

public static final int INTERFACE
Is an interface, not a class.

See Also:
Constant Field Values

ABSTRACT

public static final int ABSTRACT
Declared abstract; must not be instantiated.

See Also:
Constant Field Values

STRICT

public static final int STRICT
Declared strictfp; floating point mode is FP-strict.

See Also:
Constant Field Values

SYNTHETIC

public static final int SYNTHETIC
Declared synthetic, not present in the source file.

See Also:
Constant Field Values

ANNOTATION

public static final int ANNOTATION
Declared as an annotation type.

See Also:
Constant Field Values

ENUM

public static final int ENUM
For classes, declared as an enum type. For fields, declared as an element of an enum.

See Also:
Constant Field Values
Method Detail

toString

public static String toString(int access)
Return a text representation for a given set of access flags. Here are some examples:
"public static final",
"package private", or
"protected transient".
Note: only access flags that map to Java modifier keywords are returned.

Parameters:
access - the mask of flags denoting access permission.
Returns:
a text representation of the access flags.

isStatic

public static boolean isStatic(int access)

isPublic

public static final boolean isPublic(int access)

isProtected

public static final boolean isProtected(int access)

isPackagePrivate

public static final boolean isPackagePrivate(int access)

isPrivate

public static final boolean isPrivate(int access)

org.netbeans.modules.classfile/1 1.19

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.