1 7 8 package jas; 9 10 import java.io.*; 11 import java.util.*; 12 13 public class AnnotationDefaultAttr { 14 15 static CP attr = new AsciiCP("AnnotationDefault"); 16 ElemValPair elem; 17 18 void resolve(ClassEnv e){ 19 e.addCPItem(attr); 20 elem.resolve(e); 21 } 22 23 27 public AnnotationDefaultAttr(ElemValPair s) { elem = s; 29 } 30 31 int size(){ 32 return elem.size(); 33 } 34 35 36 void write(ClassEnv e, DataOutputStream out) 37 throws IOException, jasError 38 { 39 40 out.writeShort(e.getCPIndex(attr)); 41 out.writeInt(size()); elem.write(e, out); 43 } 44 } 45 | Popular Tags |