23 24 25 package org.graalvm.graphio; 26 27 import java.io.File; 28 import java.io.IOException; 29 import java.net.URI; 30 import java.net.URISyntaxException; 31 import java.nio.channels.WritableByteChannel; 32 import java.util.Collection; 33 import java.util.Map; 34 35 final class ProtocolImpl<Graph, Node, NodeClass, Port, Block, ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition, Location> 36 extends GraphProtocol<Graph, Node, NodeClass, Port, Block, ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition, Location> { 37 private final GraphStructure<Graph, Node, NodeClass, Port> structure; 38 private final GraphTypes types; 39 private final GraphBlocks<Graph, Block, Node> blocks; 40 private final GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements; 41 private final GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locations; 42 43 ProtocolImpl(int major, int minor, GraphStructure<Graph, Node, NodeClass, Port> structure, GraphTypes enums, GraphBlocks<Graph, Block, Node> blocks, 44 GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements, 45 GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locs, 46 WritableByteChannel channel) throws IOException { 47 super(channel, major, minor); 48 this.structure = structure; 49 this.types = enums; 50 this.blocks = blocks; 51 this.elements = elements; 52 this.locations = locs; 53 } 54 55 ProtocolImpl(GraphProtocol<?, ?, ?, ?, ?, ?, ?, ?, ?, ?> parent, GraphStructure<Graph, Node, NodeClass, Port> structure, GraphTypes enums, GraphBlocks<Graph, Block, Node> blocks, 56 GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements, 57 GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locs) { 58 super(parent); 59 this.structure = structure; 60 this.types = enums; 61 this.blocks = blocks; 62 this.elements = elements; 63 this.locations = locs; 64 } 65 66 @Override 67 protected Graph findGraph(Graph current, Object obj) { | 23 24 25 package org.graalvm.graphio; 26 27 import java.io.File; 28 import java.io.IOException; 29 import java.net.URI; 30 import java.net.URISyntaxException; 31 import java.nio.channels.WritableByteChannel; 32 import java.util.Collection; 33 import java.util.Map; 34 35 final class ProtocolImpl<Graph, Node, NodeClass, Port, Block, ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition, Location> 36 extends GraphProtocol<Graph, Node, NodeClass, Port, Block, ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition, Location> { 37 private final GraphStructure<Graph, Node, NodeClass, Port> structure; 38 private final GraphTypes types; 39 private final GraphBlocks<Graph, Block, Node> blocks; 40 private final GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements; 41 private final GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locations; 42 43 ProtocolImpl(int major, int minor, boolean embedded, GraphStructure<Graph, Node, NodeClass, Port> structure, GraphTypes enums, GraphBlocks<Graph, Block, Node> blocks, 44 GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements, 45 GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locs, 46 WritableByteChannel channel) throws IOException { 47 super(channel, major, minor, embedded); 48 this.structure = structure; 49 this.types = enums; 50 this.blocks = blocks; 51 this.elements = elements; 52 this.locations = locs; 53 } 54 55 ProtocolImpl(GraphProtocol<?, ?, ?, ?, ?, ?, ?, ?, ?, ?> parent, GraphStructure<Graph, Node, NodeClass, Port> structure, GraphTypes enums, GraphBlocks<Graph, Block, Node> blocks, 56 GraphElements<ResolvedJavaMethod, ResolvedJavaField, Signature, NodeSourcePosition> elements, 57 GraphLocations<ResolvedJavaMethod, NodeSourcePosition, Location> locs) { 58 super(parent); 59 this.structure = structure; 60 this.types = enums; 61 this.blocks = blocks; 62 this.elements = elements; 63 this.locations = locs; 64 } 65 66 @Override 67 protected Graph findGraph(Graph current, Object obj) { |