| 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 Expandermapping - public String expand(Reader drlReader) throws IOException
Expanderexpand in interface ExpanderdrlReader - the source code to be pre-processedIOExceptionpublic String expand(String drl)
Expanderexpand in interface Expanderdrl - the source code to be expandedIOExceptionpublic List<ExpanderException> getErrors()
ExpanderCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.