Class PostOrderSerializer
- java.lang.Object
-
- com.oracle.truffle.api.nodes.serial.PostOrderSerializer
-
public final class PostOrderSerializer extends java.lang.Object
Experimental API. May change without notice.
-
-
Constructor Summary
Constructors Constructor Description PostOrderSerializer(SerializerConstantPool cp)
Constructs a new deserializer using a customSerializerConstantPool
implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
serialize(Node node)
Serializes the node AST and returns the serialized data as byte array.
-
-
-
Constructor Detail
-
PostOrderSerializer
public PostOrderSerializer(SerializerConstantPool cp)
Constructs a new deserializer using a customSerializerConstantPool
implementation. For theSerializerConstantPool
implementation at least the following methods must be implemented:
-
-
Method Detail
-
serialize
public byte[] serialize(Node node) throws UnsupportedConstantPoolTypeException
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.
-
-