Package org.symphonyoss.s2.canon.parser
Class ParserContext
- java.lang.Object
-
- org.symphonyoss.s2.canon.parser.BaseParserContext
-
- org.symphonyoss.s2.canon.parser.ParserContext
-
- All Implemented Interfaces:
Iterable<ParserContext>
public class ParserContext extends BaseParserContext implements Iterable<ParserContext>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classParserContext.ArrayIteratorclassParserContext.FieldIterator
-
Constructor Summary
Constructors Constructor Description ParserContext(ParserContext parent, String name, com.fasterxml.jackson.databind.JsonNode jsonNode, boolean anonymousInner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasBoolean()StringasText()ParserContextget(String name)BooleangetBooleanNode(String fieldName)BooleangetBooleanNode(String fieldName, Boolean defaultValue)DoublegetDoubleNode(String fieldName)doublegetDoubleNode(String fieldName, double defaultValue)com.fasterxml.jackson.databind.JsonNodegetJsonNode()LonggetLongNode(String fieldName)longgetLongNode(String fieldName, long defaultValue)StringgetName()ParserContextgetParent()StringgetText(String name)StringgetText(String name, String defaultValue)StringgetTextNode(String fieldName)booleanisAnonymousInner()booleanisArray()booleanisBoolean()booleanisEmpty()booleanisObject()booleanisTextual()Iterator<ParserContext>iterator()intsize()StringtoString()-
Methods inherited from class org.symphonyoss.s2.canon.parser.BaseParserContext
getAllProblems, getErrors, getInfos, getPath, getRootParserContext, getWarnings, raise, raise, raise
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ParserContext
public ParserContext(ParserContext parent, String name, com.fasterxml.jackson.databind.JsonNode jsonNode, boolean anonymousInner)
-
-
Method Detail
-
getParent
public ParserContext getParent()
-
get
public ParserContext get(String name)
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode()
-
getName
public String getName()
-
isAnonymousInner
public boolean isAnonymousInner()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
isArray
public final boolean isArray()
-
isObject
public final boolean isObject()
-
isTextual
public final boolean isTextual()
-
isBoolean
public final boolean isBoolean()
-
asBoolean
public boolean asBoolean()
-
asText
public String asText()
-
iterator
public Iterator<ParserContext> iterator()
- Specified by:
iteratorin interfaceIterable<ParserContext>
-
getLongNode
public long getLongNode(String fieldName, long defaultValue)
-
getDoubleNode
public double getDoubleNode(String fieldName, double defaultValue)
-
-