Browse Source
still need to support literal function arguments. At the present time the document passed for parameter function parsing is the root document. Additionally, the braces still exist within the tokenizer - need to handle error conditions and see the consiquence of removing those from the implementationpull/167/head
Matthew J Greenwood
9 years ago
10 changed files with 123 additions and 23 deletions
@ -0,0 +1,36 @@
|
||||
package com.jayway.jsonpath.internal.function; |
||||
|
||||
import com.jayway.jsonpath.internal.Path; |
||||
|
||||
/** |
||||
* Created by matt@mjgreenwood.net on 12/10/15. |
||||
*/ |
||||
public class Parameter { |
||||
private final Path path; |
||||
private Object cachedValue; |
||||
private Boolean evaluated = false; |
||||
|
||||
public Parameter(Path path) { |
||||
this.path = path; |
||||
} |
||||
|
||||
public Object getCachedValue() { |
||||
return cachedValue; |
||||
} |
||||
|
||||
public void setCachedValue(Object cachedValue) { |
||||
this.cachedValue = cachedValue; |
||||
} |
||||
|
||||
public Path getPath() { |
||||
return path; |
||||
} |
||||
|
||||
public void setEvaluated(Boolean evaluated) { |
||||
this.evaluated = evaluated; |
||||
} |
||||
|
||||
public boolean hasEvaluated() { |
||||
return evaluated; |
||||
} |
||||
} |
Loading…
Reference in new issue