Class PositionAndLength

java.lang.Object
org.pentaho.libformula.editor.util.PositionAndLength

public class PositionAndLength extends Object
  • 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