Package jflex.core

Class RegExp2


public class RegExp2 extends RegExp
Regular expression with two children (e.g. a | b)
Version:
JFlex 1.8.2
  • Field Details

  • Constructor Details

    • RegExp2

      public RegExp2(int type, RegExp r1, RegExp r2)
      Constructor for RegExp2.
      Parameters:
      type - a int.
      r1 - a RegExp object.
      r2 - a RegExp object.
  • Method Details

    • print

      public String print(String tab)
      Description copied from class: RegExp
      Returns a String-representation of this regular expression with the specified indentation.
      Overrides:
      print in class RegExp
      Parameters:
      tab - a String that should contain only space characters and that is inserted in front of standard String-representation pf this object.
      Returns:
      a String object.
    • toString

      public String toString()
      Overrides:
      toString in class RegExp