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 void
cacheReferenceValue(long referenceValue)
YAPIONAnyType
copy()
protected void
discardReferenceValue()
java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>
get(java.lang.String key)
java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>
get(java.lang.String... s)
int
getDepth()
YAPIONAnyType
getParent()
long
getParseTime()
double
getParseTimeMillis()
YAPIONPath
getPath()
java.lang.String
getPath(YAPIONAnyType yapionAnyType)
protected long
getReferenceValue()
boolean
hasParent()
protected boolean
hasReferenceValue()
java.lang.String
indent()
protected boolean
isValuePresent()
java.lang.String
reducedIndent()
void
removeParent()
void
setParent(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:
getDepth
in interfaceObjectPath
-
indent
public final java.lang.String indent()
-
reducedIndent
public final java.lang.String reducedIndent()
-
getPath
public final YAPIONPath getPath()
- Specified by:
getPath
in interfaceObjectPath
-
getPath
public java.lang.String getPath(YAPIONAnyType yapionAnyType)
- Specified by:
getPath
in 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:
get
in interfaceObjectSearch
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<?>> get(java.lang.String key)
- Specified by:
get
in interfaceObjectSearch
-
-