Package org.drools.drl.parser.lang.dsl
Class DefaultExpander
- java.lang.Object
-
- org.drools.drl.parser.lang.dsl.DefaultExpander
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description DefaultExpander()Creates a new DefaultExpander
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDSLMapping(DSLMapping mapping)Add the new mapping to this expander.java.lang.Stringexpand(java.io.Reader drlReader)Expands (process) the expression Just-In-Time for the parser.java.lang.Stringexpand(java.lang.String drl)Expands (process) the expression Just-In-Time for the parser.java.util.List<ExpanderException>getErrors()Returns the list of errors from the last expansion madebooleanhasErrors()Returns true in case the last expansion had any errors
-
-
-
Method Detail
-
addDSLMapping
public void addDSLMapping(DSLMapping mapping)
Add the new mapping to this expander.- Specified by:
addDSLMappingin interfaceExpander- Parameters:
mapping-
-
expand
public java.lang.String expand(java.io.Reader drlReader) throws java.io.IOExceptionDescription copied from interface:ExpanderExpands (process) the expression Just-In-Time for the parser. If the source is not meant to be expanded, or if no appropriate match was found for expansion, it will echo back the same expression.
-
expand
public java.lang.String expand(java.lang.String drl)
Description copied from interface:ExpanderExpands (process) the expression Just-In-Time for the parser. If the source is not meant to be expanded, or if no appropriate match was found for expansion, it will echo back the same expression.
-
getErrors
public java.util.List<ExpanderException> getErrors()
Description copied from interface:ExpanderReturns the list of errors from the last expansion made
-
-