gnu.bytecode
Class Access

java.lang.Object
  extended by gnu.bytecode.Access

public class Access
extends java.lang.Object

Access flags.


Field Summary
static short ABSTRACT
           
static short ANNOTATION
           
static short BRIDGE
           
static char CLASS_CONTEXT
          Value for toString's kind parameter when decoding a class's access flags.
static short CLASS_MODIFIERS
          Mask of access flags valid for a class.
static short ENUM
           
static char FIELD_CONTEXT
          Value for toString's kind parameter when decoding a field's access flags.
static short FIELD_MODIFIERS
          Mask of access flags valid for a field.
static short FINAL
           
static char INNERCLASS_CONTEXT
          Value for toString's kind parameter when decoding access flags in InnerClasses attribute.
static short INNERCLASS_MODIFIERS
          Mask of access flags valid in an InnerClasses attribute.
static short INTERFACE
           
static char METHOD_CONTEXT
          Value for toString's kind parameter when decoding a methods's access flags.
static short METHOD_MODIFIERS
          Mask of access flags valid for a method.
static short NATIVE
           
static short PRIVATE
           
static short PROTECTED
           
static short PUBLIC
           
static short STATIC
           
static short STRICT
           
static short SUPER
           
static short SYNCHRONIZED
           
static short SYNTHETIC
           
static short TRANSIENT
           
static short VARARGS
           
static short VOLATILE
           
 
Constructor Summary
Access()
           
 
Method Summary
static java.lang.String toString(int flags)
           
static java.lang.String toString(int flags, char kind)
          Return a string naming the access bits in 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 short PUBLIC
See Also:
Constant Field Values

PRIVATE

public static final short PRIVATE
See Also:
Constant Field Values

PROTECTED

public static final short PROTECTED
See Also:
Constant Field Values

STATIC

public static final short STATIC
See Also:
Constant Field Values

FINAL

public static final short FINAL
See Also:
Constant Field Values

SUPER

public static final short SUPER
See Also:
Constant Field Values

SYNCHRONIZED

public static final short SYNCHRONIZED
See Also:
Constant Field Values

VOLATILE

public static final short VOLATILE
See Also:
Constant Field Values

BRIDGE

public static final short BRIDGE
See Also:
Constant Field Values

TRANSIENT

public static final short TRANSIENT
See Also:
Constant Field Values

VARARGS

public static final short VARARGS
See Also:
Constant Field Values

NATIVE

public static final short NATIVE
See Also:
Constant Field Values

INTERFACE

public static final short INTERFACE
See Also:
Constant Field Values

ABSTRACT

public static final short ABSTRACT
See Also:
Constant Field Values

STRICT

public static final short STRICT
See Also:
Constant Field Values

SYNTHETIC

public static final short SYNTHETIC
See Also:
Constant Field Values

ANNOTATION

public static final short ANNOTATION
See Also:
Constant Field Values

ENUM

public static final short ENUM
See Also:
Constant Field Values

CLASS_CONTEXT

public static final char CLASS_CONTEXT
Value for toString's kind parameter when decoding a class's access flags.

See Also:
Constant Field Values

INNERCLASS_CONTEXT

public static final char INNERCLASS_CONTEXT
Value for toString's kind parameter when decoding access flags in InnerClasses attribute.

See Also:
Constant Field Values

FIELD_CONTEXT

public static final char FIELD_CONTEXT
Value for toString's kind parameter when decoding a field's access flags.

See Also:
Constant Field Values

METHOD_CONTEXT

public static final char METHOD_CONTEXT
Value for toString's kind parameter when decoding a methods's access flags.

See Also:
Constant Field Values

CLASS_MODIFIERS

public static final short CLASS_MODIFIERS
Mask of access flags valid for a class.

See Also:
Constant Field Values

INNERCLASS_MODIFIERS

public static final short INNERCLASS_MODIFIERS
Mask of access flags valid in an InnerClasses attribute.

See Also:
Constant Field Values

FIELD_MODIFIERS

public static final short FIELD_MODIFIERS
Mask of access flags valid for a field.

See Also:
Constant Field Values

METHOD_MODIFIERS

public static final short METHOD_MODIFIERS
Mask of access flags valid for a method.

See Also:
Constant Field Values
Constructor Detail

Access

public Access()
Method Detail

toString

public static java.lang.String toString(int flags)

toString

public static java.lang.String toString(int flags,
                                        char kind)
Return a string naming the access bits in flags.

Parameters:
kind - CLASS_CONTEXT for a class, METHOD_CONTEXT for a method, FIELD_CONTEXT for a field, INNERCLASS_CONTEXT in an InnerClasses attribute.