inf.compilers
Class LexicalAnalyzer.FixedStringNode

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

static class LexicalAnalyzer.FixedStringNode
extends LexicalAnalyzer.RegexNode

This class represents a fixed string of characters.


Field Summary
(package private)  char[] theChars
           
 
Constructor Summary
LexicalAnalyzer.FixedStringNode(java.lang.String str)
           
 
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

theChars

char[] theChars
Constructor Detail

LexicalAnalyzer.FixedStringNode

LexicalAnalyzer.FixedStringNode(java.lang.String str)
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