FileDocCategorySizeDatePackage
SyntheticAttribute.javaAPI DocGlassfish v2 API3224Fri May 04 22:34:28 BST 2007com.sun.jdo.api.persistence.enhancer.classfile

SyntheticAttribute

public class SyntheticAttribute extends ClassAttribute
SyntheticAttribute represents a constant value attribute in a class file. These attributes are used as initialization values for static fields.

Fields Summary
public static final String
expectedAttrName
Constructors Summary
public SyntheticAttribute(ConstUtf8 attrName)
Construct a constant value attribute

//NOI18N

           
     
    super(attrName);
    //System.out.println("new SyntheticAttribute()");
  
Methods Summary
voidprint(java.io.PrintStream out, int indent)

    ClassPrint.spaces(out, indent);
    out.println(expectedAttrName);
  
static com.sun.jdo.api.persistence.enhancer.classfile.SyntheticAttributeread(ConstUtf8 attrName, java.io.DataInputStream data, ConstantPool pool)

    return new SyntheticAttribute(attrName);
  
voidwrite(java.io.DataOutputStream out)

    out.writeShort(attrName().getIndex());
    final int attributeBytesLength = 0;
    out.writeInt(attributeBytesLength);