Package yapion.hierarchy.typegroups
Class YAPIONAnyType
- java.lang.Object
-
- yapion.hierarchy.typegroups.YAPIONAnyClosure
-
- yapion.hierarchy.typegroups.YAPIONAnyType
-
- All Implemented Interfaces:
ObjectOutput,ObjectPath,ObjectSearch,ObjectType
- Direct Known Subclasses:
YAPIONDataType,YAPIONValueType
public abstract class YAPIONAnyType extends YAPIONAnyClosure implements ObjectSearch, ObjectPath, ObjectType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface yapion.hierarchy.typeinterfaces.ObjectSearch
ObjectSearch.YAPIONSearchResult<T extends YAPIONAnyType>
-
-
Field Summary
-
Fields inherited from interface yapion.hierarchy.typeinterfaces.ObjectOutput
indent
-
-
Constructor Summary
Constructors Constructor Description YAPIONAnyType()
-
Method Summary
Modifier and Type Method Description protected voidcacheReferenceValue(long referenceValue)YAPIONAnyTypecopy()protected voiddiscardReferenceValue()java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>get(java.lang.String key)java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>get(java.lang.String... s)intgetDepth()YAPIONAnyTypegetParent()longgetParseTime()doublegetParseTimeMillis()YAPIONPathgetPath()java.lang.StringgetPath(YAPIONAnyType yapionAnyType)protected longgetReferenceValue()booleanhasParent()protected booleanhasReferenceValue()java.lang.Stringindent()protected booleanisValuePresent()java.lang.StringreducedIndent()voidremoveParent()voidsetParent(YAPIONAnyType yapionAnyType)-
Methods inherited from class yapion.hierarchy.typegroups.YAPIONAnyClosure
referenceValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface yapion.hierarchy.typeinterfaces.ObjectOutput
indent, toJSON, toJSONLossy, toYAPION
-
Methods inherited from interface yapion.hierarchy.typeinterfaces.ObjectType
getType
-
-
-
-
Method Detail
-
cacheReferenceValue
protected final void cacheReferenceValue(long referenceValue)
-
getReferenceValue
protected final long getReferenceValue()
-
discardReferenceValue
protected final void discardReferenceValue()
-
hasReferenceValue
protected final boolean hasReferenceValue()
-
copy
public YAPIONAnyType copy()
-
getDepth
public final int getDepth()
- Specified by:
getDepthin interfaceObjectPath
-
indent
public final java.lang.String indent()
-
reducedIndent
public final java.lang.String reducedIndent()
-
getPath
public final YAPIONPath getPath()
- Specified by:
getPathin interfaceObjectPath
-
getPath
public java.lang.String getPath(YAPIONAnyType yapionAnyType)
- Specified by:
getPathin interfaceObjectPath
-
setParent
public final void setParent(YAPIONAnyType yapionAnyType)
-
removeParent
public final void removeParent()
-
getParent
public final YAPIONAnyType getParent()
-
hasParent
public final boolean hasParent()
-
getParseTime
public final long getParseTime()
- Returns:
- parseTime in nanoseconds
-
getParseTimeMillis
public final double getParseTimeMillis()
- Returns:
- parseTime in milliseconds as double
-
isValuePresent
protected final boolean isValuePresent()
-
get
public final java.util.Optional<ObjectSearch.YAPIONSearchResult<?>> get(java.lang.String... s)
- Specified by:
getin interfaceObjectSearch
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<?>> get(java.lang.String key)
- Specified by:
getin interfaceObjectSearch
-
-