public class InheritanceData extends Object
Constructor and Description |
---|
InheritanceData() |
Modifier and Type | Method and Description |
---|---|
void |
addInterface(String name) |
void |
addMethod(String name,
String desc)
Adds a new instance method.
|
InheritanceData |
createChild(String childClassName)
Returns a new MethodBundle that represents the methods of a child class
of this bundle.
|
boolean |
isImplemented(String name,
String desc)
Returns true if a transformed parent class contains the indicated method.
|
boolean |
isInterfaceImplemented(String name)
Returns true if the class represented by this data, or any parent data, implements
the named interface.
|
boolean |
isTransformed()
Is this bundle for a transformed class, or for a base class (typically Object)?
|
Set<String> |
methodNames()
Returns the names of any methods in this bundle, or from any parent bundles.
|
public InheritanceData()
public boolean isTransformed()
public InheritanceData createChild(String childClassName)
childClassName
- name of subclasspublic void addMethod(String name, String desc)
name
- name of methoddesc
- method descriptorpublic boolean isImplemented(String name, String desc)
name
- method namedesc
- method descriptorpublic boolean isInterfaceImplemented(String name)
public void addInterface(String name)
public Set<String> methodNames()
Copyright © 2003-2012 The Apache Software Foundation.