|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.lang.dsl.DefaultExpanderResolver
public class DefaultExpanderResolver
The default expander resolver will provide instances of the DefaultExpander. The DefaultExpander uses templates to provide DSL and pseudo natural language support.
Constructor Summary | |
---|---|
DefaultExpanderResolver()
Create an empty resolver, which you will then call addExpander multiple times, to map a specific expander with a name that will be found in the drl after the expander keyword. |
|
DefaultExpanderResolver(Reader reader)
This will load up a DSL from the reader specified. |
Method Summary | |
---|---|
void |
addExpander(String name,
Expander expander)
Add an expander with the given name, which will be used by looking for the "expander" keyword in the DRL. |
Expander |
get(String name,
String config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExpanderResolver()
public DefaultExpanderResolver(Reader reader) throws IOException
IOException
Method Detail |
---|
public void addExpander(String name, Expander expander)
public Expander get(String name, String config)
get
in interface ExpanderResolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |