|
Drools :: Compiler 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.compiler.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.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
| 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 |
| Field Detail |
|---|
protected static final transient org.slf4j.Logger logger
| Constructor Detail |
|---|
public DefaultExpander()
| Method Detail |
|---|
public void addDSLMapping(DSLMapping mapping)
addDSLMapping in interface Expandermapping -
public String expand(Reader drlReader)
throws IOException
Expander
expand in interface ExpanderdrlReader - the source code to be pre-processed
IOExceptionpublic String expand(String drl)
Expander
expand in interface Expanderdrl - the source code to be expanded
IOExceptionpublic List<ExpanderException> getErrors()
Expander
getErrors in interface ExpanderExpanderExceptionpublic boolean hasErrors()
Expander
hasErrors in interface Expander
|
Drools :: Compiler 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||