| Constructor and Description |
|---|
JavaScriptParser(String function) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFieldNames()
Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise.
|
com.google.common.base.Function<Object,Object> |
getFn() |
Map<String,Object> |
parse(String input)
Parse a String into a Map.
|
void |
setFieldNames(Iterable<String> fieldNames)
Set the fieldNames that you expect to see in parsed Maps.
|
public JavaScriptParser(String function)
public Map<String,Object> parse(String input)
Parserpublic void setFieldNames(Iterable<String> fieldNames)
ParsersetFieldNames in interface Parser<String,Object>public List<String> getFieldNames()
ParsergetFieldNames in interface Parser<String,Object>Copyright © 2011–2017. All rights reserved.