Class EvaluationContextImpl.FoundResultImpl
- java.lang.Object
-
- com.jayway.jsonpath.internal.path.EvaluationContextImpl.FoundResultImpl
-
- All Implemented Interfaces:
EvaluationListener.FoundResult
- Enclosing class:
- EvaluationContextImpl
private class EvaluationContextImpl.FoundResultImpl extends java.lang.Object implements EvaluationListener.FoundResult
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FoundResultImpl(int index, java.lang.String path, java.lang.Object result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
index()
the index of this result.java.lang.String
path()
The path of this resultjava.lang.Object
result()
The result object
-
-
-
Method Detail
-
index
public int index()
Description copied from interface:EvaluationListener.FoundResult
the index of this result. First result i 0- Specified by:
index
in interfaceEvaluationListener.FoundResult
- Returns:
- index
-
path
public java.lang.String path()
Description copied from interface:EvaluationListener.FoundResult
The path of this result- Specified by:
path
in interfaceEvaluationListener.FoundResult
- Returns:
- path
-
result
public java.lang.Object result()
Description copied from interface:EvaluationListener.FoundResult
The result object- Specified by:
result
in interfaceEvaluationListener.FoundResult
- Returns:
- the result object
-
-