@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
- 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)
ClassHierarchy
isImplementation
in interface ClassHierarchy
inter
- a interface classimpl
- a implementation classpublic ClassHierarchy merge(ClassHierarchy ch)
ClassHierarchy
ClassHierarchies derived from applications written in different languages cannot be merged.
merge
in interface ClassHierarchy
ch
- a class hierarchy to be mergedpublic Node getNamespace()
ClassHierarchy
Normal 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 ClassHierarchy
Copyright © 2017 The Apache Software Foundation. All rights reserved.