JFlex
Class RegExp

java.lang.Object
  extended byJFlex.RegExp
Direct Known Subclasses:
RegExp1, RegExp2

public class RegExp
extends java.lang.Object

Stores a regular expression of rules section in a JFlex-specification. This base class has no content other than its type.


Constructor Summary
RegExp(int type)
          Create a new regular expression of the specified type.
 
Method Summary
 java.lang.String print(java.lang.String tab)
          Returns a String-representation of this regular expression with the specified indentation.
 java.lang.String toString()
          Returns a String-representation of this regular expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegExp

public RegExp(int type)
Create a new regular expression of the specified type.

Parameters:
type - a value from the cup generated class sym.
See Also:
sym
Method Detail

print

public java.lang.String print(java.lang.String tab)
Returns a String-representation of this regular expression with the specified indentation.

Parameters:
tab - a String that should contain only space characters and that is inserted in front of standard String-representation pf this object.

toString

public java.lang.String toString()
Returns a String-representation of this regular expression