Package io.nats.jparse.path
Class KeyPathNode
- java.lang.Object
-
- io.nats.jparse.path.KeyPathNode
-
- All Implemented Interfaces:
Node
,ScalarNode
,PathElement
,java.lang.CharSequence
public class KeyPathNode extends java.lang.Object implements ScalarNode, PathElement
-
-
Constructor Summary
Constructors Constructor Description KeyPathNode(Token token, CharSource charSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSource
charSource()
boolean
isIndex()
boolean
isKey()
Token
rootElementToken()
java.lang.CharSequence
toCharSequence()
java.util.List<Token>
tokens()
java.lang.String
toString()
NodeType
type()
java.lang.Object
value()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.nats.jparse.node.Node
asCollection, asScalar, charAt, equalsContent, length, originalCharSequence, originalString, subSequence, toJsonCharSequence, toJsonString
-
Methods inherited from interface io.nats.jparse.path.PathElement
asIndex, asKey
-
Methods inherited from interface io.nats.jparse.node.ScalarNode
bigDecimalValue, bigIntegerValue, booleanValue, charSequenceValue, doubleValue, equalsString, intValue, isCollection, isScalar, longValue, stringValue
-
-
-
-
Constructor Detail
-
KeyPathNode
public KeyPathNode(Token token, CharSource charSource)
-
-
Method Detail
-
rootElementToken
public Token rootElementToken()
- Specified by:
rootElementToken
in interfaceNode
-
charSource
public CharSource charSource()
- Specified by:
charSource
in interfaceNode
-
value
public java.lang.Object value()
- Specified by:
value
in interfaceScalarNode
-
isIndex
public boolean isIndex()
- Specified by:
isIndex
in interfacePathElement
-
isKey
public boolean isKey()
- Specified by:
isKey
in interfacePathElement
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
toCharSequence
public java.lang.CharSequence toCharSequence()
-
-