public abstract class AbstractSerialiser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Consumer<String> |
endMarkerFunction |
protected Consumer<String> |
startMarkerFunction |
| Constructor and Description |
|---|
AbstractSerialiser() |
public void addClassDefinition(FieldSerialiser serialiser)
protected boolean checkClassCompatibility(List<Class<?>> ref1, List<Class<?>> ref2)
public void checkSerialiserAvailability(List<String> objList, ClassFieldDescription field)
public abstract Object deserialiseObject(Object obj) throws IllegalAccessException
IllegalAccessExceptionpublic Optional<FieldSerialiser> findFieldSerialiserForKnownClassOrInterface(Class<?> clazz, List<Class<?>> classGenericArguments)
public Map<Class<?>,List<FieldSerialiser>> knownClasses()
public void serialiseObject(Object obj) throws IllegalAccessException
IllegalAccessExceptionpublic void serialiseObject(Object obj, ClassFieldDescription root, int recursionDepth) throws IllegalAccessException
IllegalAccessExceptionpublic static int computeHashCode(Class<?> classPrototype, List<Class<?>> classGenericArguments)
public static Constructor<Object> getClassConstructorByName(String name, Class<?>... parameterTypes)
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.