Class TsonObjectImpl
java.lang.Object
net.thevpc.tson.impl.elements.AbstractTsonElementBase
net.thevpc.tson.impl.elements.AbstractTsonElement
net.thevpc.tson.impl.elements.AbstractNonPrimitiveTsonElement
net.thevpc.tson.impl.elements.TsonObjectImpl
- All Implemented Interfaces:
Comparable<TsonElement>, Iterable<TsonElement>, TsonElement, TsonElementBase, TsonListContainer, TsonNamedElement, TsonObject, TsonParametrizedElement
-
Constructor Summary
ConstructorsConstructorDescriptionTsonObjectImpl(String name, TsonElementList params, UnmodifiableArrayList<TsonElement> elements) -
Method Summary
Modifier and TypeMethodDescriptionbody()builder()protected intbooleanget(TsonElement element) inthashCode()booleanisNamed()booleaniterator()name()params()intintsize()toObject()booleanvisit(TsonDocumentVisitor visitor) voidvisit(TsonParserVisitor visitor) Methods inherited from class AbstractNonPrimitiveTsonElement
booleanObject, booleanValue, byteObject, byteValue, charObject, charValue, doubleObject, doubleValue, floatObject, floatValue, instantValue, intObject, intValue, localDateTimeValue, localDateValue, localTimeValue, longObject, longValue, regexValue, shortObject, shortValue, stringValue, throwNonPrimitive, throwPrimitive, toAlias, toArray, toBoolean, toByte, toChar, toCustom, toDouble, toFloat, toInt, toLocalDate, toLocalDateTime, toLocalTime, toLong, toMatrix, toName, toOp, toPair, toRegex, toShort, toStr, toString, toString, toString, toUpletMethods inherited from class AbstractTsonElement
annotations, annotationsCount, bigDecimalValue, bigIntegerValue, comments, compareTo, isNull, numberValue, temporalValue, toBigComplex, toBigDecimal, toBigInt, toBinaryStream, toCharStream, toDoubleComplex, toFloatComplex, toInstant, toNumber, typeMethods 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 Comparable
compareToMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface TsonElement
annotations, annotationsCount, bigDecimalValue, bigIntegerValue, booleanObject, booleanValue, build, byteObject, byteValue, charObject, charValue, comments, doubleObject, doubleValue, floatObject, floatValue, instantValue, intObject, intValue, isAnyString, isArray, isBoolean, isComplexNumber, isFloatingNumber, isListContainer, isName, isNamedArray, isNamedObject, isNamedUplet, isNull, isNumber, isObject, isOrdinalNumber, isPair, isPrimitive, isSimple, isSimplePair, isString, isTemporal, isUplet, localDateTimeValue, localDateValue, localTimeValue, longObject, longValue, numberValue, regexValue, shortObject, shortValue, stringValue, temporalValue, toAlias, toArray, toBigComplex, toBigDecimal, toBigInt, toBinaryStream, toBoolean, toByte, toChar, toCharStream, toCustom, toDouble, toDoubleComplex, toFloat, toFloatComplex, toInstant, toInt, toLocalDate, toLocalDateTime, toLocalTime, toLong, toMatrix, toName, toNumber, toOp, toPair, toRegex, toShort, toStr, toString, toUpletMethods inherited from interface TsonElementBase
toString, toString, type
-
Constructor Details
-
TsonObjectImpl
public TsonObjectImpl(String name, TsonElementList params, UnmodifiableArrayList<TsonElement> elements)
-
-
Method Details
-
isNamed
public boolean isNamed()- Specified by:
isNamedin interfaceTsonNamedElement- Specified by:
isNamedin interfaceTsonObject
-
params
- Specified by:
paramsin interfaceTsonParametrizedElement
-
isParametrized
public boolean isParametrized()- Specified by:
isParametrizedin interfaceTsonObject- Specified by:
isParametrizedin interfaceTsonParametrizedElement
-
paramsCount
public int paramsCount()- Specified by:
paramsCountin interfaceTsonParametrizedElement
-
toListContainer
- Specified by:
toListContainerin interfaceTsonElement- Overrides:
toListContainerin classAbstractTsonElementBase
-
name
- Specified by:
namein interfaceTsonNamedElement
-
toObject
- Specified by:
toObjectin interfaceTsonElement- Overrides:
toObjectin classAbstractNonPrimitiveTsonElement
-
get
- Specified by:
getin interfaceTsonObject
-
body
- Specified by:
bodyin interfaceTsonListContainer
-
get
- Specified by:
getin interfaceTsonObject
-
size
public int size()- Specified by:
sizein interfaceTsonObject
-
iterator
- Specified by:
iteratorin interfaceIterable<TsonElement>
-
equals
- Overrides:
equalsin classAbstractTsonElement
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractTsonElement
-
builder
- Specified by:
builderin interfaceTsonElement- Specified by:
builderin interfaceTsonObject
-
visit
- Specified by:
visitin interfaceTsonElement- Overrides:
visitin classAbstractNonPrimitiveTsonElement
-
compareCore
- Specified by:
compareCorein classAbstractTsonElement
-
visit
- Specified by:
visitin interfaceTsonElement
-