- addAlternative(ProductionPatternAlternative) - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Adds a production pattern alternative.
- addChild(Node) - Method in class net.percederberg.grammatica.parser.Production
-
Adds a child node.
- addElement(ProductionPatternElement) - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Adds a production pattern element to this alternative.
- addElement(ProductionPatternElement, int, int) - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Adds a production pattern element to this alternative.
- addError(ParseException) - Method in exception net.percederberg.grammatica.parser.ParserLogException
-
Adds a parse error to the log.
- addPattern(ProductionPattern) - Method in class net.percederberg.grammatica.parser.Parser
-
Adds a new production pattern to the parser.
- addPattern(ProductionPattern) - Method in class net.percederberg.grammatica.parser.RecursiveDescentParser
-
Adds a new production pattern to the parser.
- addPattern(TokenPattern) - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Adds a new token pattern to the tokenizer.
- addProduction(int, int, int) - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Adds a production to this alternative.
- addToken(int, int, int) - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Adds a token to this alternative.
- addValue(Object) - Method in class net.percederberg.grammatica.parser.Node
-
Adds a computed value to this node.
- addValues(Vector) - Method in class net.percederberg.grammatica.parser.Node
-
Adds a set of computed values to this node.
- addValues(ArrayList) - Method in class net.percederberg.grammatica.parser.Node
-
Adds a set of computed values to this node.
- ANALYSIS_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParseException
-
The analysis error type constant.
- analyze(Node) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Analyzes a parse tree node by traversing all it's child nodes.
- Analyzer - Class in net.percederberg.grammatica.parser
-
A parse tree analyzer.
- Analyzer() - Constructor for class net.percederberg.grammatica.parser.Analyzer
-
- append(boolean) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of a boolean value to the
end of the buffer.
- append(char) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends a character to the end of the buffer.
- append(char[]) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends a character array to the end of the buffer.
- append(char[], int, int) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends a character array to the end of the buffer.
- append(double) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of a double value to the end
of the buffer.
- append(float) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of a float value to the end
of the buffer.
- append(int) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of an int value to the end of
the buffer.
- append(long) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of a long value to the end of
the buffer.
- append(Object) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends the string representation of an object to the end of
the buffer.
- append(String) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends a string to the end of the buffer.
- append(StringBuffer) - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Appends a string buffer to the end of the buffer.
- getAllValues() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the vector with all the computed values for this node.
- getAlternative(int) - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Returns an alternative in this pattern.
- getAlternativeCount() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Returns the number of alternatives in this pattern.
- getAnalyzer() - Method in class net.percederberg.grammatica.parser.Parser
-
Returns the analyzer in use by this parser.
- getChildAt(Node, int) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns a child at the specified position.
- getChildAt(int) - Method in class net.percederberg.grammatica.parser.Node
-
Returns the child node with the specified index.
- getChildAt(int) - Method in class net.percederberg.grammatica.parser.Production
-
Returns the child node with the specified index.
- getChildCount() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the number of child nodes.
- getChildCount() - Method in class net.percederberg.grammatica.parser.Production
-
Returns the number of child nodes.
- getChildValues(Node) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns all the node values for all child nodes.
- getChildWithId(Node, int) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns the first child with the specified id.
- getColumn() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the column number where the error occured.
- getCurrentColumn() - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Returns the current column number.
- getCurrentLine() - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Returns the current line number.
- getDebugInfo() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the token debug info message.
- getDescendantCount() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the number of descendant nodes.
- getDetails() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the additional detailed error information.
- getDetails() - Method in exception net.percederberg.grammatica.parser.ParserCreationException
-
Returns the detailed error information as a string
- getElement(int) - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns an element in this alternative.
- getElementCount() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns the number of elements in this alternative.
- getEndColumn() - Method in class net.percederberg.grammatica.parser.Node
-
The column number of the last character in this node.
- getEndColumn() - Method in class net.percederberg.grammatica.parser.Token
-
The column number of the last character in the token image.
- getEndLine() - Method in class net.percederberg.grammatica.parser.Node
-
The line number of the last character in this node.
- getEndLine() - Method in class net.percederberg.grammatica.parser.Token
-
The line number of the last character in the token image.
- getError(int) - Method in exception net.percederberg.grammatica.parser.ParserLogException
-
Returns a specific error from the log.
- getErrorCount() - Method in exception net.percederberg.grammatica.parser.ParserLogException
-
Returns the number of errors in this log.
- getErrorMessage() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the error message.
- getErrorMessage() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the token error message if the pattern corresponds to
an error token.
- getErrorType() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the error type.
- getErrorType() - Method in exception net.percederberg.grammatica.parser.ParserCreationException
-
Returns the error type.
- getId() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the node type id.
- getId() - Method in class net.percederberg.grammatica.parser.Production
-
Returns the production (pattern) id.
- getId() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Returns the unique production pattern identity value.
- getId() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns the node identity.
- getId() - Method in class net.percederberg.grammatica.parser.Token
-
Returns the token (pattern) id.
- getId() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the unique token pattern identity value.
- getIgnoreMessage() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the token ignore message if the pattern corresponds to
an ignored token.
- getImage() - Method in class net.percederberg.grammatica.parser.Token
-
Returns the token image.
- getInfo() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the additional error information.
- getInfo() - Method in exception net.percederberg.grammatica.parser.ParserCreationException
-
Returns the additional error information.
- getIntValue(Node, int) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns the node integer value at the specified position.
- getLine() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the line number where the error occured.
- getMaxCount() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns the maximum occurence count.
- getMaxElementCount() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns the maximum number of elements needed to satisfy this
alternative.
- getMessage() - Method in exception net.percederberg.grammatica.parser.ParseException
-
Returns the detailed error message.
- getMessage() - Method in exception net.percederberg.grammatica.parser.ParserCreationException
-
Returns the error message.
- getMessage() - Method in exception net.percederberg.grammatica.parser.ParserLogException
-
Returns the detailed error message.
- getMessage() - Method in exception net.percederberg.grammatica.parser.re.RegExpException
-
Returns the exception error message.
- getMinCount() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns the minimum occurence count.
- getMinElementCount() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns the minimum number of elements needed to satisfy this
alternative.
- getName() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the node name.
- getName() - Method in exception net.percederberg.grammatica.parser.ParserCreationException
-
Returns the token or production name.
- getName() - Method in class net.percederberg.grammatica.parser.Production
-
Returns the production node name.
- getName() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Returns the production pattern name.
- getName() - Method in class net.percederberg.grammatica.parser.Token
-
Returns the token node name.
- getName() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the token pattern name.
- getNextToken() - Method in class net.percederberg.grammatica.parser.Token
-
Returns the next token.
- getParent() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the parent node.
- getPattern() - Method in class net.percederberg.grammatica.parser.Production
-
Returns the production pattern for this production.
- getPattern() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns the production pattern containing this alternative.
- getPattern() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns te token pattern.
- getPatternDescription(int) - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Returns a description of the token pattern with the specified
id.
- getPreviousToken() - Method in class net.percederberg.grammatica.parser.Token
-
Returns the previuos token.
- getStartColumn() - Method in class net.percederberg.grammatica.parser.Node
-
The column number of the first character in this node.
- getStartColumn() - Method in class net.percederberg.grammatica.parser.Token
-
The column number of the first character in the token image.
- getStartLine() - Method in class net.percederberg.grammatica.parser.Node
-
The line number of the first character in this node.
- getStartLine() - Method in class net.percederberg.grammatica.parser.Token
-
The line number of the first character in the token image.
- getStringValue(Node, int) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns the node string value at the specified position.
- getTokenizer() - Method in class net.percederberg.grammatica.parser.Parser
-
Returns the tokenizer in use by this parser.
- getType() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns the token pattern type.
- getUseTokenList() - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Checks if the token list feature is used.
- getValue(Node, int) - Method in class net.percederberg.grammatica.parser.Analyzer
-
Returns the node value at the specified position.
- getValue(int) - Method in class net.percederberg.grammatica.parser.Node
-
Returns a computed value of this node, if previously set.
- getValueCount() - Method in class net.percederberg.grammatica.parser.Node
-
Returns the number of computed values associated with this
node.
- ignoreCase - Variable in class net.percederberg.grammatica.parser.Tokenizer
-
The ignore character case flag.
- INFINITE_LOOP_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The infinite loop error type constant.
- INHERENT_AMBIGUITY_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The inherent ambiguity error type constant.
- INTERNAL_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParseException
-
The internal error type constant.
- INTERNAL_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The internal error type constant.
- INVALID_PARSER_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The invalid parser error type constant.
- INVALID_PRODUCTION_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The invalid production error type constant.
- INVALID_REPEAT_COUNT - Static variable in exception net.percederberg.grammatica.parser.re.RegExpException
-
The invalid repeat count error constant.
- INVALID_TOKEN_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParseException
-
The invalid token error type constant.
- INVALID_TOKEN_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParserCreationException
-
The invalid token error type constant.
- IO_ERROR - Static variable in exception net.percederberg.grammatica.parser.ParseException
-
The I/O error type constant.
- isCaseInsensitive() - Method in class net.percederberg.grammatica.parser.re.Matcher
-
Checks if this matcher compares in case-insensitive mode.
- isError() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Checks if the pattern corresponds to an error token.
- isIgnore() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Checks if the pattern corresponds to an ignored token.
- isLeftRecursive() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Checks if this pattern is recursive on the left-hand side.
- isLeftRecursive() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Checks if this alternative is recursive on the left-hand side.
- isMatch(Token) - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Checks if a specific token matches this element.
- isMatchingEmpty() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Checks if this pattern would match an empty stream of tokens.
- isMatchingEmpty() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Checks if this alternative would match an empty stream of
tokens.
- isProduction() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns true if this element represents a production.
- isRightRecursive() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Checks if this pattern is recursive on the right-hand side.
- isRightRecursive() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Checks if this alternative is recursive on the right-hand side.
- isSyntetic() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
- isSynthetic() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Checks if the synthetic production flag is set.
- isToken() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns true if this element represents a token.
- read(int) - Method in class net.percederberg.grammatica.parser.ReaderBuffer
-
Reads the specified number of characters from the current
position.
- ReaderBuffer - Class in net.percederberg.grammatica.parser
-
A character buffer that automatically reads from an input source
stream when needed.
- ReaderBuffer(Reader) - Constructor for class net.percederberg.grammatica.parser.ReaderBuffer
-
Creates a new tokenizer character buffer.
- RecursiveDescentParser - Class in net.percederberg.grammatica.parser
-
A recursive descent parser.
- RecursiveDescentParser(Reader) - Constructor for class net.percederberg.grammatica.parser.RecursiveDescentParser
-
Creates a new parser.
- RecursiveDescentParser(Reader, Analyzer) - Constructor for class net.percederberg.grammatica.parser.RecursiveDescentParser
-
Creates a new parser.
- RecursiveDescentParser(Tokenizer) - Constructor for class net.percederberg.grammatica.parser.RecursiveDescentParser
-
Creates a new parser.
- RecursiveDescentParser(Tokenizer, Analyzer) - Constructor for class net.percederberg.grammatica.parser.RecursiveDescentParser
-
Creates a new parser.
- RegExp - Class in net.percederberg.grammatica.parser.re
-
A regular expression.
- RegExp(String) - Constructor for class net.percederberg.grammatica.parser.re.RegExp
-
Creates a new case-sensitive regular expression.
- RegExp(String, boolean) - Constructor for class net.percederberg.grammatica.parser.re.RegExp
-
Creates a new regular expression.
- REGEXP_TYPE - Static variable in class net.percederberg.grammatica.parser.TokenPattern
-
The regular expression pattern type.
- RegExpException - Exception in net.percederberg.grammatica.parser.re
-
A regular expression exception.
- RegExpException(int, int, String) - Constructor for exception net.percederberg.grammatica.parser.re.RegExpException
-
Creates a new regular expression exception.
- removeAllValues() - Method in class net.percederberg.grammatica.parser.Node
-
Removes all computed values stored in this node.
- reset() - Method in class net.percederberg.grammatica.parser.Analyzer
-
Resets this analyzer when the parser is reset for another
input stream.
- reset(Reader) - Method in class net.percederberg.grammatica.parser.Parser
-
Resets this parser for usage with another input stream.
- reset(Reader, Analyzer) - Method in class net.percederberg.grammatica.parser.Parser
-
Resets this parser for usage with another input stream.
- reset() - Method in class net.percederberg.grammatica.parser.re.Matcher
-
Resets the information about the last match.
- reset(String) - Method in class net.percederberg.grammatica.parser.re.Matcher
-
Resets the matcher for use with a new input string.
- reset(ReaderBuffer) - Method in class net.percederberg.grammatica.parser.re.Matcher
-
Resets the matcher for use with a new look-ahead character
input buffer.
- reset(Reader) - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Resets this tokenizer for usage with another input stream.
- Token - Class in net.percederberg.grammatica.parser
-
A token node.
- Token(TokenPattern, String, int, int) - Constructor for class net.percederberg.grammatica.parser.Token
-
Creates a new token.
- Tokenizer - Class in net.percederberg.grammatica.parser
-
A character stream tokenizer.
- Tokenizer(Reader) - Constructor for class net.percederberg.grammatica.parser.Tokenizer
-
Creates a new case-sensitive tokenizer for the specified input
stream.
- Tokenizer(Reader, boolean) - Constructor for class net.percederberg.grammatica.parser.Tokenizer
-
Creates a new tokenizer for the specified input stream.
- TokenPattern - Class in net.percederberg.grammatica.parser
-
A token pattern.
- TokenPattern(int, String, int, String) - Constructor for class net.percederberg.grammatica.parser.TokenPattern
-
Creates a new token pattern.
- toShortString() - Method in class net.percederberg.grammatica.parser.Token
-
Returns a short string representation of this token.
- toShortString() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns a short string representation of this object.
- toString() - Method in class net.percederberg.grammatica.parser.Parser
-
Returns a string representation of this parser.
- toString() - Method in class net.percederberg.grammatica.parser.Production
-
Returns a string representation of this production.
- toString() - Method in class net.percederberg.grammatica.parser.ProductionPattern
-
Returns a string representation of this object.
- toString() - Method in class net.percederberg.grammatica.parser.ProductionPatternAlternative
-
Returns a string representation of this object.
- toString() - Method in class net.percederberg.grammatica.parser.ProductionPatternElement
-
Returns a string representation of this object.
- toString() - Method in class net.percederberg.grammatica.parser.re.CharBuffer
-
Deprecated.
Returns a string containing all character in this buffer.
- toString() - Method in class net.percederberg.grammatica.parser.re.Matcher
-
Returns the latest matched string.
- toString() - Method in class net.percederberg.grammatica.parser.re.RegExp
-
Returns a string representation of the regular expression.
- toString() - Method in class net.percederberg.grammatica.parser.ReaderBuffer
-
Returns the current content of the buffer as a string.
- toString() - Method in class net.percederberg.grammatica.parser.Token
-
Returns a detailed string representation of this token.
- toString() - Method in class net.percederberg.grammatica.parser.Tokenizer
-
Returns a string representation of this object.
- toString() - Method in class net.percederberg.grammatica.parser.TokenPattern
-
Returns a detailed string representation of this object.