Class TextNode
java.lang.Object
cool.scx.object.node.TextNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription转换为 BigDecimal转换为 BigInteger (不保证精度, 可能会发生截断)boolean转换为 booleandoubleasDouble()转换为 double (不保证精度, 可能会发生截断)floatasFloat()转换为 float (不保证精度, 可能会发生截断)intasInt()转换为 int (不保证精度, 可能会发生截断)longasLong()转换为 long (不保证精度, 可能会发生截断)asText()转换为 StringdeepCopy()值类型不可变 返回 this 即可booleaninthashCode()toString()value()
-
Constructor Details
-
TextNode
-
-
Method Details
-
value
-
asInt
Description copied from interface:ValueNode转换为 int (不保证精度, 可能会发生截断)- Specified by:
asIntin interfaceValueNode- Returns:
- int
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asLong
Description copied from interface:ValueNode转换为 long (不保证精度, 可能会发生截断)- Specified by:
asLongin interfaceValueNode- Returns:
- long
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asFloat
Description copied from interface:ValueNode转换为 float (不保证精度, 可能会发生截断)- Specified by:
asFloatin interfaceValueNode- Returns:
- float
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asDouble
Description copied from interface:ValueNode转换为 double (不保证精度, 可能会发生截断)- Specified by:
asDoublein interfaceValueNode- Returns:
- double
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asBigInteger
Description copied from interface:ValueNode转换为 BigInteger (不保证精度, 可能会发生截断)- Specified by:
asBigIntegerin interfaceValueNode- Returns:
- BigInteger
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asBigDecimal
Description copied from interface:ValueNode转换为 BigDecimal- Specified by:
asBigDecimalin interfaceValueNode- Returns:
- BigDecimal
- Throws:
NumberFormatException- 数字格式不正确 (一般出现在 TextNode 中)
-
asText
-
asBoolean
-
deepCopy
-
equals
-
hashCode
-
toString
-