public void visitSource(String source, String debug) { cv1.visitSource(source, debug); cv2.visitSource(source, debug); }
public void visitSource(String source, String debug) { target.visitSource(source, debug); }
/** * Visits the source of the class. * * @param source the name of the source file from which the class was compiled. May be {@literal * null}. * @param debug additional debug information to compute the correspondence between source and * compiled elements of the class. May be {@literal null}. */ public void visitSource(final String source, final String debug) { if (cv != null) { cv.visitSource(source, debug); } }
public void visitSource(String source, String debug) { cv1.visitSource(source, debug); cv2.visitSource(source, debug); }
public void visitSource(String source, String debug) { target.visitSource(source, debug); }
@Override public void visitSource(final String file, final String debug) { p.visitSource(file, debug); super.visitSource(file, debug); }
@Override public void visitSource(String source, String debug) { super.visitSource(source, debug); this.source = source; this.debug = debug; } }
public void begin_class(int version, final int access, String className, final Type superType, final Type[] interfaces, String source) { final Type classType = Type.getType("L" + className.replace('.', '/') + ";"); classInfo = new ClassInfo() { public Type getType() { return classType; } public Type getSuperType() { return (superType != null) ? superType : Constants.TYPE_OBJECT; } public Type[] getInterfaces() { return interfaces; } public int getModifiers() { return access; } }; cv.visit(version, access, classInfo.getType().getInternalName(), null, classInfo.getSuperType().getInternalName(), TypeUtils.toInternalNames(interfaces)); if (source != null) cv.visitSource(source, null); init(); }
public void begin_class(int version, final int access, String className, final Type superType, final Type[] interfaces, String source) { final Type classType = Type.getType("L" + className.replace('.', '/') + ";"); classInfo = new ClassInfo() { public Type getType() { return classType; } public Type getSuperType() { return (superType != null) ? superType : Constants.TYPE_OBJECT; } public Type[] getInterfaces() { return interfaces; } public int getModifiers() { return access; } }; cv.visit(version, access, classInfo.getType().getInternalName(), null, classInfo.getSuperType().getInternalName(), TypeUtils.toInternalNames(interfaces)); if (source != null) cv.visitSource(source, null); init(); }
cv.visitSource(cf.sourceFile, cf.sourceDebug);
@Override public void visitSource(String source, String debug) { if (source != null) { state.source = source; } super.visitSource(source, debug); } }
classVisitor.visitSource(sourceFile, sourceDebug);
classVisitor.visitSource(sourceFile, sourceDebugExtension);
/** * Emits the bytecode for the complete class */ protected void generateByteCode() { generateClassHeader(); // Retrieve information about the source of the class if (sc.hasTag("SourceFileTag") && !Options.v().no_output_source_file_attribute()) { String srcName = ((SourceFileTag) sc.getTag("SourceFileTag")).getSourceFile(); cv.visitSource(srcName, null); // TODO Correct value for the debug // argument } // Retrieve information about outer class if present if (sc.hasOuterClass() || sc.hasTag("EnclosingMethodTag") || sc.hasTag("OuterClassTag")) { generateOuterClassReference(); } // Retrieve information about annotations generateAnnotations(cv, sc); // Retrieve information about attributes generateAttributes(); // Retrieve information about inner classes generateInnerClassReferences(); // Generate fields generateFields(); // Generate methods generateMethods(); cv.visitEnd(); }
@Override public void visitSource(String source, String debug) { super.visitSource(null, debug); }
public void visitSource(String source, String debug) { LOGGER.debug(Constants.LOG_ENTRY, "visitSource", new Object[] { source, debug }); // set the source to null since the class is generated on the fly and // not compiled cv.visitSource(null, null); LOGGER.debug(Constants.LOG_EXIT, "visitSource"); }
@Override public void visitSource(final String file, final String debug) { p.visitSource(file, debug); super.visitSource(file, debug); }
@Override public void visitSource(final String source, final String debug) { fsmCursor.transition("visitSource"); super.visitSource(source, debug); }
@Override public void visitSource(final String file, final String debug) { checkState(); if (visitSourceCalled) { throw new IllegalStateException("visitSource can be called only once."); } visitSourceCalled = true; super.visitSource(file, debug); }
public void startClass(ClassVisitor cv) { if (RuntimeContext.enableLineNumbers) { cv.visitSource(getCodeBlock().getClassName() + ".java", null); } }