|
|
|
@ -16,6 +16,7 @@ package com.jayway.jsonpath.internal.token;
|
|
|
|
|
|
|
|
|
|
import com.jayway.jsonpath.Configuration; |
|
|
|
|
import com.jayway.jsonpath.Predicate; |
|
|
|
|
import com.jayway.jsonpath.TypeRef; |
|
|
|
|
import com.jayway.jsonpath.internal.Path; |
|
|
|
|
import com.jayway.jsonpath.spi.mapper.MappingException; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
@ -69,6 +70,11 @@ public class PredicateContextImpl implements Predicate.PredicateContext {
|
|
|
|
|
return configuration().mappingProvider().map(contextDocument, clazz, configuration); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public <T> T item(TypeRef<T> typeRef) throws MappingException { |
|
|
|
|
return configuration().mappingProvider().map(contextDocument, typeRef, configuration); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Object root() { |
|
|
|
|
return rootDocument; |
|
|
|
|