Class PositionAndLength


  • public class PositionAndLength
    extends Object
    • Constructor Detail

      • PositionAndLength

        public PositionAndLength​(int position,
                                 int length)
        Parameters:
        position -
        length -
    • 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