@Deprecated public class ProtocolBufferClassHierarchy extends Object implements ClassHierarchy
| Constructor and Description |
|---|
ProtocolBufferClassHierarchy(ClassHierarchyProto.Node root)
Deprecated.
in 0.12. Use AvroClassHierarchy instead
|
| Modifier and Type | Method and Description |
|---|---|
static ClassHierarchy |
deserialize(File file)
Deprecated.
in 0.12. Use AvroClassHierarchySerializer instead
|
Node |
getNamespace()
Deprecated.
Return a reference to the root of the ClassHierarchy.
|
Node |
getNode(String fullName)
Deprecated.
Lookup a node in this class hierarchy.
|
boolean |
isImplementation(ClassNode<?> inter,
ClassNode<?> impl)
Deprecated.
Return whether the impl is a subclass of inter.
|
ClassHierarchy |
merge(ClassHierarchy ch)
Deprecated.
Merge the contents of this ClassHierarchy and the provided one into a new
class hierarchy.
|
static ClassHierarchyProto.Node |
serialize(ClassHierarchy classHierarchy)
Deprecated.
in 0.12. Use AvroClassHierarchySerializer instead
|
static void |
serialize(File file,
ClassHierarchy classHierarchy)
Deprecated.
in 0.12. Use AvroClassHierarchySerializer instead
|
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 - IOExceptionpublic static ClassHierarchy deserialize(File file) throws IOException
file - IOExceptionpublic Node getNode(String fullName) throws NameResolutionException
ClassHierarchygetNode in interface ClassHierarchyfullName - 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)
ClassHierarchyisImplementation in interface ClassHierarchyinter - a interface classimpl - a implementation classpublic ClassHierarchy merge(ClassHierarchy ch)
ClassHierarchyClassHierarchies derived from applications written in different languages cannot be merged.
merge in interface ClassHierarchych - a class hierarchy to be mergedpublic Node getNamespace()
ClassHierarchyNormal callers (all use cases except ClassHierarchy serialization) should use getNode(String) to lookup classes, since getNamespace() can not support lazy loading of unknown classes.
getNamespace in interface ClassHierarchyCopyright © 2017 The Apache Software Foundation. All rights reserved.