Package io.github.qishr.cascara.common.lang.processor
Class Context
java.lang.Object
io.github.qishr.cascara.common.lang.processor.Serializer.Context
@io.github.qishr.cascara.common.annotation.Experimental
public static class Context
Constructor Summary
| Constructor | Description |
|---|---|
| Context(Serialize serialize, Deserialize deserialize, DeserializeEnum deserializeEnum, Reporter reporter) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public AstNode | serialize(Object jvmInstance, Type jvmType) | |
| public C | deserialize(AstNode node, Type jvmType) | |
| public Enum<?> | deserializeEnum(String text, Type targetType) | |
| public Reporter | getReporter() |
Method Details
serialize
@io.github.qishr.cascara.common.annotation.NonNull
public AstNode serialize(Object jvmInstance, Type jvmType)
deserialize
@io.github.qishr.cascara.common.annotation.Nullable
public C deserialize(AstNode node, Type jvmType)
deserializeEnum
public Enum<?> deserializeEnum(String text, Type targetType)
getReporter
@io.github.qishr.cascara.common.annotation.NonNull
public Reporter getReporter()