コード例 #1
0
 void addAnnotation(boolean visible, String clname) throws jasError {
   if (cur_method != null) {
     cur_annotation = cur_method.addAnnotation(visible, clname);
   } else if (cur_field != null) {
     cur_annotation = cur_field.addAnnotation(visible, clname);
   } else if (class_header) {
     cur_annotation = class_env.addAnnotation(visible, clname);
   } else {
     outside(".annotation");
   }
 }
コード例 #2
0
 void addAnnotation(boolean visible, String clname, int paramnum) throws jasError {
   if (cur_method == null) Annotation.ParserError();
   cur_annotation = cur_method.addAnnotation(visible, clname, paramnum);
 }
コード例 #3
0
 void addAnnotation() throws jasError {
   if (cur_method == null) Annotation.ParserError();
   cur_annotation = cur_method.addAnnotation();
 }