inf.compilers
Class LexicalAnalyzer.SingleCharNode

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

static class LexicalAnalyzer.SingleCharNode
extends LexicalAnalyzer.RegexNode

This class represents a single character node in a regular expression tree.


Field Summary
(package private)  char theChar
           
 
Constructor Summary
LexicalAnalyzer.SingleCharNode(char c)
           
 
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

theChar

char theChar
Constructor Detail

LexicalAnalyzer.SingleCharNode

LexicalAnalyzer.SingleCharNode(char c)
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