javar.attributes
Class AttributeManager

java.lang.Object
  |
  +--javar.attributes.AttributeManager

public class AttributeManager
extends Object

This is a simple attribute factory that will create the appropriate attribute for a given name.

Author:
Ben Litchfield

Field Summary
static String CODE
           
static String CONSTANT_VALUE
           
static String DEPRECATED
           
static String EXCEPTIONS
           
static String INNER_CLASSES
           
static String LINE_NUMBER_TABLE
           
static String LOCAL_VARIABLE_TABLE
           
static String SOURCE_FILE
           
static String SYNTHETIC
           
 
Method Summary
static Attribute createAttribute(ConstantPool pool, long nameIndex)
          This will create the correct attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_FILE

public static final String SOURCE_FILE
See Also:
Constant Field Values

INNER_CLASSES

public static final String INNER_CLASSES
See Also:
Constant Field Values

DEPRECATED

public static final String DEPRECATED
See Also:
Constant Field Values

EXCEPTIONS

public static final String EXCEPTIONS
See Also:
Constant Field Values

CODE

public static final String CODE
See Also:
Constant Field Values

SYNTHETIC

public static final String SYNTHETIC
See Also:
Constant Field Values

LOCAL_VARIABLE_TABLE

public static final String LOCAL_VARIABLE_TABLE
See Also:
Constant Field Values

CONSTANT_VALUE

public static final String CONSTANT_VALUE
See Also:
Constant Field Values

LINE_NUMBER_TABLE

public static final String LINE_NUMBER_TABLE
See Also:
Constant Field Values
Method Detail

createAttribute

public static Attribute createAttribute(ConstantPool pool,
                                        long nameIndex)
This will create the correct attribute

Parameters:
pool - The constant pool to work with
nameIndex - The index in the pool of the name of this attribute