inf.compilers
Class LexicalAnalyzer.RptExprNode

java.lang.Object
  extended by inf.compilers.LexicalAnalyzer.RegexNode
      extended by inf.compilers.LexicalAnalyzer.RptExprNode
Enclosing class:
LexicalAnalyzer

static class LexicalAnalyzer.RptExprNode
extends LexicalAnalyzer.RegexNode

This class represents a repetition node in a regular expression tree.


Field Summary
(package private)  LexicalAnalyzer.RegexNode content
           
(package private)  int max
           
(package private)  int min
           
 
Constructor Summary
LexicalAnalyzer.RptExprNode(LexicalAnalyzer.RegexNode node)
           
 
Method Summary
(package private)  boolean matchChars(LexicalAnalyzer la)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

min

int min

max

int max

content

LexicalAnalyzer.RegexNode content
Constructor Detail

LexicalAnalyzer.RptExprNode

LexicalAnalyzer.RptExprNode(LexicalAnalyzer.RegexNode node)
Method Detail

matchChars

boolean matchChars(LexicalAnalyzer la)
             throws java.io.IOException
Specified by:
matchChars in class LexicalAnalyzer.RegexNode
Returns:
true iff the group could be read from the input
Throws:
java.io.IOException - if reading fails

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object