Package org.openl.rules.range
Class RangeParser
- java.lang.Object
-
- org.openl.rules.range.RangeParser
-
public class RangeParser extends Object
A performance and memory optimized parser for the range.Support the following patterns: [ X; Y ] <=X > Y > X X + X and more X or less less than X more than X X ... Y X- Author:
- Yury Molchan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLeft()StringgetRight()Range.TypegetType()static RangeParserparse(String text)StringtoString()
-
-
-
Method Detail
-
getType
public Range.Type getType()
-
getLeft
public String getLeft()
-
getRight
public String getRight()
-
parse
public static RangeParser parse(String text) throws ParseException
- Throws:
ParseException
-
-