Java源码示例:org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult
示例1
@Override
public ParseResult parse(RSyntaxDocument doc, String style) {
final DefaultParseResult result = new DefaultParseResult(this);
final int lineCount = doc.getDefaultRootElement().getElementCount();
final long t0 = System.currentTimeMillis();
final long time = System.currentTimeMillis() - t0;
result.setParsedLines(0, lineCount - 1);
result.setParseTime(time);
if (msg != null) {
final ParserNotice pn = new DefaultParserNotice(this, msg, line, offset, length);
result.addNotice(pn);
}
return result;
}
示例2
@Override
public synchronized DefaultParseResult parse(RSyntaxDocument doc1, String style) {
return result;
}
示例3
public AqlStatic(Program<Exp<?>> p) {
this.result = new DefaultParseResult(this);
this.env = new AqlEnv(p);
}
示例4
public SpellChecker(Function<Unit, Collection<String>> local, JCheckBox box) {
result = new DefaultParseResult(this);
this.local = local;
this.box = box;
}
示例5
FlatThemeParser() {
result = new DefaultParseResult( this );
}