From e739514e6497220e5cef527182df065ff5867fb0 Mon Sep 17 00:00:00 2001 From: mattg Date: Mon, 27 Mar 2017 20:59:14 -0400 Subject: [PATCH] update of javadoc --- .../internal/function/latebinding/ILateBindingValue.java | 8 ++++++++ .../function/latebinding/JsonLateBindingValue.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/ILateBindingValue.java b/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/ILateBindingValue.java index 0d0ed403..e293affa 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/ILateBindingValue.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/ILateBindingValue.java @@ -6,5 +6,13 @@ package com.jayway.jsonpath.internal.function.latebinding; * Created by mattg on 3/27/17. */ public interface ILateBindingValue { + /** + * Obtain the value of the parameter at runtime using the parameter state and invocation of other late binding values + * rather than maintaining cached state which ends up in a global store and won't change as a result of external + * reference changes. + * + * @return + * The value of evaluating the context at runtime. + */ Object get(); } diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/JsonLateBindingValue.java b/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/JsonLateBindingValue.java index 860c1852..b608aa5d 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/JsonLateBindingValue.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/function/latebinding/JsonLateBindingValue.java @@ -18,7 +18,7 @@ public class JsonLateBindingValue implements ILateBindingValue { /** * Evaluate the JSON document at the point of need using the JSON parameter and associated document model which may * itself originate from yet another function thus recursively invoking late binding methods. - * + * * @return */ @Override