home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / util / regexpr / MatchState.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  909 b   |  31 lines

  1. package com.extensibility.util.regexpr;
  2.  
  3. import java.util.Enumeration;
  4. import java.util.Vector;
  5.  
  6. class MatchState {
  7.    protected PatternTerm term;
  8.    protected Vector next;
  9.  
  10.    MatchState(PatternTerm var1) {
  11.       this.term = var1;
  12.       this.next = new Vector();
  13.    }
  14.  
  15.    PatternTerm getTerm() {
  16.       return this.term;
  17.    }
  18.  
  19.    void addNext(MatchState var1) {
  20.       this.next.addElement(var1);
  21.    }
  22.  
  23.    Enumeration nextStates() {
  24.       return this.next.elements();
  25.    }
  26.  
  27.    boolean isEnd() {
  28.       return this.next.size() == 0;
  29.    }
  30. }
  31.