| java.lang.Object org.javacc.parser.Expansion org.javacc.parser.RegularExpression
All known Subclasses: org.javacc.parser.RChoice, org.javacc.parser.RZeroOrOne, org.javacc.parser.RZeroOrMore, org.javacc.parser.RJustName, org.javacc.parser.RCharacterList, org.javacc.parser.RRepetitionRange, org.javacc.parser.ROneOrMore, org.javacc.parser.REndOfFile, org.javacc.parser.RSequence,
RegularExpression | abstract public class RegularExpression extends Expansion (Code) | | Describes regular expressions.
|
Field Summary | |
public String | label The label of the regular expression (if any). | public java.util.Vector | lhsTokens The LHS to which the token value of the regular expression
is assigned. | int | ordinal The ordinal value assigned to the regular expression. | public boolean | private_rexp This flag is set if the regular expression has a label prefixed
with the # symbol - this indicates that the purpose of the regular
expression is solely for defining other regular expressions. | public Token | rhsToken We now allow qualified access to token members. | public TokenProduction | tpContext If this is a top-level regular expression (nested directly
within a TokenProduction), then this field point to that
TokenProduction object. | int | walkStatus The following variable is used to maintain state information for the
loop determination algorithm: It is initialized to 0, and
set to -1 if this node has been visited in a pre-order walk, and then
it is set to 1 if the pre-order walk of the whole graph from this
node has been traversed. |
label | public String label(Code) | | The label of the regular expression (if any). If no label is
present, this is set to "".
|
lhsTokens | public java.util.Vector lhsTokens(Code) | | The LHS to which the token value of the regular expression
is assigned. In case there is no LHS, then the vector
remains empty.
|
ordinal | int ordinal(Code) | | The ordinal value assigned to the regular expression. It is
used for internal processing and passing information between
the parser and the lexical analyzer.
|
private_rexp | public boolean private_rexp(Code) | | This flag is set if the regular expression has a label prefixed
with the # symbol - this indicates that the purpose of the regular
expression is solely for defining other regular expressions.
|
rhsToken | public Token rhsToken(Code) | | We now allow qualified access to token members. Store it here.
|
tpContext | public TokenProduction tpContext(Code) | | If this is a top-level regular expression (nested directly
within a TokenProduction), then this field point to that
TokenProduction object.
|
walkStatus | int walkStatus(Code) | | The following variable is used to maintain state information for the
loop determination algorithm: It is initialized to 0, and
set to -1 if this node has been visited in a pre-order walk, and then
it is set to 1 if the pre-order walk of the whole graph from this
node has been traversed. i.e., -1 indicates partially processed,
and 1 indicates fully processed.
|
CanMatchAnyChar | public boolean CanMatchAnyChar()(Code) | | |
GenerateNfa | abstract public Nfa GenerateNfa(boolean ignoreCase)(Code) | | |
|
|