Package jflex

Class RegExp2


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

      Fields 
      Modifier and Type Field Description
      (package private) RegExp r1  
      (package private) RegExp r2  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegExp2​(int type, RegExp r1, RegExp r2)
      Constructor for RegExp2.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String print​(java.lang.String tab)
      Returns a String-representation of this regular expression with the specified indentation.
      java.lang.String toString()
      toString.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • print

        public java.lang.String print​(java.lang.String tab)
        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 java.lang.String toString()
        toString.
        Overrides:
        toString in class RegExp
        Returns:
        a String object.