|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(java.io.Reader reader)
Use {0} style notation to place "holes" where data will be parsed from the natural text input. |
|
| Method Summary | |
java.lang.String |
expand(java.lang.String scope,
java.lang.String pattern)
The parser should call this on an expression/line that potentially needs expanding BEFORE it parses that line (as the line may change radically as the result of expansion). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultExpander(java.io.Reader reader)
for details.| Method Detail |
public java.lang.String expand(java.lang.String scope,
java.lang.String pattern)
Expander
expand in interface Expanderscope - The current scope of the expansion (eg "when" for LHS)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||