org.cubeengine.converter.node
Class ValueNode<V>
java.lang.Object
org.cubeengine.converter.node.Commentable
org.cubeengine.converter.node.Node<V>
org.cubeengine.converter.node.ValueNode<V>
- Direct Known Subclasses:
- BooleanNode, ByteNode, CharNode, DoubleNode, FloatNode, IntNode, LongNode, ShortNode, StringNode
public abstract class ValueNode<V>
- extends Node<V>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueNode
public ValueNode(V value)
getValue
public V getValue()
- Description copied from class:
Node
- Gets the Value contained in this Node
- Specified by:
getValue in class Node<V>
- Returns:
- the NodeValue
asString
public String asString()
- Specified by:
asString in class Node<V>
asText
public String asText()
- Description copied from class:
Node
- Tries to convert the value of the Node into a string
- Specified by:
asText in class Node<V>
- Returns:
- the converted Node value
Copyright © 2013–2017. All rights reserved.