Class PostOrderSerializer
java.lang.Object
com.oracle.truffle.api.nodes.serial.PostOrderSerializer
Experimental API. May change without notice.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new deserializer using a customSerializerConstantPool
implementation. -
Method Summary
-
Constructor Details
-
PostOrderSerializer
Constructs a new deserializer using a customSerializerConstantPool
implementation. For theSerializerConstantPool
implementation at least the following methods must be implemented:
-
-
Method Details
-
serialize
Serializes the node AST and returns the serialized data as byte array.- Parameters:
node
- the root node that represents the Truffle AST that should be serialized.- Returns:
- a trimmed byte array that contains the serialized data.
- Throws:
UnsupportedConstantPoolTypeException
- thrown if a type is encountered that is not supported by the constant pool implementation.
-