Class MethodSerializer<T>
java.lang.Object
one.nio.serial.Serializer<T>
one.nio.serial.MethodSerializer<T>
- All Implemented Interfaces:
Externalizable, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprivate TypeDescriptor[]private Stringprotected Methodprivate String(package private) static final AtomicIntegerprivate TypeDescriptorFields inherited from class Serializer
cls, descriptor, origin, uid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcSize(T obj, CalcSizeStream css) private MethodfromJson(JsonReader in) private booleanmethod()read(DataStream in) voidvoidskip(DataStream in) voidvoidtoJson(StringBuilder sb) voidtoJson(T obj, StringBuilder builder) toString()voidwrite(T obj, DataStream out) voidMethods inherited from class Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, serialize, sizeOf, uid, uniqueName
-
Field Details
-
renamedMethods
-
holderName
-
methodName
-
args
-
result
-
method
-
argCount
protected int argCount
-
-
Constructor Details
-
MethodSerializer
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSerializer<T>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
skipExternal
- Overrides:
skipExternalin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Overrides:
toJsonin classSerializer<T>
-
toString
- Overrides:
toStringin classSerializer<T>
-
method
-
calcSize
- Specified by:
calcSizein classSerializer<T>- Throws:
IOException
-
write
- Specified by:
writein classSerializer<T>- Throws:
IOException
-
read
- Specified by:
readin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
skip
- Specified by:
skipin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Specified by:
toJsonin classSerializer<T>- Throws:
IOException
-
fromJson
- Specified by:
fromJsonin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
findMatchingMethod
- Throws:
ClassNotFoundException
-
matches
-