1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 import java.io.*; 28 29 32 37 38 public class SyntheticAttribute extends ClassAttribute { 39 40 public static final String expectedAttrName = "Synthetic"; 42 45 public SyntheticAttribute(ConstUtf8 attrName) { 46 super(attrName); 47 } 49 50 51 52 static SyntheticAttribute read (ConstUtf8 attrName, 53 DataInputStream data, 54 ConstantPool pool) 55 throws IOException { 56 return new SyntheticAttribute(attrName); 57 } 58 59 void write(DataOutputStream out) throws IOException { 60 out.writeShort(attrName().getIndex()); 61 final int attributeBytesLength = 0; 62 out.writeInt(attributeBytesLength); 63 } 64 65 void print(PrintStream out, int indent) { 66 ClassPrint.spaces(out, indent); 67 out.println(expectedAttrName); 68 } 69 } 70 | Popular Tags |