inf.compilers
Class LexicalAnalyzer.AlternativesNode

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

static class LexicalAnalyzer.AlternativesNode
extends LexicalAnalyzer.RegexNode

This class represents an alternatives node in a regular expression tree.


Field Summary
(package private)  LexicalAnalyzer.RegexNode[] subNodes
           
 
Constructor Summary
LexicalAnalyzer.AlternativesNode()
           
 
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

subNodes

LexicalAnalyzer.RegexNode[] subNodes
Constructor Detail

LexicalAnalyzer.AlternativesNode

LexicalAnalyzer.AlternativesNode()
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