Package jflex.core

Class RegExp2


  • public class RegExp2
    extends RegExp
    Regular expression with two children (e.g. a | b)
    Version:
    JFlex 1.8.1
    Author:
    Gerwin Klein
    • 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 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.