public class ProtocolBufferClassHierarchy extends Object implements ClassHierarchy
Constructor and Description |
---|
ProtocolBufferClassHierarchy(ClassHierarchyProto.Node root)
Deserialize a class hierarchy from a protocol buffer object.
|
Modifier and Type | Method and Description |
---|---|
static ClassHierarchy |
deserialize(File file)
Deserialize a class hierarchy from a file.
|
Node |
getNamespace()
Return a reference to the root of the ClassHierarchy.
|
Node |
getNode(String fullName)
Lookup a node in this class hierarchy.
|
boolean |
isImplementation(ClassNode<?> inter,
ClassNode<?> impl) |
ClassHierarchy |
merge(ClassHierarchy ch)
Merge the contents of this ClassHierarchy and the provided one into a new
class hierarchy.
|
static ClassHierarchyProto.Node |
serialize(ClassHierarchy classHierarchy)
Serialize a class hierarchy into a protocol buffer object.
|
static void |
serialize(File file,
ClassHierarchy classHierarchy)
serialize a class hierarchy into a file
|
public ProtocolBufferClassHierarchy(ClassHierarchyProto.Node root)
public static ClassHierarchyProto.Node serialize(ClassHierarchy classHierarchy)
classHierarchy
- public static void serialize(File file, ClassHierarchy classHierarchy) throws IOException
file
- classHierarchy
- IOException
public static ClassHierarchy deserialize(File file) throws IOException
file
- IOException
public Node getNode(String fullName) throws NameResolutionException
ClassHierarchy
getNode
in interface ClassHierarchy
fullName
- The full name of the class that will be looked up.NameResolutionException
- If the class is not found.public boolean isImplementation(ClassNode<?> inter, ClassNode<?> impl)
isImplementation
in interface ClassHierarchy
public ClassHierarchy merge(ClassHierarchy ch)
ClassHierarchy
merge
in interface ClassHierarchy
public Node getNamespace()
ClassHierarchy
getNamespace
in interface ClassHierarchy
Copyright © 2015 The Apache Software Foundation. All rights reserved.