|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.services.MethodIterator
public class MethodIterator
Utility used to iterate over the publically visible methods of a class or interface. The MethodIterator understands some complications that can occur when a class inherits the same method from multiple interfaces and with slightly different signatures (due to the fact that declared thrown exceptions can vary slightly for the "same" method).
MethodSignature.isOverridingSignatureOf(MethodSignature)
Constructor Summary | |
---|---|
MethodIterator(Class subjectClass)
Deprecated. |
Method Summary | |
---|---|
boolean |
getToString()
Deprecated. Returns true if the method public String toString() is part of the interface. |
boolean |
hasNext()
Deprecated. |
MethodSignature |
next()
Deprecated. Returns the next method (as a MethodSignature , returning null when all are exhausted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodIterator(Class subjectClass)
Method Detail |
---|
public boolean hasNext()
public MethodSignature next()
MethodSignature
, returning null when all are exhausted. Each method
signature is returned exactly once (even if the same method signature is defined in multiple inherited classes or
interfaces). The method signatures returned in ascending order, according to the "natural ordering".
NoSuchElementException
- if there are no more signaturespublic boolean getToString()
public String toString()
is part of the interface. This will be known
immediately after iterator contruction (it is not necessary to iterate the methods first).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |