polyglot.types.reflect
Class Attribute

java.lang.Object
  extended by polyglot.types.reflect.Attribute
Direct Known Subclasses:
Exceptions, InnerClasses

public abstract class Attribute
extends java.lang.Object

Attribute is an abstract class for an attribute defined for a method, field, or class. An attribute consists of its name (represented as an index into the constant pool) and its length. Attribute is extended to represent a constant value, code, exceptions, etc.

Author:
Nate Nystrom (nystrom@cs.purdue.edu)
See Also:
ConstantValue, Exceptions

Field Summary
protected  int length
           
protected  int nameIndex
           
 
Constructor Summary
Attribute(int nameIndex, int length)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameIndex

protected int nameIndex

length

protected int length
Constructor Detail

Attribute

public Attribute(int nameIndex,
                 int length)
Constructor.

Parameters:
nameIndex - The index into the constant pool of the name of the attribute.
length - The length of the attribute, excluding the header.