private String fileNameFor(final String packageName, final String sourceName) { String result; SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); try { result = sourceFinder.findSourceFile(packageName, sourceName).getFullFileName(); } catch (IOException e) { result = packageName.replace('.', File.separatorChar) + File.separatorChar + sourceName; } return result; }
SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); String pkgName = line.getPackageName(); try {
try { SourceLineAnnotation srcLine = SourceLineAnnotation.fromVisitedInstructionRange(this, lastPC, getPC()); SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); SourceFile sourceFile = sourceFinder.findSourceFile(srcLine.getPackageName(), srcLine.getSourceFile());
SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); try { SourceFile sourceFile = sourceFinder.findSourceFile(srcLine.getPackageName(), srcLine.getSourceFile());
private String fileNameFor(final String packageName, final String sourceName) { String result; SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); try { result = sourceFinder.findSourceFile(packageName, sourceName).getFullFileName(); } catch (IOException e) { result = packageName.replace('.', File.separatorChar) + File.separatorChar + sourceName; } return result; }
srcLineAnnotation = SourceLineAnnotation.forEntireMethod(getClassContext().getJavaClass(), obj); if (srcLineAnnotation != null) { SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); SourceFile sourceFile = sourceFinder.findSourceFile(srcLineAnnotation.getPackageName(), srcLineAnnotation.getSourceFile()); try (BufferedReader sourceReader = new BufferedReader(new InputStreamReader(sourceFile.getInputStream(), StandardCharsets.UTF_8))) {
srcLineAnnotation = SourceLineAnnotation.forEntireMethod(getClassContext().getJavaClass(), obj); if (srcLineAnnotation != null) { SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); SourceFile sourceFile = sourceFinder.findSourceFile(srcLineAnnotation.getPackageName(), srcLineAnnotation.getSourceFile()); try (BufferedReader sourceReader = new BufferedReader(new InputStreamReader(sourceFile.getInputStream(), StandardCharsets.UTF_8))) {
SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); String pkgName = line.getPackageName(); try {
try { SourceLineAnnotation srcLine = SourceLineAnnotation.fromVisitedInstructionRange(this, lastPC, getPC()); SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); SourceFile sourceFile = sourceFinder.findSourceFile(srcLine.getPackageName(), srcLine.getSourceFile());
SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); try { SourceFile sourceFile = sourceFinder.findSourceFile(srcLine.getPackageName(), srcLine.getSourceFile());