public final class PostOrderDeserializer
extends java.lang.Object
| Constructor and Description |
|---|
PostOrderDeserializer(SerializerConstantPool cp)
Constructs a new serializer using a custom
SerializerConstantPool implementation. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Node> |
deserialize(byte[] bytes,
java.lang.Class<T> expectedType)
Deserializes the byte stream and returns the deserialized Truffle AST node.
|
public PostOrderDeserializer(SerializerConstantPool cp)
SerializerConstantPool implementation. For
the SerializerConstantPool implementation at least the following methods must be
implemented:
public <T extends Node> T deserialize(byte[] bytes, java.lang.Class<T> expectedType) throws UnsupportedConstantPoolTypeException
bytes - the trimmed byte array containing the serialized dataexpectedType - the expected root node type. Throws an exception if the root node is not
assignable from this type.UnsupportedConstantPoolTypeException - thrown if a type is encountered that is not
supported by the constant pool implementation.