| |
|
| java.lang.Object org.apache.tapestry.ioc.services.MethodIterator
MethodIterator | public class MethodIterator (Code) | | 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).
See Also: org.apache.tapestry.ioc.services.MethodSignature.isOverridingSignatureOf(MethodSignature) |
MethodIterator | public MethodIterator(Class subjectClass)(Code) | | |
getToString | public boolean getToString()(Code) | | Returns true if the method 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).
|
hasNext | public boolean hasNext()(Code) | | |
next | public MethodSignature next()(Code) | | Returns the next method (as a
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 order in which method signatures
are returned is not specified.
throws: NoSuchElementException - if there are no more signatures |
|
|
|