inf.compilers
Class LexicalAnalyzer.RegexNode

java.lang.Object
  extended by inf.compilers.LexicalAnalyzer.RegexNode
Direct Known Subclasses:
LexicalAnalyzer.AlternativesNode, LexicalAnalyzer.CharClassNode, LexicalAnalyzer.FixedStringNode, LexicalAnalyzer.RptExprNode, LexicalAnalyzer.SequenceNode, LexicalAnalyzer.SingleCharNode
Enclosing class:
LexicalAnalyzer

abstract static class LexicalAnalyzer.RegexNode
extends java.lang.Object

Regular expressions are internally represented as trees. This class represents a node in a regex tree. It can represent either a single character node, a character class node, a repetition node, a sequence node, or an alternatives node.


Constructor Summary
LexicalAnalyzer.RegexNode()
           
 
Method Summary
(package private) abstract  boolean matchChars(LexicalAnalyzer la)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexicalAnalyzer.RegexNode

LexicalAnalyzer.RegexNode()
Method Detail

matchChars

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