at.dms.classfile
Class SyntheticAttribute

java.lang.Object
  |
  +--at.dms.classfile.Attribute
        |
        +--at.dms.classfile.SyntheticAttribute

public class SyntheticAttribute
extends Attribute

Member Attribute Synthetic: ICS. This attribute marks fields and methods synthesized by the compiler in order to implement the scoping of names. At present,the length of this must be zero.


Fields inherited from class at.dms.classfile.Attribute
EMPTY
 
Constructor Summary
SyntheticAttribute()
          Create a synthetic attribute.
SyntheticAttribute(java.io.DataInput in, ConstantPool cp)
          Constructs a synthetic attribute from a class file stream.
 
Method Summary
(package private)  int getSize()
          Returns the space in bytes used by this attribute in the classfile.
(package private)  int getTag()
          Returns the attribute's tag.
(package private)  void resolveConstants(ConstantPool cp)
          Insert or check location of constant value on constant pool.
(package private)  void write(ConstantPool cp, java.io.DataOutput out)
          Write this class into the the file (out) getting data position from the constant pool.
 
Methods inherited from class at.dms.classfile.Attribute
read, readCodeInfoAttribute, readInterfaceOnly
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntheticAttribute

public SyntheticAttribute()
Create a synthetic attribute.

SyntheticAttribute

public SyntheticAttribute(java.io.DataInput in,
                          ConstantPool cp)
                   throws java.io.IOException,
                          ClassFileFormatException
Constructs a synthetic attribute from a class file stream.
Parameters:
in - The stream to read from.
cp - The constant pool.
Throws:
java.io.IOException - An io problem has occured.
ClassFileFormatException - Attempt to read from a bad classfile.
Method Detail

getTag

int getTag()
Returns the attribute's tag.
Overrides:
getTag in class Attribute

getSize

int getSize()
Returns the space in bytes used by this attribute in the classfile.
Overrides:
getSize in class Attribute

resolveConstants

void resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool.
Overrides:
resolveConstants in class Attribute
Parameters:
cp - the constant pool for this class

write

void write(ConstantPool cp,
           java.io.DataOutput out)
     throws java.io.IOException
Write this class into the the file (out) getting data position from the constant pool.
Overrides:
write in class Attribute
Parameters:
cp - The constant pool that contain all data.
out - The file where to write this object info.
Throws:
java.io.IOException - An io problem has occured.