Class PositionAndLength
- java.lang.Object
-
- org.pentaho.libformula.editor.util.PositionAndLength
-
public class PositionAndLength extends Object
-
-
Constructor Summary
Constructors Constructor Description PositionAndLength(int position, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PositionAndLength
calculatePositionAndLength(String expression, org.pentaho.reporting.libraries.formula.lvalues.ParsePosition position)
Determine the absolute position in the expressionint
getLength()
int
getPosition()
void
setLength(int length)
void
setPosition(int position)
-
-
-
Method Detail
-
calculatePositionAndLength
public static final PositionAndLength calculatePositionAndLength(String expression, org.pentaho.reporting.libraries.formula.lvalues.ParsePosition position)
Determine the absolute position in the expression- Parameters:
expression
-position
-- Returns:
- Point : x=start, y=end
-
getPosition
public int getPosition()
- Returns:
- the position
-
setPosition
public void setPosition(int position)
- Parameters:
position
- the position to set
-
getLength
public int getLength()
- Returns:
- the length
-
setLength
public void setLength(int length)
- Parameters:
length
- the length to set
-
-