|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.compiler.DrlParser
public class DrlParser
This is a low level parser API. This will return textual AST representations of the DRL source, including with DSL expanders if appropriate.
Constructor Summary | |
---|---|
DrlParser()
|
Method Summary | |
---|---|
List |
getErrors()
|
boolean |
hasErrors()
|
PackageDescr |
parse(Reader reader)
|
PackageDescr |
parse(Reader drl,
Reader dsl)
Parse and build a rule package from a DRL source with a domain specific language. |
PackageDescr |
parse(String text)
Parse a rule from text |
PackageDescr |
parse(String source,
Reader dsl)
Parse and build a rule package from a DRL source with a domain specific language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrlParser()
Method Detail |
---|
public PackageDescr parse(String text) throws DroolsParserException
DroolsParserException
public PackageDescr parse(Reader reader) throws DroolsParserException
DroolsParserException
public PackageDescr parse(Reader drl, Reader dsl) throws DroolsParserException, IOException
DroolsParserException
IOException
public PackageDescr parse(String source, Reader dsl) throws DroolsParserException
source
- As Text.dsl
-
DroolsParserException
public boolean hasErrors()
public List getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |