|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.plastic.InheritanceData
public class InheritanceData
Used to track which methods are implemented by a base class, which is often needed when transforming a subclass.
Constructor Summary | |
---|---|
InheritanceData()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InheritanceData()
Method Detail |
---|
public boolean isTransformed()
public InheritanceData createChild(String childClassName)
childClassName
- name of subclass
public void addMethod(String name, String desc)
name
- name of methoddesc
- method descriptorpublic boolean isImplemented(String name, String desc)
name
- method namedesc
- method descriptor
public boolean isInterfaceImplemented(String name)
public void addInterface(String name)
public Set<String> methodNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |