160161162163164165166167
if (resource instanceof InputStreamResource) { encoding = ((InputStreamResource) resource).getEncoding(); } lexer = buildLexer(is, encoding, languageLevel); DRLParser parser = buildParser(lexer, languageLevel); return compile(isEditor, parser); }
7172737475767778
} public PackageDescr parse(final boolean isEditor, final String text) throws DroolsParserException { lexer = buildLexer(text, languageLevel); DRLParser parser = buildParser(lexer, languageLevel); return compile(isEditor, parser); }
7879808182838485
} public PackageDescr parse(final boolean isEditor, final Reader reader) throws DroolsParserException { lexer = buildLexer(reader, languageLevel); DRLParser parser = buildParser( lexer, languageLevel ); return compile(isEditor, parser); }
154155156157158159160161