当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
LineBasedExpander - JBoss RULES 3.0.6 API 英文版文档
org.drools.lang.dsl
Class LineBasedExpander
java.lang.Object
org.drools.lang.dsl.LineBasedExpander
public class LineBasedExpander
- extends java.lang.Object
This is a simple line based expander front end for the DRL parser.
Kind of a micro parser in itself.
This tries to keep the whitespace and lines intact, but it is not
guaranteed to preserve the exact spacing or line numbers.
TODO: To replace the in-parser implementation in 3.1 +
Constructor Summary |
LineBasedExpander(java.lang.String rawSource,
Expander exp)
Pass in the unexpanded rule(s), and and the expander to apply |
Method Summary |
java.lang.String |
expand()
This will apply the expander. |
java.lang.String |
getExpanded()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineBasedExpander
public LineBasedExpander(java.lang.String rawSource,
Expander exp)
- Pass in the unexpanded rule(s), and and the expander to apply
expand
public java.lang.String expand()
- This will apply the expander. And return the result.
getExpanded
public java.lang.String getExpanded()
- Returns:
- The expanded rule(s).