Class PositionAndLength
java.lang.Object
org.pentaho.libformula.editor.util.PositionAndLength
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final PositionAndLengthcalculatePositionAndLength(String expression, org.pentaho.reporting.libraries.formula.lvalues.ParsePosition position) Determine the absolute position in the expressionintintvoidsetLength(int length) voidsetPosition(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
-