org.drools.lang.dsl
Class LineBasedExpander

java.lang.Object
  extended byorg.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
 

Constructor Detail

LineBasedExpander

public LineBasedExpander(java.lang.String rawSource,
                         Expander exp)
Pass in the unexpanded rule(s), and and the expander to apply

Method Detail

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).