Documentation of 'cc.mallet.pipe.iterator.ParenGroupIterator' Java class
ParenGroupIterator
cc.mallet.pipe.iterator

Class ParenGroupIterator

  • All Implemented Interfaces:
    java.util.Iterator<Instance>


    public class ParenGroupIterator
    extends java.lang.Object
    implements java.util.Iterator<Instance>
    Iterator that takes a Reader, breaks up the input into top-level parenthesized expressions. For example, in the input (a (a b) c) f (d e), there are two top-level expressions '(a (a b) c)' and '(d e)'. Text that is not within parentheses is ignored. Created: Thu Feb 26 13:45:43 2004
    • Constructor Summary

      Constructors 
      Constructor and Description
      ParenGroupIterator(java.io.Reader input) 
      ParenGroupIterator(java.io.Reader input, char openParen, char closeParen) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext() 
      Instance next() 
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • ParenGroupIterator

        public ParenGroupIterator(java.io.Reader input)
      • ParenGroupIterator

        public ParenGroupIterator(java.io.Reader input,
                                  char openParen,
                                  char closeParen)
    • Method Detail

      • next

        public Instance next()
        Specified by:
        next in interface java.util.Iterator<Instance>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Instance>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Instance>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.