org.apache.hivemind.service
Class MethodIterator

java.lang.Object
  |
  +--org.apache.hivemind.service.MethodIterator

public class MethodIterator
extends java.lang.Object

Utility used to iterate over the visible methods of a class.

Author:
Howard Lewis Ship

Constructor Summary
MethodIterator(java.lang.Class subjectClass)
           
 
Method Summary
 boolean getToString()
          Returns true if the method public String toString() was returned by next().
 boolean hasNext()
           
 MethodSignature next()
          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

MethodIterator

public MethodIterator(java.lang.Class subjectClass)
Method Detail

hasNext

public boolean hasNext()

next

public MethodSignature next()
Returns the next method (as a MethodSignature, returning null when all are exhausted. Each method signature is returned exactly once.


getToString

public boolean getToString()
Returns true if the method public String toString() was returned by next(). This is typically used to avoid overloading toString() if it is part of a service interface.