Package org.spockframework.runtime
Class ValueRecorder
- java.lang.Object
-
- org.spockframework.runtime.ValueRecorder
-
public class ValueRecorder extends java.lang.Object
Records the values in a condition.- Author:
- Peter Niederwieser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REALIZE_NAS
static java.lang.String
RECORD
static java.lang.String
RESET
-
Constructor Summary
Constructors Constructor Description ValueRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>
getValues()
java.lang.Object
realizeNas(int index, java.lang.Object value)
Materializes N/A values without recording a new value.java.lang.Object
record(int index, java.lang.Object value)
Records and returns the specified value.ValueRecorder
reset()
-
-
-
Field Detail
-
RESET
public static final java.lang.String RESET
- See Also:
- Constant Field Values
-
RECORD
public static final java.lang.String RECORD
- See Also:
- Constant Field Values
-
REALIZE_NAS
public static final java.lang.String REALIZE_NAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
reset
public ValueRecorder reset()
-
record
public java.lang.Object record(int index, java.lang.Object value)
Records and returns the specified value. Hence an expression can be replaced with record(expression) without impacting evaluation of the expression.
-
realizeNas
public java.lang.Object realizeNas(int index, java.lang.Object value)
Materializes N/A values without recording a new value.
-
getValues
public java.util.List<java.lang.Object> getValues()
-
-