Class TsonElementDecorator
java.lang.Object
net.thevpc.tson.impl.elements.AbstractTsonElementBase
net.thevpc.tson.impl.elements.TsonElementDecorator
- All Implemented Interfaces:
Comparable<TsonElement>, TsonElement, TsonElementBase
- Direct Known Subclasses:
TsonElementDecorator.AsArray, TsonElementDecorator.AsCustom, TsonElementDecorator.AsMatrix, TsonElementDecorator.AsObject, TsonElementDecorator.AsOp, TsonElementDecorator.AsPair, TsonElementDecorator.AsPrimitive, TsonElementDecorator.AsUplet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classTsonElementDecorator.AsPrimitive<T extends TsonElement>static classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbuilder()bytecharcomments()intdoublebooleanfloatgetBase()inthashCode()intintValue()booleanisNull()longstatic TsonElementof(TsonElement base, TsonComments comments, Collection<TsonAnnotation> annotationsList) static TsonElementof(TsonElement base, TsonComments comments, TsonAnnotation[] annotations) protected voidshortsimplify()toAlias()toArray()toBigInt()toByte()toChar()toCustom()toDouble()toFloat()toInt()toLong()toMatrix()toName()toNumber()toObject()toOp()toPair()toRegex()toShort()toStr()toString()toString(boolean compact) toString(TsonFormat format) toUplet()type()booleanvisit(TsonDocumentVisitor visitor) Methods inherited from class AbstractTsonElementBase
isAnyString, isArray, isBoolean, isComplexNumber, isFloatingNumber, isListContainer, isName, isNamedArray, isNamedObject, isNamedUplet, isNumber, isObject, isOrdinalNumber, isPair, isPrimitive, isSimple, isSimplePair, isString, isTemporal, isUpletMethods inherited from interface TsonElement
build, visit
-
Method Details
-
of
-
of
public static TsonElement of(TsonElement base, TsonComments comments, Collection<TsonAnnotation> annotationsList) -
processCommentsAndAnnotations
-
getBase
-
simplify
-
toMatrix
-
type
-
comments
-
annotations
-
annotationsCount
public int annotationsCount() -
toStr
-
toLong
-
toCustom
-
toNumber
-
toBinaryStream
-
toCharStream
-
toInt
-
toShort
-
toByte
-
toChar
-
toBoolean
-
toName
-
toAlias
-
temporalValue
-
toArray
- Specified by:
toArrayin interfaceTsonElement- Overrides:
toArrayin classAbstractTsonElementBase
-
toListContainer
- Specified by:
toListContainerin interfaceTsonElement- Overrides:
toListContainerin classAbstractTsonElementBase
-
toObject
- Specified by:
toObjectin interfaceTsonElement- Overrides:
toObjectin classAbstractTsonElementBase
-
toUplet
- Specified by:
toUpletin interfaceTsonElement- Overrides:
toUpletin classAbstractTsonElementBase
-
byteValue
public byte byteValue() -
charValue
public char charValue() -
booleanValue
public boolean booleanValue() -
stringValue
-
intValue
public int intValue() -
longValue
public long longValue() -
shortValue
public short shortValue() -
toLocalDate
-
toInstant
-
toLocalDateTime
-
toLocalTime
-
toRegex
-
localDateValue
-
instantValue
-
localDateTimeValue
-
localTimeValue
-
regexValue
-
toFloat
-
toDouble
-
toPair
-
toOp
-
floatValue
public float floatValue() -
doubleValue
public double doubleValue() -
booleanObject
-
charObject
-
byteObject
-
intObject
-
longObject
-
shortObject
-
floatObject
-
doubleObject
-
toBigInt
-
toBigDecimal
-
toBigComplex
-
toFloatComplex
-
toDoubleComplex
-
bigIntegerValue
-
bigDecimalValue
-
equals
-
hashCode
-
builder
-
visit
-
toString
- Specified by:
toStringin interfaceTsonElementBase- Overrides:
toStringin classAbstractTsonElementBase
-
toString
- Specified by:
toStringin interfaceTsonElement- Specified by:
toStringin interfaceTsonElementBase- Overrides:
toStringin classAbstractTsonElementBase
-
toString
- Specified by:
toStringin interfaceTsonElementBase- Overrides:
toStringin classAbstractTsonElementBase
-
numberValue
-
compareTo
-
isNull
public boolean isNull()
-