java.lang.Object
org.codehaus.groovy.runtime.powerassert.Value

public class Value extends Object
A value recorded during evaluation of an assertion, along with the column it is associated with in the assertion's normalized source text.
  • Constructor Details

    • Value

      public Value(Object value, int column)
      Creates a recorded assertion value.
      Parameters:
      value - the recorded value
      column - the 1-based column in the normalized assertion text, or a non-positive value if the source position is unknown
  • Method Details

    • getValue

      public Object getValue()
      Returns the recorded value.
      Returns:
      the recorded value
    • getColumn

      public int getColumn()
      Returns the source column associated with the recorded value.
      Returns:
      the 1-based column in the normalized assertion text, or a non-positive value if the source position is unknown