|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.dsl.DefaultExpander
public class 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<ExpanderException> |
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
expand
in interface Expander
drlReader
- the source code to be pre-processed
IOException
public String expand(String drl)
Expander
expand
in interface Expander
drl
- the source code to be expanded
IOException
public List<ExpanderException> getErrors()
Expander
getErrors
in interface Expander
ExpanderException
public boolean hasErrors()
Expander
hasErrors
in interface Expander
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |