Class PositionAndLength
java.lang.Object
org.pentaho.libformula.editor.util.PositionAndLength
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final PositionAndLength
calculatePositionAndLength
(String expression, org.pentaho.reporting.libraries.formula.lvalues.ParsePosition position) Determine the absolute position in the expressionint
int
void
setLength
(int length) void
setPosition
(int position)
-
Constructor Details
-
PositionAndLength
public PositionAndLength(int position, int length) - Parameters:
position
-length
-
-
-
Method Details
-
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
-