JFlex

Class RegExp2


public class RegExp2
extends RegExp

Regular expression with two children (e.g. a | b)

Constructor Summary

RegExp2(int type, RegExp r1, RegExp r2)

Method Summary

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

Methods inherited from class JFlex.RegExp

anyChar, isCharClass, print, resolveTilde, rev, revString, size, toString

Constructor Details

RegExp2

public RegExp2(int type,
               RegExp r1,
               RegExp r2)

Method Details

print

public String print(String tab)
Returns a String-representation of this regular expression with the specified indentation.
Overrides:
print in interface RegExp
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 String toString()
Returns a String-representation of this regular expression
Overrides:
toString in interface RegExp