Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefaultExpander()
Creates a new DefaultExpander
|
Modifier and Type | Method and Description |
---|---|
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
|
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-processedIOException
public String expand(String drl)
Expander
expand
in interface Expander
drl
- the source code to be expandedIOException
public List<ExpanderException> getErrors()
Expander
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.