com.mifmif.common.regex
Class TransitionLevel
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
state
private dk.brics.automaton.State state
transitionIndex
private int transitionIndex
isNextTransitionLevelPassed
private boolean isNextTransitionLevelPassed
currentChar
private char currentChar
TransitionLevel
public TransitionLevel(dk.brics.automaton.State state)
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.