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"); } }
void addAnnotation(boolean visible, String clname, int paramnum) throws jasError { if (cur_method == null) Annotation.ParserError(); cur_annotation = cur_method.addAnnotation(visible, clname, paramnum); }
void addAnnotation() throws jasError { if (cur_method == null) Annotation.ParserError(); cur_annotation = cur_method.addAnnotation(); }