com.mifmif.common.regex
Class GenerexIterator

java.lang.Object
  extended by com.mifmif.common.regex.GenerexIterator
All Implemented Interfaces:
Iterator

public class GenerexIterator
extends Object
implements Iterator

An implementation of Iterator class that iterate over the list of Strings that matches a given Regex.

Author:
y.mifrah

Field Summary
(package private)  String currentValue
           
(package private)  Stack<TransitionLevel> transitionsPath
           
 
Constructor Summary
GenerexIterator(dk.brics.automaton.State initialState)
           
 
Method Summary
private  void addNextTransitionLevel(TransitionLevel currentLevel)
           
 boolean hasNext()
           
private  void jumpToNextPath()
           
 String next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transitionsPath

Stack<TransitionLevel> transitionsPath

currentValue

String currentValue
Constructor Detail

GenerexIterator

public GenerexIterator(dk.brics.automaton.State initialState)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public String next()
Specified by:
next in interface Iterator

jumpToNextPath

private void jumpToNextPath()

addNextTransitionLevel

private void addNextTransitionLevel(TransitionLevel currentLevel)


Copyright © 2014. All Rights Reserved.