ilog.rules.bom.util

Class IlrParameterTypeIterator

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


    public class IlrParameterTypeIterator
    extends java.lang.Object
    implements java.util.Iterator
    Iterates over the types of parameters.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrParameterTypeIterator(IlrMethod method)
      Creates an iterator to iterate over the types of the parameters of a method.
      IlrParameterTypeIterator(java.util.Iterator parameterIterator)
      Creates an iterator to iterate over the types of the parameters.
      IlrParameterTypeIterator(java.util.List parameters)
      Creates an iterator to iterate over the types of the parameters.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean hasNext()
      Returns true if the iteration has more elements.
      java.lang.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(java.util.List parameters)
        Creates an iterator to iterate over the types of the parameters.
        Parameters:
        parameters - A list of IlrParameters.
      • IlrParameterTypeIterator

        public IlrParameterTypeIterator(java.util.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 java.util.Iterator
        Returns:
        true if the iterator has more elements.
      • next

        public java.lang.Object next()
        Returns the next element in the iteration.
        Specified by:
        next in interface java.util.Iterator
        Throws:
        java.util.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 java.util.Iterator
        Throws:
        java.lang.UnsupportedOperationException - If the remove operation is not supported by this iterator.

© Copyright IBM Corp. 1987, 2017