com.mifmif.common.regex
Class TransitionLevel

java.lang.Object
  extended by com.mifmif.common.regex.TransitionLevel

 class TransitionLevel
extends Object

This class present a level where we will choose the next path to follow to build String that matches the Regex.

Author:
y.mifrah

Field Summary
private  char currentChar
           
private  boolean isNextTransitionLevelPassed
           
private  dk.brics.automaton.State state
           
private  int transitionIndex
           
 
Constructor Summary
TransitionLevel(dk.brics.automaton.State state)
           
 
Method Summary
 char getCurrentChar()
           
 dk.brics.automaton.Transition getCurrentTransition()
           
 char getMaxCharInCurrentTransition()
           
 dk.brics.automaton.State getState()
           
 dk.brics.automaton.Transition getTransition(int index)
           
 int getTransitionIndex()
           
 boolean hasCharacterTransition()
           
private  boolean hasMoreTransitions()
           
 boolean hasNextTransitionLevel()
           
 boolean jumpToNextTransition()
          return true if we succeed to jump to the next transition, false if there is no more transition .
 TransitionLevel nextTransitionLevel()
           
 void setCurrentChar(char currentChar)
           
 void setState(dk.brics.automaton.State state)
           
 void setTransitionIndex(int transitionIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

private dk.brics.automaton.State state

transitionIndex

private int transitionIndex

isNextTransitionLevelPassed

private boolean isNextTransitionLevelPassed

currentChar

private char currentChar
Constructor Detail

TransitionLevel

public TransitionLevel(dk.brics.automaton.State state)
Method Detail

hasCharacterTransition

public boolean hasCharacterTransition()

hasMoreTransitions

private boolean hasMoreTransitions()

jumpToNextTransition

public boolean jumpToNextTransition()
return true if we succeed to jump to the next transition, false if there is no more transition .

Returns:

hasNextTransitionLevel

public boolean hasNextTransitionLevel()

nextTransitionLevel

public TransitionLevel nextTransitionLevel()

getTransition

public dk.brics.automaton.Transition getTransition(int index)

getCurrentTransition

public dk.brics.automaton.Transition getCurrentTransition()

getMaxCharInCurrentTransition

public char getMaxCharInCurrentTransition()

getCurrentChar

public char getCurrentChar()

setCurrentChar

public void setCurrentChar(char currentChar)

getTransitionIndex

public int getTransitionIndex()

setTransitionIndex

public void setTransitionIndex(int transitionIndex)

getState

public dk.brics.automaton.State getState()

setState

public void setState(dk.brics.automaton.State state)


Copyright © 2014. All Rights Reserved.