com.sun.tools.classfile
Class Attribute

java.lang.Object
  extended by com.sun.tools.classfile.Attribute
Direct Known Subclasses:
AnnotationDefault_attribute, CharacterRangeTable_attribute, Code_attribute, CompilationID_attribute, ConstantValue_attribute, DefaultAttribute, Deprecated_attribute, EnclosingMethod_attribute, Exceptions_attribute, InnerClasses_attribute, LineNumberTable_attribute, LocalVariableTable_attribute, LocalVariableTypeTable_attribute, Module_attribute, ModuleExportTable_attribute, ModuleMemberTable_attribute, RuntimeAnnotations_attribute, RuntimeParameterAnnotations_attribute, Signature_attribute, SourceDebugExtension_attribute, SourceFile_attribute, SourceID_attribute, StackMap_attribute, StackMapTable_attribute, Synthetic_attribute

public abstract class Attribute
extends java.lang.Object

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Nested Class Summary
static class Attribute.Factory
           
static interface Attribute.Visitor<R,P>
           
 
Field Summary
static java.lang.String AnnotationDefault
           
 int attribute_length
           
 int attribute_name_index
           
static java.lang.String CharacterRangeTable
           
static java.lang.String Code
           
static java.lang.String CompilationID
           
static java.lang.String ConstantValue
           
static java.lang.String Deprecated
           
static java.lang.String EnclosingMethod
           
static java.lang.String Exceptions
           
static java.lang.String InnerClasses
           
static java.lang.String LineNumberTable
           
static java.lang.String LocalVariableTable
           
static java.lang.String LocalVariableTypeTable
           
static java.lang.String Module
           
static java.lang.String ModuleExportTable
           
static java.lang.String ModuleMemberTable
           
static java.lang.String RuntimeInvisibleAnnotations
           
static java.lang.String RuntimeInvisibleParameterAnnotations
           
static java.lang.String RuntimeVisibleAnnotations
           
static java.lang.String RuntimeVisibleParameterAnnotations
           
static java.lang.String Signature
           
static java.lang.String SourceDebugExtension
           
static java.lang.String SourceFile
           
static java.lang.String SourceID
           
static java.lang.String StackMap
           
static java.lang.String StackMapTable
           
static java.lang.String Synthetic
           
 
Constructor Summary
protected Attribute(int name_index, int length)
           
 
Method Summary
abstract
<R,D> R
accept(Attribute.Visitor<R,D> visitor, D data)
           
 java.lang.String getName(ConstantPool constant_pool)
           
static Attribute read(ClassReader cr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AnnotationDefault

public static final java.lang.String AnnotationDefault
See Also:
Constant Field Values

CharacterRangeTable

public static final java.lang.String CharacterRangeTable
See Also:
Constant Field Values

Code

public static final java.lang.String Code
See Also:
Constant Field Values

ConstantValue

public static final java.lang.String ConstantValue
See Also:
Constant Field Values

CompilationID

public static final java.lang.String CompilationID
See Also:
Constant Field Values

Deprecated

public static final java.lang.String Deprecated
See Also:
Constant Field Values

EnclosingMethod

public static final java.lang.String EnclosingMethod
See Also:
Constant Field Values

Exceptions

public static final java.lang.String Exceptions
See Also:
Constant Field Values

InnerClasses

public static final java.lang.String InnerClasses
See Also:
Constant Field Values

LineNumberTable

public static final java.lang.String LineNumberTable
See Also:
Constant Field Values

LocalVariableTable

public static final java.lang.String LocalVariableTable
See Also:
Constant Field Values

LocalVariableTypeTable

public static final java.lang.String LocalVariableTypeTable
See Also:
Constant Field Values

RuntimeVisibleAnnotations

public static final java.lang.String RuntimeVisibleAnnotations
See Also:
Constant Field Values

RuntimeInvisibleAnnotations

public static final java.lang.String RuntimeInvisibleAnnotations
See Also:
Constant Field Values

RuntimeVisibleParameterAnnotations

public static final java.lang.String RuntimeVisibleParameterAnnotations
See Also:
Constant Field Values

RuntimeInvisibleParameterAnnotations

public static final java.lang.String RuntimeInvisibleParameterAnnotations
See Also:
Constant Field Values

Signature

public static final java.lang.String Signature
See Also:
Constant Field Values

SourceDebugExtension

public static final java.lang.String SourceDebugExtension
See Also:
Constant Field Values

SourceFile

public static final java.lang.String SourceFile
See Also:
Constant Field Values

SourceID

public static final java.lang.String SourceID
See Also:
Constant Field Values

StackMap

public static final java.lang.String StackMap
See Also:
Constant Field Values

StackMapTable

public static final java.lang.String StackMapTable
See Also:
Constant Field Values

Synthetic

public static final java.lang.String Synthetic
See Also:
Constant Field Values

Module

public static final java.lang.String Module
See Also:
Constant Field Values

ModuleExportTable

public static final java.lang.String ModuleExportTable
See Also:
Constant Field Values

ModuleMemberTable

public static final java.lang.String ModuleMemberTable
See Also:
Constant Field Values

attribute_name_index

public final int attribute_name_index

attribute_length

public final int attribute_length
Constructor Detail

Attribute

protected Attribute(int name_index,
                    int length)
Method Detail

read

public static Attribute read(ClassReader cr)
                      throws java.io.IOException
Throws:
java.io.IOException

getName

public java.lang.String getName(ConstantPool constant_pool)
                         throws ConstantPoolException
Throws:
ConstantPoolException

accept

public abstract <R,D> R accept(Attribute.Visitor<R,D> visitor,
                               D data)