All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Attribute.AttributeSynthetic

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Attribute.Attribute
           |
           +----harpoon.ClassFile.Raw.Attribute.AttributeSynthetic

public class AttributeSynthetic
extends Attribute
Java 1.1 compilers are required, when producing bytecodes, to mark any field or member not directly defined in the source code with an attribute names Synthetic. These hidden fields and methods are synthesized by the compiler in order to implement the scoping of names for inner classes.

The Synthetic attribute is intended to allow tools to avoid displaying these methods and fields unnecessarily.

Version:
$Id: AttributeSynthetic.java,v 1.2 1998/10/11 03:01:13 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
"Inner, AttributeInnerClasses, Attribute, ClassFile

Constructor Index

 o AttributeSynthetic(ClassFile, int)
Constructor.

Method Index

 o attribute_length()
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.
 o write(ClassDataOutputStream)
Write to bytecode stream.

Constructors

 o AttributeSynthetic
 public AttributeSynthetic(ClassFile parent,
                           int attribute_name_index)
Constructor.

Methods

 o attribute_length
 public long attribute_length()
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.

Overrides:
attribute_length in class Attribute
 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to bytecode stream.

Overrides:
write in class Attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index