net.sf.mmm.util.pojo.descriptor.impl
Class PojoMethodIntrospectorImpl.PojoMethodIterator

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractIterator<Method>
      extended by net.sf.mmm.util.pojo.descriptor.impl.PojoMethodIntrospectorImpl.PojoMethodIterator
All Implemented Interfaces:
Iterator<Method>
Enclosing class:
PojoMethodIntrospectorImpl

public class PojoMethodIntrospectorImpl.PojoMethodIterator
extends AbstractIterator<Method>

This inner class iterates the methods of a given pojo-type according to the visibility.


Field Summary
private  Class<?> currentClass
          the current class
private  int index
          the current index of methods
private  Method[] methods
          the methods
 
Constructor Summary
protected PojoMethodIntrospectorImpl.PojoMethodIterator(Class<?> pojoClass)
          The constructor.
 
Method Summary
protected  Method findNext()
          This method tries to find the next element.
 
Methods inherited from class net.sf.mmm.util.collection.base.AbstractIterator
findFirst, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentClass

private Class<?> currentClass
the current class


methods

private Method[] methods
the methods


index

private int index
the current index of methods

Constructor Detail

PojoMethodIntrospectorImpl.PojoMethodIterator

protected PojoMethodIntrospectorImpl.PojoMethodIterator(Class<?> pojoClass)
The constructor.

Parameters:
pojoClass - is the class for which the property-accessors should be iterated.
Method Detail

findNext

protected Method findNext()
This method tries to find the next element.

Specified by:
findNext in class AbstractIterator<Method>
Returns:
the next element or null if done.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.