|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.lang.dsl.DefaultExpander
The default expander uses String templates to provide pseudo natural language, as well as general DSLs. For most people, this should do the job just fine.
Constructor Summary | |
---|---|
DefaultExpander()
Creates a new DefaultExpander |
Method Summary | |
---|---|
void |
addDSLMapping(DSLMapping mapping)
Add the new mapping to this expander. |
String |
expand(Reader drlReader)
Expands (process) the expression Just-In-Time for the parser. |
String |
expand(String drl)
Expands (process) the expression Just-In-Time for the parser. |
List |
getErrors()
Returns the list of errors from the last expansion made |
boolean |
hasErrors()
Returns true in case the last expansion had any errors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExpander()
Method Detail |
---|
public void addDSLMapping(DSLMapping mapping)
addDSLMapping
in interface Expander
mapping
- public String expand(Reader drlReader) throws IOException
Expander
drlReader
- the source code to be pre-processed
IOException
public String expand(String drl)
Expander
drl
- the source code to be expanded
IOException
public List getErrors()
Expander
ExpanderException
public boolean hasErrors()
Expander
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |