Class PostOrderDeserializer
java.lang.Object
com.oracle.truffle.api.nodes.serial.PostOrderDeserializer
Experimental API. May change without notice.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new serializer using a customSerializerConstantPool
implementation. -
Method Summary
Modifier and TypeMethodDescription<T extends Node>
Tdeserialize
(byte[] bytes, Class<T> expectedType) Deserializes the byte stream and returns the deserialized Truffle AST node.
-
Constructor Details
-
PostOrderDeserializer
Constructs a new serializer using a customSerializerConstantPool
implementation. For theSerializerConstantPool
implementation at least the following methods must be implemented:
-
-
Method Details
-
deserialize
public <T extends Node> T deserialize(byte[] bytes, Class<T> expectedType) throws UnsupportedConstantPoolTypeException Deserializes the byte stream and returns the deserialized Truffle AST node.- Parameters:
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.- Returns:
- the deserialized Truffle AST represented by the root Node.
- Throws:
UnsupportedConstantPoolTypeException
- thrown if a type is encountered that is not supported by the constant pool implementation.
-