public SignatureVisitor visitInterfaceBound() { separator = seenInterfaceBound ? ", " : " extends "; seenInterfaceBound = true; startType(); return this; }
private void declareFrameTypes(final int n, final Object[] o) { for (int i = 0; i < n; ++i) { if (o[i] instanceof Label) { declareLabel((Label) o[i]); } } }
/** * Prints the text constructed by this visitor. * * @param pw the print writer to be used. */ public void print(final PrintWriter pw) { printList(pw, text); }
public AnnotationVisitor visitAnnotation( final String name, final String desc) { checkEnd(); checkName(name); CheckMethodAdapter.checkDesc(desc, false); return new CheckAnnotationAdapter(av == null ? null : av.visitAnnotation(name, desc)); }
public AnnotationVisitor visitAnnotation( final String desc, final boolean visible) { checkEndMethod(); checkDesc(desc, false); return new CheckAnnotationAdapter(mv.visitAnnotation(desc, visible)); }
public AnnotationVisitor visitAnnotation( final String desc, final boolean visible) { checkEnd(); CheckMethodAdapter.checkDesc(desc, false); return new CheckAnnotationAdapter(fv.visitAnnotation(desc, visible)); }
public AnnotationVisitor visitAnnotation( final String desc, final boolean visible) { checkState(); CheckMethodAdapter.checkDesc(desc, false); return new CheckAnnotationAdapter(cv.visitAnnotation(desc, visible)); }
public SignatureVisitor visitSuperclass() { endFormals(); separator = " extends "; startType(); return this; }
public AnnotationVisitor visitAnnotationDefault() { checkEndMethod(); return new CheckAnnotationAdapter(mv.visitAnnotationDefault(), false); }
/** * Checks that the given string is a valid Java identifier. * * @param name the string to be checked. * @param msg a message to be used in case of error. */ static void checkIdentifier(final String name, final String msg) { checkIdentifier(name, 0, -1, msg); }
/** * Appends a string representation of the given constant to the given * buffer. * * @param cst an {@link Integer}, {@link Float}, {@link Long}, * {@link Double} or {@link String} object. May be <tt>null</tt>. */ void appendConstant(final Object cst) { appendConstant(buf, cst); }
protected TraceMethodVisitor createTraceMethodVisitor() { return new TraceMethodVisitor(); }
protected TraceFieldVisitor createTraceFieldVisitor() { return new TraceFieldVisitor(); }
protected TraceAnnotationVisitor createTraceAnnotationVisitor() { return new TraceAnnotationVisitor(); }
private void visitString(final String value) { appendString(buf, value); }
protected ASMifierMethodVisitor createASMifierMethodVisitor() { return new ASMifierMethodVisitor(); }
public AnnotationVisitor visitParameterAnnotation( final int parameter, final String desc, final boolean visible) { checkEndMethod(); checkDesc(desc, false); return new CheckAnnotationAdapter(mv.visitParameterAnnotation(parameter, desc, visible)); }
public SignatureVisitor visitArrayType() { startType(); arrayStack |= 1; return this; }
public SignatureVisitor visitInterface() { separator = seenInterface ? ", " : isInterface ? " extends " : " implements "; seenInterface = true; startType(); return this; }
public SignatureVisitor visitClassBound() { separator = " extends "; startType(); return this; }