org.javacc.parser
Class RegularExpression

java.lang.Object
  extended by org.javacc.parser.Expansion
      extended by org.javacc.parser.RegularExpression
Direct Known Subclasses:
RCharacterList, RChoice, REndOfFile, RJustName, ROneOrMore, RRepetitionRange, RSequence, RStringLiteral, RZeroOrMore, RZeroOrOne

public abstract class RegularExpression
extends Expansion

Describes regular expressions.


Field Summary
 java.lang.String label
          The label of the regular expression (if any).
 java.util.Vector lhsTokens
          The LHS to which the token value of the regular expression is assigned.
 boolean private_rexp
          This flag is set if the regular expression has a label prefixed with the # symbol - this indicates that the purpose of the regular expression is solely for defining other regular expressions.
 TokenProduction tpContext
          If this is a top-level regular expression (nested directly within a TokenProduction), then this field point to that TokenProduction object.
 
Fields inherited from class org.javacc.parser.Expansion
inMinimumSize, myGeneration, nextGenerationIndex, parent
 
Constructor Summary
RegularExpression()
           
 
Method Summary
 boolean CanMatchAnyChar()
           
abstract  Nfa GenerateNfa(boolean ignoreCase)
           
 
Methods inherited from class org.javacc.parser.Expansion
hashCode, reInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

public java.lang.String label
The label of the regular expression (if any). If no label is present, this is set to "".


lhsTokens

public java.util.Vector lhsTokens
The LHS to which the token value of the regular expression is assigned. In case there is no LHS, then the vector remains empty.


private_rexp

public boolean private_rexp
This flag is set if the regular expression has a label prefixed with the # symbol - this indicates that the purpose of the regular expression is solely for defining other regular expressions.


tpContext

public TokenProduction tpContext
If this is a top-level regular expression (nested directly within a TokenProduction), then this field point to that TokenProduction object.

Constructor Detail

RegularExpression

public RegularExpression()
Method Detail

GenerateNfa

public abstract Nfa GenerateNfa(boolean ignoreCase)

CanMatchAnyChar

public boolean CanMatchAnyChar()