Exemplo n.º 1
0
 //
 // called by the .signature directive
 //
 void setSignature(String str) throws jasError {
   SignatureAttr sig = new SignatureAttr(str);
   if (cur_method != null) {
     cur_method.setSignature(sig);
   } else if (cur_field != null) {
     cur_field.setSignature(sig);
   } else if (class_header) {
     class_env.setSignature(str);
   } else {
     outside(".signature");
   }
 }
Exemplo n.º 2
0
 //
 // called by the .field directive
 //
 void addField(short access, String name, String desc, String sig, Object value) throws jasError {
   beginField(access, name, desc, value);
   if (sig != null) cur_field.setSignature(new SignatureAttr(sig));
   endField();
 }