public class EncodedGraph extends Object
StructuredGraph
encoded in a compact binary representation as a byte[] array. See
GraphEncoder
for a description of the encoding format. Use GraphDecoder
for
decoding.Modifier and Type | Field and Description |
---|---|
private Assumptions |
assumptions |
private byte[] |
encoding |
private Set<ResolvedJavaMethod> |
inlinedMethods |
protected long[] |
nodeStartOffsets
The "table of contents" of the encoded graph, i.e., the mapping from orderId numbers to the
offset in the encoded byte[] array.
|
private Object[] |
objects |
private long |
startOffset |
private NodeClass<?>[] |
types |
Constructor and Description |
---|
EncodedGraph(byte[] encoding,
long startOffset,
Object[] objects,
NodeClass<?>[] types,
Assumptions assumptions,
Set<ResolvedJavaMethod> inlinedMethods) |
Modifier and Type | Method and Description |
---|---|
Assumptions |
getAssumptions() |
byte[] |
getEncoding() |
Set<ResolvedJavaMethod> |
getInlinedMethods() |
NodeClass<?>[] |
getNodeClasses() |
Object[] |
getObjects() |
long |
getStartOffset() |
private final byte[] encoding
private final long startOffset
private final Assumptions assumptions
private final Set<ResolvedJavaMethod> inlinedMethods
protected long[] nodeStartOffsets
public EncodedGraph(byte[] encoding, long startOffset, Object[] objects, NodeClass<?>[] types, Assumptions assumptions, Set<ResolvedJavaMethod> inlinedMethods)
public byte[] getEncoding()
public long getStartOffset()
public Object[] getObjects()
public NodeClass<?>[] getNodeClasses()
public Assumptions getAssumptions()
public Set<ResolvedJavaMethod> getInlinedMethods()