Uses of Class
jflex.core.RegExp
-
Packages that use RegExp Package Description jflex.core -
-
Uses of RegExp in jflex.core
Subclasses of RegExp in jflex.core Modifier and Type Class Description classRegExp1Stores a regular expression from the rules section of a JFlex specification.classRegExp2Regular expression with two children (e.g.Fields in jflex.core declared as RegExp Modifier and Type Field Description (package private) RegExpRegExp2. r1(package private) RegExpRegExp2. r2Fields in jflex.core with type parameters of type RegExp Modifier and Type Field Description private java.util.List<RegExp>RegExps. lookthe lookahead expressionprivate java.util.Map<java.lang.String,RegExp>Macros. macrosMaps names of macros to their definitionprivate java.util.List<RegExp>RegExps. regExpsthe regexpMethods in jflex.core that return RegExp Modifier and Type Method Description static RegExpRegExp. anyChar()Returns a regexp that matches any character:[^]private RegExpMacros. expandMacro(java.lang.String name, RegExp definition)Expands the specified macro by replacing each macro usage with the stored definition.RegExpRegExp. expandPreClasses(java.util.Map<java.lang.Integer,IntCharSet> cache, CharClasses cl, boolean caseless)Expand pre-defined character classes into primitive IntCharSet classes.RegExpMacros. getDefinition(java.lang.String name)Fetches the definition of the macro with the specified name,RegExpRegExps. getLookAhead(int num)getLookAhead.RegExpRegExps. getRegExp(int num)getRegExp.private RegExpLexParse.CUP$LexParse$actions. makeNL()private RegExpLexParse.CUP$LexParse$actions. makeRepeat(RegExp r, int n1, int n2, int line, int col)RegExpRegExp. normaliseCCLs(java.io.File f, int line)Normalise the regular expression to eliminate compound character class expression (compute their content).RegExpRegExp. normaliseMacros(Macros m)Normalise the regular expression to eliminate macro use (expand them).private RegExpLexParse.CUP$LexParse$actions. primClass(int content)private RegExpLexParse.CUP$LexParse$actions. primClass(int start, int end)private RegExpLexParse.CUP$LexParse$actions. primClass(IntCharSet set)RegExpRegExp. resolveTilde()Recursively convert tilde (upto) expressions into negation and star.RegExpRegExp. rev()Creates a new regexp that matches the reverse text of this one.Methods in jflex.core with parameters of type RegExp Modifier and Type Method Description static RegExp1RegExp. checkPrimClass(RegExp r)Confirms that the parameter is a RegExp1 of type sym.PRIMCLASS.private RegExpMacros. expandMacro(java.lang.String name, RegExp definition)Expands the specified macro by replacing each macro usage with the stored definition.booleanMacros. insert(java.lang.String name, RegExp definition)Stores a new macro and its definition.intRegExps. insert(int line, java.util.List<java.lang.Integer> stateList, RegExp regExp, Action action, java.lang.Boolean isBOL, RegExp lookAhead)insert.private voidNFA. insertCCLNFA(RegExp regExp, int start, int end)Constructs a two state NFA for char class regexps, such that the NFA has exactly one start state, exactly one end state, no transitions leading out of the end state, no transitions leading into the start state.private voidNFA. insertLookAheadChoices(int baseEnd, Action a, RegExp lookAhead)Insert NFAs for the (finitely many) fixed length lookahead choices.IntPairNFA. insertNFA(RegExp regExp)Constructs an NFA for regExp such that the NFA hasprivate booleanLexParse.CUP$LexParse$actions. isDotOrNewlinePattern(RegExp r1, RegExp r2)static booleanSemCheck. isFiniteChoice(RegExp re)Returns true iff the expression is a finite choice of fixed length expressions.private booleanLexParse.CUP$LexParse$actions. isNewline(RegExp r)static intSemCheck. length(RegExp re)Returns length if expression has fixed length, -1 otherwise.private RegExpLexParse.CUP$LexParse$actions. makeRepeat(RegExp r, int n1, int n2, int line, int col)static booleanSemCheck. maybeEmtpy(RegExp re)Checks if the expression potentially matches the empty string.static IntCharSetRegExp. performClassOp(int op, IntCharSet l, IntCharSet r, RegExp ctxt)Performs the given set operation on the twoIntCharSetparameters.Constructors in jflex.core with parameters of type RegExp Constructor Description RegExp2(int type, RegExp r1, RegExp r2)Constructor for RegExp2.RegExpException(RegExp e)Creates a new RegExpException for the specified regular expression.
-