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()
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 an implementation of, or abstract placeholder for, the 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()
public void addMethod(String name, String desc)
name - name of methoddesc - describes the parameters and return value of the methodpublic boolean isImplemented(String name, String desc)
name - method namedesc - method descriptorpublic boolean isInterfaceImplemented(String name)
public void addInterface(String name)
public Set<String> methodNames()
${project.version} - Copyright © 2003-2014 The Apache Software Foundation.