public class InheritanceData extends Object
Constructor and Description |
---|
InheritanceData(String packageName) |
Modifier and Type | Method and Description |
---|---|
void |
addInterface(String name) |
void |
addMethod(String name,
String desc,
boolean samePackageOnly)
Adds a new instance method.
|
InheritanceData |
createChild(String packageName)
Returns a new MethodBundle that represents the methods of a child class
of this bundle.
|
boolean |
isImplemented(String name,
String desc)
Returns true if this class or 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 |
isOverride(String name,
String desc)
Returns true if the method is an override of a base class method
|
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(String packageName)
public boolean isTransformed()
public InheritanceData createChild(String packageName)
packageName
- the package that the child class will be created inpublic void addMethod(String name, String desc, boolean samePackageOnly)
name
- name of methoddesc
- describes the parameters and return value of the methodsamePackageOnly
- whether the method can only be overridden in classes that are in the same packagepublic boolean isImplemented(String name, String desc)
name
- method namedesc
- method descriptorpublic boolean isOverride(String name, String desc)
name
- method namedesc
- method descriptorpublic boolean isInterfaceImplemented(String name)
public void addInterface(String name)
public Set<String> methodNames()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.