org.apache.hivemind.service
Class MethodIterator

java.lang.Object
  extended by 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() is part of the interface.
 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 (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:
java.util.NoSuchElementException - if there are no more signatures

getToString

public boolean getToString()
Returns true if the method public String toString() is part of the interface.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.