Example #1
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public override NFATransition Copy(NFAState state)
 {
     return(new NFADigitTransition(state));
 }
Example #2
0
 /**
  * Creates a new non-digit character set transition.
  *
  * @param state          the target state
  */
 public NFANonDigitTransition(NFAState state) : base(state)
 {
 }
Example #3
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public override NFATransition Copy(NFAState state)
 {
     return(new NFACharTransition(match, state));
 }
Example #4
0
 /**
  * Creates a new dot character set transition.
  *
  * @param state          the target state
  */
 public NFADotTransition(NFAState state) : base(state)
 {
 }
Example #5
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public override NFATransition Copy(NFAState state)
 {
     return(new NFAEpsilonTransition(state));
 }
Example #6
0
 /**
  * Creates a new character transition.
  *
  * @param match          the character to match
  * @param state          the target state
  */
 public NFACharTransition(char match, NFAState state) : base(state)
 {
     this.match = match;
 }
Example #7
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public abstract NFATransition Copy(NFAState state);
Example #8
0
 /**
  * Creates a new epsilon transition.
  *
  * @param state          the target state
  */
 public NFAEpsilonTransition(NFAState state) : base(state)
 {
 }
Example #9
0
 /**
  * Creates a new state transition.
  *
  * @param state          the target state
  */
 public NFATransition(NFAState state)
 {
     this.state = state;
     this.state.AddIn(this);
 }
Example #10
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public override NFATransition Copy(NFAState state)
 {
     return(new NFANonWordTransition(state));
 }
Example #11
0
 /**
  * Creates a new non-word character set transition.
  *
  * @param state          the target state
  */
 public NFANonWordTransition(NFAState state) : base(state)
 {
 }
Example #12
0
 /**
  * Creates a new non-whitespace character set transition.
  *
  * @param state          the target state
  */
 public NFANonWhitespaceTransition(NFAState state) : base(state)
 {
 }
Example #13
0
 /**
  * Creates a copy of this transition but with another target
  * state.
  *
  * @param state          the new target state
  *
  * @return an identical copy of this transition
  */
 public override NFATransition Copy(NFAState state)
 {
     return(new NFAWhitespaceTransition(state));
 }