@Test public void testFortranSpecialCharacters() throws Exception { JFlexXref xref = new JFlexXref(new FortranXref( new StringReader("<?php?>"))); StringWriter out = new StringWriter(); xref.write(out); DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( new InputSource(new StringReader("<doc>" + out + "</doc>"))); }
@Override public void write(Writer out) throws IOException { this.out = out; if (defs != null) { defs.resetUnused(); } JFlexXrefUtils.writeSymbolTable(out, defs); startNewLine(); while (matcher.yylex() != matcher.getYYEOF()) { } disjointSpan(null); if (scopeOpen) { out.write("</span>"); scopeOpen = false; } while (!matcher.emptyStack()) { matcher.yypop(); } if (didSeePhysicalLOC) { ++loc; didSeePhysicalLOC = false; } }
JFlexXref implements Xrefer, SymbolMatchedListener,
        NonSymbolMatchedListener { @Override public void write(Writer out) throws IOException { this.out = out; if (defs != null) { defs.resetUnused(); } JFlexXrefUtils.writeSymbolTable(out, defs); startNewLine(); while (matcher.yylex() != matcher.getYYEOF()) { } disjointSpan(null); if (scopeOpen) { out.write("</span>"); scopeOpen = false; } while (!matcher.emptyStack()) { matcher.yypop(); } if (didSeePhysicalLOC) { ++loc; didSeePhysicalLOC = false; } } }
JFlexXref implements Xrefer, SymbolMatchedListener,
        NonSymbolMatchedListener { @Override public void write(Writer out) throws IOException { this.out = out; if (defs != null) { defs.resetUnused(); } JFlexXrefUtils.writeSymbolTable(out, defs); startNewLine(); while (matcher.yylex() != matcher.getYYEOF()) { } disjointSpan(null); if (scopeOpen) { out.write("</span>"); scopeOpen = false; } while (!matcher.emptyStack()) { matcher.yypop(); } if (didSeePhysicalLOC) { ++loc; didSeePhysicalLOC = false; } } JFlexXref(ScanningSymbolMatcher matcher); }
JFlexXref implements Xrefer, SymbolMatchedListener,
        NonSymbolMatchedListener { @Override public void write(Writer out) throws IOException { this.out = out; if (defs != null) { defs.resetUnused(); } JFlexXrefUtils.writeSymbolTable(out, defs); startNewLine(); while (matcher.yylex() != matcher.getYYEOF()) { } disjointSpan(null); if (scopeOpen) { out.write("</span>"); scopeOpen = false; } while (!matcher.emptyStack()) { matcher.yypop(); } if (didSeePhysicalLOC) { ++loc; didSeePhysicalLOC = false; } } JFlexXref(ScanningSymbolMatcher matcher); void setReader(Reader input); @Override void reset(); @Override int getLineNumber(); @Override int getLOC(); @Override void setAnnotation(Annotation annotation); @Override void setDefs(Definitions defs); @Override void setProject(Project project); @Override void setScopesEnabled(boolean scopesEnabled); @Override void setFoldingEnabled(boolean foldingEnabled); @Override void symbolMatched(SymbolMatchedEvent evt); @Override void sourceCodeSeen(SourceCodeSeenEvent evt); @Override void nonSymbolMatched(TextMatchedEvent evt); @Override void keywordMatched(TextMatchedEvent evt); @Override void endOfLineMatched(TextMatchedEvent evt); @Override void disjointSpanChanged(DisjointSpanChangedEvent evt); @Override void linkageMatched(LinkageMatchedEvent evt); @Override void pathlikeMatched(PathlikeMatchedEvent evt); @Override void scopeChanged(ScopeChangedEvent evt); @Override Scopes getScopes(); @Override void write(Writer out); void startNewLine(); }
JFlexXref implements Xrefer, SymbolMatchedListener,
        NonSymbolMatchedListener { @Override public void write(Writer out) throws IOException { this.out = out; if (defs != null) { defs.resetUnused(); } JFlexXrefUtils.writeSymbolTable(out, defs); startNewLine(); while (matcher.yylex() != matcher.getYYEOF()) { } disjointSpan(null); if (scopeOpen) { out.write("</span>"); scopeOpen = false; } while (!matcher.emptyStack()) { matcher.yypop(); } if (didSeePhysicalLOC) { ++loc; didSeePhysicalLOC = false; } } JFlexXref(ScanningSymbolMatcher matcher); void setReader(Reader input); @Override void reset(); @Override int getLineNumber(); @Override int getLOC(); @Override void setAnnotation(Annotation annotation); @Override void setDefs(Definitions defs); @Override void setProject(Project project); @Override void setScopesEnabled(boolean scopesEnabled); @Override void setFoldingEnabled(boolean foldingEnabled); @Override void symbolMatched(SymbolMatchedEvent evt); @Override void sourceCodeSeen(SourceCodeSeenEvent evt); @Override void nonSymbolMatched(TextMatchedEvent evt); @Override void keywordMatched(TextMatchedEvent evt); @Override void endOfLineMatched(TextMatchedEvent evt); @Override void disjointSpanChanged(DisjointSpanChangedEvent evt); @Override void linkageMatched(LinkageMatchedEvent evt); @Override void pathlikeMatched(PathlikeMatchedEvent evt); @Override void scopeChanged(ScopeChangedEvent evt); @Override Scopes getScopes(); @Override void write(Writer out); void startNewLine();  }