Rule Execution Server API

ilog.rules.bom.util
Class IlrParameterTypeIterator

java.lang.Object
  extended by ilog.rules.bom.util.IlrParameterTypeIterator
All Implemented Interfaces:
Iterator

public class IlrParameterTypeIterator
extends Object
implements Iterator

Iterates over the types of parameters.


Constructor Summary
IlrParameterTypeIterator(IlrMethod method)
          Creates an iterator to iterate over the types of the parameters of a method.
IlrParameterTypeIterator(Iterator parameterIterator)
          Creates an iterator to iterate over the types of the parameters.
IlrParameterTypeIterator(List parameters)
          Creates an iterator to iterate over the types of the parameters.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Object next()
          Returns the next element in the iteration.
 void remove()
          Throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrParameterTypeIterator

public IlrParameterTypeIterator(List parameters)
Creates an iterator to iterate over the types of the parameters.

Parameters:
parameters - A list of IlrParameters.

IlrParameterTypeIterator

public IlrParameterTypeIterator(Iterator parameterIterator)
Creates an iterator to iterate over the types of the parameters.

Parameters:
parameterIterator - An iterator over IlrParameter/code>s.

IlrParameterTypeIterator

public IlrParameterTypeIterator(IlrMethod method)
Creates an iterator to iterate over the types of the parameters of a method.

Parameters:
method - An IlrMethod.
Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. In other words, returns true if next returns an element rather than throwing an exception.

Specified by:
hasNext in interface Iterator
Returns:
true if the iterator has more elements.

next

public Object next()
Returns the next element in the iteration.

Specified by:
next in interface Iterator
Throws:
NoSuchElementException - If the iteration has no more elements.
Returns:
The next element in the iteration.

remove

public void remove()
Throws UnsupportedOperationException.

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - If the remove operation is not supported by this iterator.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013