public class MethodSerializer<T> extends Serializer<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
argCount |
protected Method |
method |
cls, descriptor, origin, uid| Modifier | Constructor and Description |
|---|---|
protected |
MethodSerializer(Method method) |
| Modifier and Type | Method and Description |
|---|---|
void |
calcSize(T obj,
CalcSizeStream css) |
T |
fromJson(JsonReader in) |
Method |
method() |
T |
read(DataStream in) |
void |
readExternal(ObjectInput in) |
void |
skip(DataStream in) |
void |
skipExternal(ObjectInput in) |
void |
toJson(StringBuilder sb) |
void |
toJson(T obj,
StringBuilder builder) |
String |
toString() |
void |
write(T obj,
DataStream out) |
void |
writeExternal(ObjectOutput out) |
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, serialize, sizeOf, uid, uniqueNameprotected Method method
protected int argCount
protected MethodSerializer(Method method)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Serializer<T>IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class Serializer<T>IOExceptionClassNotFoundExceptionpublic void skipExternal(ObjectInput in) throws IOException, ClassNotFoundException
skipExternal in class Serializer<T>IOExceptionClassNotFoundExceptionpublic void toJson(StringBuilder sb)
toJson in class Serializer<T>public String toString()
toString in class Serializer<T>public Method method()
public void calcSize(T obj, CalcSizeStream css) throws IOException
calcSize in class Serializer<T>IOExceptionpublic void write(T obj, DataStream out) throws IOException
write in class Serializer<T>IOExceptionpublic T read(DataStream in) throws IOException, ClassNotFoundException
read in class Serializer<T>IOExceptionClassNotFoundExceptionpublic void skip(DataStream in) throws IOException, ClassNotFoundException
skip in class Serializer<T>IOExceptionClassNotFoundExceptionpublic void toJson(T obj, StringBuilder builder) throws IOException
toJson in class Serializer<T>IOExceptionpublic T fromJson(JsonReader in) throws IOException, ClassNotFoundException
fromJson in class Serializer<T>IOExceptionClassNotFoundExceptionCopyright © 2019. All rights reserved.