A B C D E F G H I J K L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- a - Variable in class org.jparsec.functors.Pair
-
Deprecated.
- AAND - org.jparsec.examples.java.ast.expression.Operator
- ABSTRACT - org.jparsec.examples.java.ast.statement.SystemModifier
- add(int) - Method in class org.jparsec.internal.util.IntList
-
Adds
i
into the array. - add(String) - Method in class org.jparsec.Operators.Suite
- add(String) - Method in class org.jparsec.Operators.Suites
-
Scans the list of suites by adding
v
to the first suite that claims it as a prefix. - addChild(String, int) - Method in class org.jparsec.TreeNode
- ADIV - org.jparsec.examples.java.ast.expression.Operator
- adjacent(String) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- adjacent(Parser<List<Token>>, Parser<?>) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- alias - Variable in class org.jparsec.examples.sql.ast.AliasedRelation
- alias - Variable in class org.jparsec.examples.sql.ast.Projection
- alias(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- ALIAS - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- aliasable(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- AliasedRelation - Class in org.jparsec.examples.sql.ast
-
An aliased relation.
- AliasedRelation(Relation, String) - Constructor for class org.jparsec.examples.sql.ast.AliasedRelation
- all - Variable in class org.jparsec.examples.sql.ast.UnionRelation
- ALSHIFT - org.jparsec.examples.java.ast.expression.Operator
- alt(Parser<?>...) - Static method in class org.jparsec.Parsers
-
Allows the overloads of "or()" to call the varargs version of "or" with no ambiguity.
- alternative - Variable in class org.jparsec.examples.java.ast.expression.ConditionalExpression
- alternative(Parser<Rule>) - Static method in class org.jparsec.examples.bnf.parser.RuleParser
- alternatives - Variable in class org.jparsec.examples.bnf.ast.AltRule
- AltRule - Class in org.jparsec.examples.bnf.ast
-
Represents a rule with a bunch of alternatives.
- AltRule(List<Rule>) - Constructor for class org.jparsec.examples.bnf.ast.AltRule
- always() - Static method in class org.jparsec.Parsers
-
Parser
that always succeeds. - ALWAYS - Static variable in class org.jparsec.Parsers
- ALWAYS - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that always returns true. - ALWAYS - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
that always matches with match length0
. - AMINUS - org.jparsec.examples.java.ast.expression.Operator
- AMOD - org.jparsec.examples.java.ast.expression.Operator
- among(String) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is equal to any character inchars
. - among(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the current character in the input is equal to any character inchars
, in which case1
is returned as match length. - among(String) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes the current character if it equals to any character in
chars
. - among(String, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Patterns.among(chars).toScanner(name)
. - AMUL - org.jparsec.examples.java.ast.expression.Operator
- analyzeIndentations(List<Token>, Object) - Method in class org.jparsec.Indentation
-
Analyzes indentation by looking at the first token after each
lf
and insertingindent
andoutdent
tokens properly. - and(CharPredicate...) - Static method in class org.jparsec.pattern.CharPredicates
- and(CharPredicate, CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
- and(Pattern...) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that matches if all ofpatterns
matches, in which case, the maximum match length is returned. - AND - org.jparsec.examples.java.ast.expression.Operator
- AND - org.jparsec.examples.sql.ast.Op
- annotation(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- Annotation - Class in org.jparsec.examples.java.ast.statement
-
Represents the use of an annotation.
- Annotation(TypeLiteral, List<Annotation.Element>) - Constructor for class org.jparsec.examples.java.ast.statement.Annotation
- Annotation.Element - Class in org.jparsec.examples.java.ast.statement
- annotationDef(Parser<Modifier>, Parser<Member>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- AnnotationDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents an annotation definition.
- AnnotationDef(List<Modifier>, String, DefBody) - Constructor for class org.jparsec.examples.java.ast.declaration.AnnotationDef
- AnotherType() - Constructor for class org.jparsec.util.ObjectTester.AnotherType
- ANY_CHAR - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
that matches any character and only mismatches for an empty string. - ANY_CHAR - Static variable in class org.jparsec.Scanners
-
Matches any character in the input.
- ANY_TOKEN - Static variable in class org.jparsec.Parsers
-
A
Parser
that consumes a token. - AOR - org.jparsec.examples.java.ast.expression.Operator
- APLUS - org.jparsec.examples.java.ast.expression.Operator
- apply(A, B) - Method in interface org.jparsec.functors.Map2
-
Deprecated.
- apply(From) - Method in interface org.jparsec.functors.Map
-
Deprecated.
- apply(ParseContext) - Method in class org.jparsec.BestParser
- apply(ParseContext) - Method in class org.jparsec.DelimitedParser
- apply(ParseContext) - Method in class org.jparsec.EmptyListParser
- apply(ParseContext) - Method in class org.jparsec.NestableBlockCommentScanner
- apply(ParseContext) - Method in class org.jparsec.Parser
- apply(ParseContext) - Method in class org.jparsec.ReluctantBetweenParser
-
Deprecated.
- apply(ParseContext) - Method in class org.jparsec.RepeatAtLeastParser
- apply(ParseContext) - Method in class org.jparsec.RepeatTimesParser
- apply(ParseContext) - Method in class org.jparsec.SkipAtLeastParser
- apply(ParseContext) - Method in class org.jparsec.SkipTimesParser
- applyAsDelimiter(Parser<?>) - Method in class org.jparsec.ParseContext
-
Runs
parser
with error recording suppressed. - applyForBestFit(int, ParseContext, Object, int, int, TreeNode) - Method in class org.jparsec.BestParser
- applyInfixOperators(T, List<? extends Function<? super T, ? extends T>>) - Static method in class org.jparsec.Parser
- applyInfixrOperators(T, List<Parser.Rhs<T>>) - Static method in class org.jparsec.Parser
- applyMany(ParseContext) - Method in class org.jparsec.SkipAtLeastParser
- applyMany(ParseContext, Collection<T>) - Method in class org.jparsec.RepeatAtLeastParser
- applyNested(Parser<?>, ParseContext) - Method in class org.jparsec.ParseContext
- applyNewNode(Parser<?>, String) - Method in class org.jparsec.ParseContext
-
Applies
parser
as a new tree node withname
, and if fails, reports "expecting $name". - applyPostfixOperators(T, Iterable<? extends Function<? super T, ? extends T>>) - Static method in class org.jparsec.Parser
- applyPrefixOperators(List<? extends Function<? super T, ? extends T>>, T) - Static method in class org.jparsec.Parser
- applyWithExceptionWrapped(Parser<?>) - Method in class org.jparsec.ScannerState
- args - Variable in class org.jparsec.examples.java.ast.statement.SuperCallStatement
- args - Variable in class org.jparsec.examples.java.ast.statement.ThisCallStatement
- args - Variable in class org.jparsec.examples.sql.ast.FunctionExpression
- argumentList(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- arguments - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef.Value
- arguments - Variable in class org.jparsec.examples.java.ast.expression.MethodCallExpression
- arguments - Variable in class org.jparsec.examples.java.ast.expression.NewExpression
- arguments - Variable in class org.jparsec.examples.java.ast.type.SimpleTypeLiteral
- arithmetic(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- array - Variable in class org.jparsec.examples.java.ast.expression.ArraySubscriptExpression
- array(Parser<?>...) - Static method in class org.jparsec.Parsers
-
A
Parser
that sequentially runsparsers
one by one and collects the return values in an array. - ARRAY_LIST_FACTORY - Static variable in class org.jparsec.ListFactory
- ARRAY_OF - Static variable in class org.jparsec.examples.java.parser.TypeLiteralParser
- ARRAY_TYPE_LITERAL - Static variable in class org.jparsec.examples.java.parser.TypeLiteralParser
- arrayInitializer(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- ArrayInitializer - Class in org.jparsec.examples.java.ast.expression
-
Represents array initializer used in variable definition.
- ArrayInitializer(List<Expression>) - Constructor for class org.jparsec.examples.java.ast.expression.ArrayInitializer
- arrayInitializerOrRegularExpression(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- arrayList() - Static method in class org.jparsec.internal.util.Lists
-
Returns a new
ArrayList
. - arrayList(int) - Static method in class org.jparsec.internal.util.Lists
-
Returns a new
ArrayList
with enough capacity to holdexpectedElements
. - arrayListFactory() - Static method in class org.jparsec.ListFactory
-
Returns a
ListFactory
that creates an emptyArrayList
. - arrayListFactoryWithFirstElement(T) - Static method in class org.jparsec.ListFactory
- ArraySubscriptExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents an "array[i]" expression.
- ArraySubscriptExpression(Expression, Expression) - Constructor for class org.jparsec.examples.java.ast.expression.ArraySubscriptExpression
- ArrayTypeLiteral - Class in org.jparsec.examples.java.ast.type
-
Represents an array type literal.
- ArrayTypeLiteral(TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.type.ArrayTypeLiteral
- ARSHIFT - org.jparsec.examples.java.ast.expression.Operator
- ascending - Variable in class org.jparsec.examples.sql.ast.OrderBy.Item
- asDelimiter() - Method in class org.jparsec.Parser
-
As a delimiter, the parser's error is considered lenient and will only be reported if no other meaningful error is encountered.
- asOptional() - Method in class org.jparsec.Parser
-
p.asOptional()
is equivalent top?
in EBNF. - assertEqual(Object, Object...) - Static method in class org.jparsec.util.ObjectTester
- assertNotEqual(Object, Object...) - Static method in class org.jparsec.util.ObjectTester
- assertStatement(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- AssertStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents an "assert" statement.
- AssertStatement(Expression, Expression) - Constructor for class org.jparsec.examples.java.ast.statement.AssertStatement
- ASSIGNMENT - org.jparsec.examples.java.ast.expression.Operator
- associativity - Variable in class org.jparsec.OperatorTable.Operator
- Associativity() - Constructor for enum org.jparsec.OperatorTable.Associativity
- at - Variable in class org.jparsec.ParseContext
-
The current position of the input.
- atLeast(int) - Method in class org.jparsec.Parser
- atLeast(int) - Method in class org.jparsec.pattern.Pattern
-
Returns
Pattern
object that matches this pattern for at leastmin
times. - atLeast(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input starts withmin
or more characters and all satisfypredicate
. - atMost(int) - Method in class org.jparsec.pattern.Pattern
-
Returns
Pattern
object that matches this pattern for up tomax
times. - atMost(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
- ATOM - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- atomic() - Method in class org.jparsec.Parser
-
A
Parser
that undoes any partial match ifthis
fails. - AXOR - org.jparsec.examples.java.ast.expression.Operator
B
- b - Variable in class org.jparsec.functors.Pair
-
Deprecated.
- beginIndex - Variable in class org.jparsec.ParseTree
- beginIndex - Variable in class org.jparsec.TreeNode
- BestParser<T> - Class in org.jparsec
- BestParser(Parser<? extends T>[], IntOrder) - Constructor for class org.jparsec.BestParser
- between - Variable in class org.jparsec.examples.sql.ast.BetweenExpression
- between - Variable in class org.jparsec.ReluctantBetweenParser
-
Deprecated.
- between(Parser<?>, Parser<?>) - Method in class org.jparsec.Parser
- between(Parser<?>, Parser<T>, Parser<?>) - Static method in class org.jparsec.Parsers
-
Equivalent to
Parser.between(Parser, Parser)
. - between(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- BetweenExpression - Class in org.jparsec.examples.sql.ast
-
Expression like "expr between a and b".
- BetweenExpression(Expression, boolean, Expression, Expression) - Constructor for class org.jparsec.examples.sql.ast.BetweenExpression
- binary(String, Op) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- binary(Operator) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- Binary<T> - Interface in org.jparsec.functors
-
Deprecated.Use
BinaryOperator
instead. - BinaryExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents binary expression such as "a + b".
- BinaryExpression - Class in org.jparsec.examples.sql.ast
-
An expression of binary operator.
- BinaryExpression(Expression, Operator, Expression) - Constructor for class org.jparsec.examples.java.ast.expression.BinaryExpression
- BinaryExpression(Expression, Op, Expression) - Constructor for class org.jparsec.examples.sql.ast.BinaryExpression
- BinaryRelationalExpression - Class in org.jparsec.examples.sql.ast
-
An expression like "expr in (select ...)".
- BinaryRelationalExpression(Expression, Op, Relation) - Constructor for class org.jparsec.examples.sql.ast.BinaryRelationalExpression
- binarySearch(IntList, int) - Static method in class org.jparsec.SourceLocator
-
Uses binary search to look up the index of the first element in
ascendingInts
that's greater than or equal tovalue
. - BITWISE_AND - org.jparsec.examples.java.ast.expression.Operator
- BITWISE_NOT - org.jparsec.examples.java.ast.expression.Operator
- BITWISE_OR - org.jparsec.examples.java.ast.expression.Operator
- BITWISE_XOR - org.jparsec.examples.java.ast.expression.Operator
- block - Variable in class org.jparsec.examples.java.ast.declaration.ClassInitializerDef
- block - Variable in class org.jparsec.examples.java.ast.statement.SynchronizedBlockStatement
- blockComment(String, String) - Static method in class org.jparsec.Scanners
-
A scanner for non-nested block comment that starts with
begin
and ends withend
. - blockComment(String, String, Pattern) - Static method in class org.jparsec.Scanners
-
A scanner for a non-nestable block comment that starts with
begin
and ends withend
. - blockComment(Parser<Void>, Parser<Void>, Parser<?>) - Static method in class org.jparsec.Scanners
-
A scanner for a non-nestable block comment that starts with
begin
and ends withend
. - blockStatement(Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- BlockStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a block.
- BlockStatement(List<Statement>) - Constructor for class org.jparsec.examples.java.ast.statement.BlockStatement
- body - Variable in class org.jparsec.examples.java.ast.declaration.AnnotationDef
- body - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- body - Variable in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- body - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef.Value
- body - Variable in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- body - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- body - Variable in class org.jparsec.examples.java.ast.expression.LambdaExpression
- body - Variable in class org.jparsec.examples.java.ast.statement.TryStatement.CatchBlock
- body(Parser<Member>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- BOOLEAN_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- BooleanLiteral - Class in org.jparsec.examples.java.ast.expression
-
"true" or "false".
- BooleanLiteral(boolean) - Constructor for class org.jparsec.examples.java.ast.expression.BooleanLiteral
- bound - Variable in class org.jparsec.examples.java.ast.declaration.TypeParameterDef
- bound - Variable in class org.jparsec.examples.java.ast.type.LowerBoundWildcard
- bound - Variable in class org.jparsec.examples.java.ast.type.UpperBoundWildcard
- BREAK - Static variable in class org.jparsec.examples.java.parser.StatementParser
- BreakStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents "break" statement.
- BreakStatement(String) - Constructor for class org.jparsec.examples.java.ast.statement.BreakStatement
- buf - Variable in class org.jparsec.internal.util.IntList
- build() - Method in class org.jparsec.Terminals.Builder
-
Builds a new
Terminals
instance that recognizes words defined in this builder. - build(Parser<? extends T>) - Method in class org.jparsec.OperatorTable
-
Builds a
Parser
based on information in thisOperatorTable
. - build(Parser, OperatorTable.Associativity, Parser<T>) - Static method in class org.jparsec.OperatorTable
- Builder(Parser<String>) - Constructor for class org.jparsec.Terminals.Builder
- buildErrorParseTree() - Method in class org.jparsec.ParseContext
- buildExpressionParser(Parser<? extends T>, OperatorTable.Operator...) - Static method in class org.jparsec.OperatorTable
-
Builds a
Parser
based on information described byOperatorTable
. - buildParseTree() - Method in class org.jparsec.ParseContext
- by - Variable in class org.jparsec.examples.sql.ast.GroupBy
- by - Variable in class org.jparsec.examples.sql.ast.OrderBy.Item
- byKey(Function<String, T>) - Method in enum org.jparsec.StringCase
C
- c - Variable in class org.jparsec.functors.Tuple3
-
Deprecated.
- calcSize(int, int) - Static method in class org.jparsec.internal.util.IntList
- Calculator - Class in org.jparsec.examples.calculator
-
The main calculator parser.
- Calculator() - Constructor for class org.jparsec.examples.calculator.Calculator
- capacity(int) - Static method in class org.jparsec.internal.util.Lists
- CASE_INSENSITIVE - org.jparsec.StringCase
- CASE_SENSITIVE - org.jparsec.StringCase
- caseInsensitive(String[], String[]) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(Scanners.IDENTIFIER) .caseInsensitiveKeywords(keywords) .build()
instead. - caseInsensitive(Parser<String>, String[], String[]) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(wordScanner) .caseInsensitiveKeywords(keywords) .build()
instead. - caseInsensitive(Parser<String>, String[], String[], Function<String, ?>) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .caseInsensitiveKeywords(keywords) .build()
instead. - caseInsensitiveKeywords(String...) - Method in class org.jparsec.Terminals.Builder
-
Defines case insensitive keywords.
- caseInsensitiveKeywords(Collection<String>) - Method in class org.jparsec.Terminals.Builder
-
Defines case insensitive keywords.
- cases - Variable in class org.jparsec.examples.java.ast.statement.SwitchStatement
- cases - Variable in class org.jparsec.examples.sql.ast.FullCaseExpression
- cases - Variable in class org.jparsec.examples.sql.ast.SimpleCaseExpression
- caseSensitive(String[], String[]) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(Scanners.IDENTIFIER) .keywords(keywords) .build()
instead. - caseSensitive(Parser<String>, String[], String[]) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(wordScanner) .keywords(keywords) .build()
instead. - caseSensitive(Parser<String>, String[], String[], Function<String, ?>) - Static method in class org.jparsec.Terminals
-
Deprecated.Use
operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .keywords(keywords) .build()
instead. - cast() - Method in class org.jparsec.Parser
- CastExpression - Class in org.jparsec.examples.java.ast.expression
-
A cast expression.
- CastExpression(TypeLiteral, Expression) - Constructor for class org.jparsec.examples.java.ast.expression.CastExpression
- castOrExpression(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
-
(foo)
can be a parenthesized expression, or the prefix of a cast expression, depending on whether there's an expression following. - CatchBlock(ParameterDef, BlockStatement) - Constructor for class org.jparsec.examples.java.ast.statement.TryStatement.CatchBlock
- catchBlocks - Variable in class org.jparsec.examples.java.ast.statement.TryStatement
- CHAR_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- character - Variable in class org.jparsec.examples.java.ast.expression.CharLiteral
- characters() - Method in class org.jparsec.ParseContext
-
Reads the characters as input.
- characters() - Method in class org.jparsec.ParserState
- characters() - Method in class org.jparsec.ScannerState
- CharLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents a character literal.
- CharLiteral() - Constructor for class org.jparsec.Terminals.CharLiteral
- CharLiteral(char) - Constructor for class org.jparsec.examples.java.ast.expression.CharLiteral
- CharPredicate - Interface in org.jparsec.pattern
-
Evaluates a char to a boolean.
- CharPredicates - Class in org.jparsec.pattern
-
Provides common
CharPredicate
implementations. - CharPredicates() - Constructor for class org.jparsec.pattern.CharPredicates
- checkArgument(boolean, String) - Static method in class org.jparsec.internal.util.Checks
-
Checks that an argument satisfies requirement.
- checkArgument(boolean, String, Object...) - Static method in class org.jparsec.internal.util.Checks
-
Checks that an argument satisfies requirement.
- checkDup(Iterable<String>, Iterable<String>) - Static method in class org.jparsec.Terminals
- checkIndex(int) - Method in class org.jparsec.internal.util.IntList
- checkMax(int) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
max
isn't negative. - checkMin(int) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
min
isn't negative. - checkMinMax(int, int) - Static method in class org.jparsec.internal.util.Checks
-
Checks that neither
min
ormax
is negative andmin <= max
. - checkNonNegative(int, String) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
n
isn't negative. - checkNotNull(T) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
value
cannot be null. - checkNotNullState(Object, String) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
object
is not null. - checkNotNullState(Object, String, Object...) - Static method in class org.jparsec.internal.util.Checks
-
Checks that
object
is not null. - Checks - Class in org.jparsec.internal.util
-
Common facilities to check precondition, postcondition and invariants.
- Checks() - Constructor for class org.jparsec.internal.util.Checks
- checkState(boolean, String) - Static method in class org.jparsec.internal.util.Checks
-
Checks a certain state.
- checkState(boolean, String, Object...) - Static method in class org.jparsec.internal.util.Checks
-
Checks a certain state.
- children - Variable in class org.jparsec.ParseTree
- CLASS_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- classBody - Variable in class org.jparsec.examples.java.ast.expression.NewExpression
- classDef(Parser<Modifier>, Parser<Member>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- ClassDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a class definition;
- ClassDef(List<Modifier>, String, List<TypeParameterDef>, TypeLiteral, List<TypeLiteral>, DefBody) - Constructor for class org.jparsec.examples.java.ast.declaration.ClassDef
- ClassInitializerDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a static initializer or an instance initializer.
- ClassInitializerDef(boolean, BlockStatement) - Constructor for class org.jparsec.examples.java.ast.declaration.ClassInitializerDef
- ClassLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents "Foo.class".
- ClassLiteral(TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.expression.ClassLiteral
- className - Variable in class org.jparsec.examples.java.ast.expression.ClassLiteral
- closeQuote - Variable in class org.jparsec.NestableBlockCommentScanner
- column - Variable in class org.jparsec.error.Location
-
Deprecated.1-based column number.
- COMMENT - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- commented - Variable in class org.jparsec.NestableBlockCommentScanner
- compare(int, int) - Method in enum org.jparsec.IntOrder
-
Compares two integers.
- compare(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
-
boolean expressions
- compare(Parser<Expression>, String, Op) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
-
utility methods
- compareTo(OperatorTable.Operator) - Method in class org.jparsec.OperatorTable.Operator
-
Higher precedence first.
- condition - Variable in class org.jparsec.examples.java.ast.expression.ConditionalExpression
- condition - Variable in class org.jparsec.examples.java.ast.statement.AssertStatement
- condition - Variable in class org.jparsec.examples.java.ast.statement.DoWhileStatement
- condition - Variable in class org.jparsec.examples.java.ast.statement.ForStatement
- condition - Variable in class org.jparsec.examples.java.ast.statement.IfStatement
- condition - Variable in class org.jparsec.examples.java.ast.statement.SwitchStatement
- condition - Variable in class org.jparsec.examples.java.ast.statement.WhileStatement
- condition - Variable in class org.jparsec.examples.sql.ast.JoinRelation
- condition - Variable in class org.jparsec.examples.sql.ast.SimpleCaseExpression
- condition(Parser<Expression>, Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- conditional(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- ConditionalExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents "?:" expression.
- ConditionalExpression(Expression, Expression, Expression) - Constructor for class org.jparsec.examples.java.ast.expression.ConditionalExpression
- consequence - Variable in class org.jparsec.examples.java.ast.expression.ConditionalExpression
- constant(T) - Static method in class org.jparsec.functors.Maps
-
Deprecated.Use
from -> to
directly. - constant(T) - Static method in class org.jparsec.Parsers
-
A
Parser
that always returnsv
regardless of input. - CONSTRUCTOR_REFERENCE - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- constructorDef(Parser<Modifier>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- ConstructorDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a constructor definition.
- ConstructorDef(List<Modifier>, String, List<ParameterDef>, List<TypeLiteral>, BlockStatement) - Constructor for class org.jparsec.examples.java.ast.declaration.ConstructorDef
- ConstructorReference - Class in org.jparsec.examples.java.ast.expression
- ConstructorReference(Expression) - Constructor for class org.jparsec.examples.java.ast.expression.ConstructorReference
- CONTINUE - Static variable in class org.jparsec.examples.java.parser.StatementParser
- ContinueStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents "continue" statement.
- ContinueStatement(String) - Constructor for class org.jparsec.examples.java.ast.statement.ContinueStatement
- copy(Readable, Appendable) - Static method in class org.jparsec.examples.common.IoUtils
-
Copies all content from
from
toto
. - copyErrorFrom(ParseContext) - Method in class org.jparsec.ParseContext
- CrossJoinRelation - Class in org.jparsec.examples.sql.ast
-
Models cross join.
- CrossJoinRelation(Relation, Relation) - Constructor for class org.jparsec.examples.sql.ast.CrossJoinRelation
- currentErrorAt - Variable in class org.jparsec.ParseContext
- currentErrorIndex - Variable in class org.jparsec.ParseContext
- currentErrorNode - Variable in class org.jparsec.ParseContext
- currentErrorType - Variable in class org.jparsec.ParseContext
D
- d - Variable in class org.jparsec.functors.Tuple4
-
Deprecated.
- DEBUG - org.jparsec.Parser.Mode
-
Debug mode.
- DEC - org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- DEC - org.jparsec.examples.java.ast.expression.Operator
- DEC_AS_LONG - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that interprets the recognized character range as a decimal integer and tokenizes to aLong
. - DEC_INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- DEC_INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaScanners
-
Scanner for a decimal number.
- DEC_INTEGER - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a decimal integer, which starts with a non-zero digit and is followed by 0 or more digits. - DEC_INTEGER - Static variable in class org.jparsec.Scanners
-
Scanner for a decimal number.
- DEC_INTEGER_PATTERN - Static variable in class org.jparsec.examples.java.parser.JavaScanners
-
A
Pattern
object that matches a decimal integer, which is either '0' or starts with a non-zero digit and is followed by 0 or more digits. - DEC_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
-
A tokenizer that parses a decimal integer number (valid patterns are:
1, 10, 123
), and converts the string to aLong
value. - DECIMAL - org.jparsec.Tokens.Tag
-
Decimal number literal
- DECIMAL - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a decimal number that could start with a decimal point or a digit. - DECIMAL - Static variable in class org.jparsec.Scanners
-
Scanner for a decimal number.
- DECIMAL_FRAGMENT - Static variable in class org.jparsec.TokenizerMaps
- DECIMAL_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- DECIMAL_POINT_NUMBER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- DECIMAL_POINT_SCANNER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- decimalLiteral(String) - Static method in class org.jparsec.Tokens
-
Returns a
Tokens.Fragment
tagged asTokens.Tag.DECIMAL
. - DecimalLiteral() - Constructor for class org.jparsec.Terminals.DecimalLiteral
- DecimalPointNumberLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents a decimal point number.
- DecimalPointNumberLiteral(String, NumberType) - Constructor for class org.jparsec.examples.java.ast.expression.DecimalPointNumberLiteral
- declaration - Variable in class org.jparsec.examples.java.ast.declaration.NestedDef
- Declaration - Interface in org.jparsec.examples.java.ast.declaration
-
Represents interface, class, enum or annotation.
- DeclarationParser - Class in org.jparsec.examples.java.parser
-
Parses class, interface, enum, annotation declarations.
- DeclarationParser() - Constructor for class org.jparsec.examples.java.parser.DeclarationParser
- declarations - Variable in class org.jparsec.examples.java.ast.declaration.Program
- defaultCase - Variable in class org.jparsec.examples.java.ast.statement.SwitchStatement
- defaultValue - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- defaultValue - Variable in class org.jparsec.examples.sql.ast.FullCaseExpression
- defaultValue - Variable in class org.jparsec.examples.sql.ast.SimpleCaseExpression
- DefBody - Class in org.jparsec.examples.java.ast.declaration
-
Represents the body of interface, class, or annotation.
- DefBody(List<Member>) - Constructor for class org.jparsec.examples.java.ast.declaration.DefBody
- definition - Variable in class org.jparsec.examples.bnf.ast.RuleDef
- delim - Variable in class org.jparsec.DelimitedParser
- DelimitedParser<T> - Class in org.jparsec
-
Parses a list of pattern started with a delimiter, separated and optionally ended by the delimiter.
- DelimitedParser(Parser<T>, Parser<?>, ListFactory<T>) - Constructor for class org.jparsec.DelimitedParser
- DELIMITING - org.jparsec.ParseContext.ErrorType
-
When the error is mostly lenient (as a delimiter of repetitions for example).
- distinct - Variable in class org.jparsec.examples.sql.ast.Select
- DIV - org.jparsec.examples.java.ast.expression.Operator
- DIV - org.jparsec.examples.sql.ast.Op
- DIV - Static variable in class org.jparsec.examples.calculator.Calculator
- DOUBLE - org.jparsec.examples.java.ast.expression.NumberType
- DOUBLE_QUOTE_STRING - Static variable in class org.jparsec.Scanners
-
Scanner with a pattern for double quoted string literal.
- DOUBLE_QUOTE_STRING - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that recognizes a string literal quoted by double quote character ("
) and tokenizes to aString
. - DOUBLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.StringLiteral
-
A tokenizer that parses double quoted string literal (escaped by
'\'
), and transforms the quoted content by applying escape characters. - DoubleExpression - Class in org.jparsec.examples.statement.ast
- DoubleExpression(String, String) - Constructor for class org.jparsec.examples.statement.ast.DoubleExpression
- doWhileStatement(Parser<Statement>, Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- DoWhileStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the "do ...
- DoWhileStatement(Statement, Expression) - Constructor for class org.jparsec.examples.java.ast.statement.DoWhileStatement
E
- e - Variable in class org.jparsec.functors.Tuple5
-
Deprecated.
- Element(String, Expression) - Constructor for class org.jparsec.examples.java.ast.statement.Annotation.Element
- ELEMENT_TYPE_LITERAL - Static variable in class org.jparsec.examples.java.parser.TypeLiteralParser
- elements - Variable in class org.jparsec.examples.java.ast.statement.Annotation
- elementType - Variable in class org.jparsec.examples.java.ast.expression.NewArrayExpression
- elementType - Variable in class org.jparsec.examples.java.ast.type.ArrayTypeLiteral
- elementTypeLiteral() - Static method in class org.jparsec.examples.java.parser.TypeLiteralParser
- elseifs - Variable in class org.jparsec.examples.java.ast.statement.IfStatement
- EMPTY_TYPE_ARGUMENT_LIST - Static variable in class org.jparsec.examples.java.parser.TypeLiteralParser
- EmptyListParser<T> - Class in org.jparsec
-
A parser that always returns an empty mutable list.
- EmptyListParser() - Constructor for class org.jparsec.EmptyListParser
- EmptyParseError - Class in org.jparsec
-
Empty implementation of
ParseErrorDetails
for subclasses to override. - EmptyParseError(int, String) - Constructor for class org.jparsec.EmptyParseError
- enableTrace(String) - Method in class org.jparsec.ParseContext
-
Enables parse tree tracing with
rootName
as the name of the root node. - encountered - Variable in class org.jparsec.EmptyParseError
- encountered - Variable in class org.jparsec.ParseContext
- end - Variable in class org.jparsec.ReluctantBetweenParser
-
Deprecated.
- end - Variable in class org.jparsec.ScannerState
- endBy(Parser<?>) - Method in class org.jparsec.Parser
- endBy1(Parser<?>) - Method in class org.jparsec.Parser
- endIndex - Variable in class org.jparsec.ParserState
- endIndex - Variable in class org.jparsec.ParseTree
- endIndex - Variable in class org.jparsec.TreeNode
- ensureCapacity(int) - Method in class org.jparsec.internal.util.IntList
-
Ensures that there is at least
l
capacity. - enumDef(Parser<Expression>, Parser<Member>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- EnumDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents an enum definition.
- EnumDef(List<Modifier>, String, List<TypeLiteral>, List<EnumDef.Value>, List<Member>) - Constructor for class org.jparsec.examples.java.ast.declaration.EnumDef
- EnumDef.Value - Class in org.jparsec.examples.java.ast.declaration
-
Represents an enum value.
- eof(String) - Static method in class org.jparsec.Parsers
-
A
Parser
that succeeds only if EOF is met. - EOF - Static variable in class org.jparsec.ParseContext
- EOF - Static variable in class org.jparsec.Parsers
-
Parser
that succeeds only if EOF is met. - EOF - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches if the input has no character left. - EQ - org.jparsec.examples.java.ast.expression.Operator
- EQ - org.jparsec.examples.sql.ast.Op
- equalFragment(Tokens.Fragment) - Method in class org.jparsec.Tokens.Fragment
- equals(Object) - Method in class org.jparsec.error.Location
-
Deprecated.
- equals(Object) - Method in class org.jparsec.examples.common.ValueObject
- equals(Object) - Method in class org.jparsec.functors.Pair
-
Deprecated.
- equals(Object) - Method in class org.jparsec.functors.Tuple3
-
Deprecated.
- equals(Object) - Method in class org.jparsec.functors.Tuple4
-
Deprecated.
- equals(Object) - Method in class org.jparsec.functors.Tuple5
-
Deprecated.
- equals(Object) - Method in class org.jparsec.Token
- equals(Object) - Method in class org.jparsec.Tokens.Fragment
- equals(Object) - Method in class org.jparsec.Tokens.ScientificNotation
- equals(Object) - Method in class org.jparsec.WithSource
- equals(Object, Object) - Static method in class org.jparsec.internal.util.Objects
-
Compares
o1
ando2
for equality. - equals(Pair<?, ?>) - Method in class org.jparsec.functors.Pair
-
Deprecated.
- equals(Tuple3<?, ?, ?>) - Method in class org.jparsec.functors.Tuple3
-
Deprecated.
- equals(Tuple4<?, ?, ?, ?>) - Method in class org.jparsec.functors.Tuple4
-
Deprecated.
- equals(Tuple5<?, ?, ?, ?, ?>) - Method in class org.jparsec.functors.Tuple5
-
Deprecated.
- equalToken(Token) - Method in class org.jparsec.Token
- error - Variable in exception org.jparsec.error.ParserException
- errorIndex() - Method in class org.jparsec.ParseContext
-
The physical index of the current most relevant error,
0
if none. - ErrorReporter - Class in org.jparsec.error
-
Reports parser errors in human-readable format.
- ErrorReporter() - Constructor for class org.jparsec.error.ErrorReporter
- errors - Variable in class org.jparsec.ParseContext
- errorSuppressed - Variable in class org.jparsec.ParseContext
- ErrorType(boolean) - Constructor for enum org.jparsec.ParseContext.ErrorType
- escape - Variable in class org.jparsec.examples.sql.ast.LikeExpression
- ESCAPED - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that succeeds with match length2
if there are at least 2 characters in the input and the first character is'\'
. - escapedChar(char) - Static method in class org.jparsec.Scanners
- escapedChar(char) - Static method in class org.jparsec.StringLiteralsTranslator
- evaluate(String) - Static method in class org.jparsec.examples.calculator.Calculator
-
Parsers
source
and evaluates to anInteger
. - exceptions - Variable in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- exceptions - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- exists(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- EXISTS - org.jparsec.examples.sql.ast.Op
- expect(String) - Static method in class org.jparsec.Parsers
-
A
Parser
that fails and reports thatname
is logically expected. - expected(Object) - Method in class org.jparsec.ParseContext
- EXPECTING - org.jparsec.ParseContext.ErrorType
-
When
Parser#label()
is called. - exponent - Variable in class org.jparsec.Tokens.ScientificNotation
-
The exponent after the "E".
- expression - Variable in class org.jparsec.examples.java.ast.expression.CastExpression
- expression - Variable in class org.jparsec.examples.java.ast.expression.InstanceOfExpression
- expression - Variable in class org.jparsec.examples.java.ast.expression.PostfixUnaryExpression
- expression - Variable in class org.jparsec.examples.java.ast.expression.PrefixUnaryExpression
- expression - Variable in class org.jparsec.examples.java.ast.statement.ExpressionStatement
- expression - Variable in class org.jparsec.examples.sql.ast.BetweenExpression
- expression - Variable in class org.jparsec.examples.sql.ast.BinaryRelationalExpression
- expression - Variable in class org.jparsec.examples.sql.ast.LikeExpression
- expression - Variable in class org.jparsec.examples.sql.ast.Projection
- expression(Parser<DefBody>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- expression(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- expression(Parser<Expression>, Parser<DefBody>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- expression(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- Expression - Interface in org.jparsec.examples.java.ast.expression
-
Represents any expression.
- Expression - Interface in org.jparsec.examples.sql.ast
-
Any expression
- Expression - Interface in org.jparsec.examples.statement.ast
- expressionList(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ExpressionListStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the comma delimited expression list used in the initializer of a "for" loop.
- ExpressionListStatement(List<Expression>) - Constructor for class org.jparsec.examples.java.ast.statement.ExpressionListStatement
- ExpressionParser - Class in org.jparsec.examples.java.parser
-
Parses java expression.
- ExpressionParser - Class in org.jparsec.examples.sql.parser
-
Parser for expressions.
- ExpressionParser() - Constructor for class org.jparsec.examples.java.parser.ExpressionParser
- ExpressionParser() - Constructor for class org.jparsec.examples.sql.parser.ExpressionParser
- expressions - Variable in class org.jparsec.examples.java.ast.statement.ExpressionListStatement
- expressions - Variable in class org.jparsec.examples.sql.ast.TupleExpression
- ExpressionStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a method call statement.
- ExpressionStatement(Expression) - Constructor for class org.jparsec.examples.java.ast.statement.ExpressionStatement
F
- fail(String) - Method in class org.jparsec.ParseContext
- fail(String) - Static method in class org.jparsec.Parsers
-
A
Parser
that always fails withmessage
. - fails() - Method in class org.jparsec.Parser
- FAILURE - org.jparsec.ParseContext.ErrorType
-
When
Parsers.fail(String)
is called. - fallback(Function<F, T>, Function<? super F, ? extends T>) - Static method in class org.jparsec.Lexicon
-
Returns a
Function
that delegates tofunction
and falls back todefaultFunction
for null return values. - FALSE - Static variable in class org.jparsec.Parsers
- fieldDef(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- FieldDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a field definition.
- FieldDef(List<Modifier>, TypeLiteral, String, Expression) - Constructor for class org.jparsec.examples.java.ast.declaration.FieldDef
- fieldValues - Variable in class org.jparsec.examples.common.ValueObject
- FINAL - org.jparsec.examples.java.ast.statement.SystemModifier
- finallyBlock - Variable in class org.jparsec.examples.java.ast.statement.TryStatement
- FIRST_OF_TWO - Static variable in class org.jparsec.InternalFunctors
- firstOfTwo() - Static method in class org.jparsec.InternalFunctors
- FLOAT - org.jparsec.examples.java.ast.expression.NumberType
- followedBy(Parser<?>) - Method in class org.jparsec.Parser
- foreachStatement(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ForeachStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the enhanced for loop statement.
- ForeachStatement(TypeLiteral, String, Expression, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.ForeachStatement
- forStatement(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ForStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the traditional for loop.
- ForStatement(Statement, Expression, List<Expression>, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.ForStatement
- FRACTION - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a decimal point and one or more digits after it. - fragment(Object) - Static method in class org.jparsec.TokenizerMaps
-
Returns a map that tokenizes the recognized character range to a
Tokens.Fragment
object tagged withtag
. - fragment(Object...) - Static method in class org.jparsec.Terminals
- fragment(String, Object) - Static method in class org.jparsec.Tokens
-
Returns a
Tokens.Fragment
tagged withtag
. - Fragment(String, Object) - Constructor for class org.jparsec.Tokens.Fragment
-
Deprecated.Use
Tokens.fragment()
instead. - freeze(int) - Method in class org.jparsec.TreeNode
-
Freezes the current tree node to make it the latest child of its parent (discarding nodes that have been tacked on after it in the same hierarchy level); and recursively apply to all of its ancestors.
- from - Variable in class org.jparsec.examples.sql.ast.BetweenExpression
- from - Variable in class org.jparsec.examples.sql.ast.Select
- from(Parser<?>, Parser<Void>) - Method in class org.jparsec.Parser
-
A
Parser
that takes as input the tokens returned bytokenizer
delimited bydelim
, and runsthis
to parse the tokens. - from(Parser<? extends Collection<Token>>) - Method in class org.jparsec.Parser
- fromClause(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- fromFragment(Object...) - Static method in class org.jparsec.Terminals
-
Returns a
TokenMap
object that only recognizesTokens.Fragment
token values tagged with one oftags
. - FULL - org.jparsec.examples.sql.ast.JoinType
- FULL_JOIN - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- fullCase(Parser<Expression>, Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- FullCaseExpression - Class in org.jparsec.examples.sql.ast
-
The "
case when cond1 then val1 when cond2 then val2 else def end
" expression. - FullCaseExpression(List<Pair<Expression, Expression>>, Expression) - Constructor for class org.jparsec.examples.sql.ast.FullCaseExpression
- FullExpression - Class in org.jparsec.examples.statement.ast
- FullExpression(IdentExpression, ValueExpression) - Constructor for class org.jparsec.examples.statement.ast.FullExpression
- function - Variable in class org.jparsec.examples.sql.ast.FunctionExpression
- functionCall(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- FunctionExpression - Class in org.jparsec.examples.sql.ast
-
A function call.
- FunctionExpression(QualifiedName, List<Expression>) - Constructor for class org.jparsec.examples.sql.ast.FunctionExpression
G
- GE - org.jparsec.examples.java.ast.expression.Operator
- GE - org.jparsec.examples.sql.ast.Op
- get(int) - Method in class org.jparsec.internal.util.IntList
-
Gets the int value at a index
i
. - getBeginIndex() - Method in class org.jparsec.ParseTree
-
Returns the index in source where this node starts.
- getChildren() - Method in class org.jparsec.ParseTree
-
Returns the immutable list of child nodes that correspond to
labeled
parsers syntactically enclosed inside parent parser. - getColumn() - Method in exception org.jparsec.error.ParserException
-
Returns the column where the error occurred.
- getColumn() - Method in class org.jparsec.SourceLocation
-
Returns the column number of this location.
- getCurrentNode() - Method in interface org.jparsec.ParseContext.ParserTrace
-
Returns the current node, that is being parsed (not necessarily finished).
- getEncountered() - Method in class org.jparsec.EmptyParseError
- getEncountered() - Method in interface org.jparsec.error.ParseErrorDetails
-
Returns the physical input encountered when the error happened.
- getEncountered() - Method in class org.jparsec.ParseContext
- getEndIndex() - Method in class org.jparsec.ParseTree
-
Returns the index in source where this node ends.
- getErrorDetails() - Method in exception org.jparsec.error.ParserException
-
Returns the detailed description of the error, or
null
if none. - getExpected() - Method in class org.jparsec.EmptyParseError
- getExpected() - Method in interface org.jparsec.error.ParseErrorDetails
-
Returns all that are logically expected.
- getFailureMessage() - Method in class org.jparsec.EmptyParseError
- getFailureMessage() - Method in interface org.jparsec.error.ParseErrorDetails
-
Returns the error message incurred by
Parsers.fail(String)
, ornull
if none. - getIndex() - Method in class org.jparsec.EmptyParseError
- getIndex() - Method in interface org.jparsec.error.ParseErrorDetails
-
Returns the 0-based index in the source where the error happened.
- getIndex() - Method in class org.jparsec.ParseContext
-
Returns the current index in the original source.
- getIndex() - Method in class org.jparsec.SourceLocation
-
Returns the 0-based index within the source.
- getInputName(int) - Method in class org.jparsec.ParseContext
-
Returns the string representation of the current input (character or token).
- getInputName(int) - Method in class org.jparsec.ParserState
- getInputName(int) - Method in class org.jparsec.ScannerState
- getLatestChild() - Method in interface org.jparsec.ParseContext.ParserTrace
-
Called by branching parsers, to save the current state of tree, before trying parsers that could modify the tree state.
- getLine() - Method in exception org.jparsec.error.ParserException
-
Returns the line where the error occurred.
- getLine() - Method in class org.jparsec.SourceLocation
-
Returns the line number of this location.
- getLineBreakColumnIndex(int) - Method in class org.jparsec.SourceLocator
-
Gets the 0-based column number of the line break character for line identified by
lineIndex
. - getLineBreakLocation(int) - Method in class org.jparsec.SourceLocator
- getLocation() - Method in exception org.jparsec.error.ParserException
-
Deprecated.Use
ParserException.getLine()
andParserException.getColumn()
instead. - getLocation() - Method in class org.jparsec.SourceLocation
- getModifiersPattern() - Static method in class org.jparsec.pattern.Patterns
- getModuleName() - Method in exception org.jparsec.error.ParserException
-
Deprecated.
- getName() - Method in class org.jparsec.ParseTree
-
Returns the node name, which is specified in
Parser.label(java.lang.String)
. - getParseTree() - Method in exception org.jparsec.error.ParserException
-
Returns the parse tree until the parse error happened, when
parseTree()
was invoked. - getRegularExpressionPattern() - Static method in class org.jparsec.pattern.Patterns
- getReturn(ParseContext) - Method in class org.jparsec.Parser
- getSource() - Method in class org.jparsec.WithSource
-
Returns the underlying source text.
- getToken() - Method in class org.jparsec.ParseContext
-
Returns the current token.
- getToken() - Method in class org.jparsec.ParserState
- getToken() - Method in class org.jparsec.ScannerState
- getTrace() - Method in class org.jparsec.ParseContext
- getUnexpected() - Method in class org.jparsec.EmptyParseError
- getUnexpected() - Method in interface org.jparsec.error.ParseErrorDetails
-
Returns what is logically unexpected, or
null
if none. - getValue() - Method in class org.jparsec.ParseTree
-
Returns the parsed value of this node, or
null
if it's a failed node. - getValue() - Method in class org.jparsec.WithSource
-
Returns the parsed result.
- getValueFields(Class<?>) - Static method in class org.jparsec.examples.common.ValueObject
- groupBy - Variable in class org.jparsec.examples.sql.ast.Select
- GroupBy - Class in org.jparsec.examples.sql.ast
-
"group by" clause.
- GroupBy(List<Expression>, Expression) - Constructor for class org.jparsec.examples.sql.ast.GroupBy
- groupByClause(Parser<Expression>, Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- grow(int) - Method in class org.jparsec.internal.util.IntList
- GT - org.jparsec.examples.java.ast.expression.Operator
- GT - org.jparsec.examples.sql.ast.Op
- GT - org.jparsec.IntOrder
-
An
IntOrder
instance that determines if the first integer is smaller than the second one.
H
- hasAtLeast(int) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input has at leastn
characters left. - hasExact(int) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input has exactlyn
characters left. - hashCode() - Method in class org.jparsec.error.Location
-
Deprecated.
- hashCode() - Method in class org.jparsec.examples.common.ValueObject
- hashCode() - Method in class org.jparsec.functors.Pair
-
Deprecated.
- hashCode() - Method in class org.jparsec.functors.Tuple3
-
Deprecated.
- hashCode() - Method in class org.jparsec.functors.Tuple4
-
Deprecated.
- hashCode() - Method in class org.jparsec.functors.Tuple5
-
Deprecated.
- hashCode() - Method in class org.jparsec.Token
- hashCode() - Method in class org.jparsec.Tokens.Fragment
- hashCode() - Method in class org.jparsec.Tokens.ScientificNotation
- hashCode() - Method in class org.jparsec.WithSource
- hashCode(Object) - Static method in class org.jparsec.internal.util.Objects
-
Gets the has hcode for
obj
. - HASKELL_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for haskell style block comment.
- HASKELL_DELIMITER - Static variable in class org.jparsec.Scanners
-
Scanner for the haskell style delimiter of tokens.
- HASKELL_LINE_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for haskell style line comment.
- having - Variable in class org.jparsec.examples.sql.ast.GroupBy
- havingClause(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- HEX - org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- HEX_AS_LONG - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that interprets the recognized character range as a hexadecimal integer and tokenizes to aLong
. - HEX_INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- HEX_INTEGER - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a hex integer, which starts with a0x
or0X
, and is followed by one or more hex digits. - HEX_INTEGER - Static variable in class org.jparsec.Scanners
-
Scanner for a hexadecimal number.
- HEX_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
-
A tokenizer that parses a hex integer number (valid patterns are:
0x1, 0Xff, 0xFe1
etc.), and converts the string to aLong
value.
I
- IDENT - Static variable in class org.jparsec.examples.bnf.parser.RuleParser
- IDENT - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- identExpr - Variable in class org.jparsec.examples.statement.ast.FullExpression
- IdentExpression - Class in org.jparsec.examples.statement.ast
- IdentExpression(String) - Constructor for class org.jparsec.examples.statement.ast.IdentExpression
- identifier() - Static method in class org.jparsec.Terminals
-
Returns a
Parser
that recognizes identifiers (a.k.a words, variable names etc). - identifier(String) - Static method in class org.jparsec.Tokens
-
Returns a
Tokens.Fragment
tagged asTokens.Tag.IDENTIFIER
. - Identifier - Class in org.jparsec.examples.java.ast.expression
-
Represents a simple name as expression.
- Identifier() - Constructor for class org.jparsec.Terminals.Identifier
- Identifier(String) - Constructor for class org.jparsec.examples.java.ast.expression.Identifier
- IDENTIFIER - org.jparsec.Tokens.Tag
-
Regular identifier
- IDENTIFIER - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- IDENTIFIER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- IDENTIFIER - Static variable in class org.jparsec.Scanners
-
Scanner for a regular identifier, that starts with either an underscore or an alpha character, followed by 0 or more alphanumeric characters.
- IDENTIFIER_FRAGMENT - Static variable in class org.jparsec.TokenizerMaps
- identity() - Static method in class org.jparsec.functors.Maps
-
Deprecated.Use
Function.identity()
instead. - ifelse(Function<? super T, ? extends Parser<? extends R>>, Parser<? extends R>) - Method in class org.jparsec.Parser
- ifelse(Parser<? extends R>, Parser<? extends R>) - Method in class org.jparsec.Parser
- ifelse(Pattern, Pattern) - Method in class org.jparsec.pattern.Pattern
-
Returns
Pattern
object that, if this pattern matches, matches the remaining input againstconsequence
pattern, or otherwise matches againstalternative
pattern. - ifElse(Pattern, Pattern, Pattern) - Static method in class org.jparsec.pattern.Pattern
- ifStatement(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- IfStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents an "if" statement.
- IfStatement(Expression, Statement, List<Pair<Expression, Statement>>, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.IfStatement
- Import - Class in org.jparsec.examples.java.ast.declaration
-
Represents an import statement.
- Import(boolean, QualifiedName, boolean) - Constructor for class org.jparsec.examples.java.ast.declaration.Import
- IMPORT - Static variable in class org.jparsec.examples.java.parser.DeclarationParser
- imports - Variable in class org.jparsec.examples.java.ast.declaration.Program
- in(Object, Object...) - Static method in class org.jparsec.internal.util.Objects
-
Checks whether
obj
is one of the elements ofarray
. - in(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- IN - org.jparsec.examples.sql.ast.Op
- INC - org.jparsec.examples.java.ast.expression.Operator
- incrementer - Variable in class org.jparsec.examples.java.ast.statement.ForStatement
- ind - Variable in class org.jparsec.Token
- indent - Variable in class org.jparsec.Indentation
- indent() - Method in class org.jparsec.Indentation
-
A
Parser
that recognizes the generatedindent
token. - INDENT - org.jparsec.Indentation.Punctuation
- Indentation - Class in org.jparsec
-
Processes indentation based lexical structure according to the Off-side rule.
- Indentation() - Constructor for class org.jparsec.Indentation
-
Creates a
Indentation
object that generates default indent and outdent tokens. - Indentation(Object, Object) - Constructor for class org.jparsec.Indentation
-
Creates an
Indentation
object that usesindent
andoutdent
as the token values for indentation and outdentation. - INDENTATION - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- Indentation.Punctuation - Enum in org.jparsec
- index - Variable in class org.jparsec.EmptyParseError
- index - Variable in class org.jparsec.examples.java.ast.expression.ArraySubscriptExpression
- index - Variable in class org.jparsec.SourceLocation
- index() - Method in class org.jparsec.Token
-
Returns the index of the token in the original source.
- INDEX - Static variable in class org.jparsec.Parsers
-
Deprecated.Use
Parsers.SOURCE_LOCATION
instead. - infixl(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
-
A
Parser
for left-associative infix operator. - infixl(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
-
Adds an infix left-associative binary operator.
- infixn(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
-
A
Parser
that parses non-associative infix operator. - infixn(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
-
Adds an infix non-associative binary operator.
- infixr(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
-
A
Parser
for right-associative infix operator. - infixr(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
-
Adds an infix right-associative binary operator.
- initializer - Variable in class org.jparsec.examples.java.ast.expression.NewArrayExpression
- initializer - Variable in class org.jparsec.examples.java.ast.statement.ForStatement
- initializerDef(Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- INLINE_WHITESPACE - Static variable in class org.jparsec.Indentation
-
A
CharPredicate
that returns true only if the character isn't line feed andCharacter.isWhitespace(char)
returns true. - INLINE_WHITESPACES - Static variable in class org.jparsec.Indentation
-
A
Pattern
object that matches one or more whitespace characters or line continuations, where the line feed character ('\n'
) is escaped by the backslash character ('\'
). - INNER - org.jparsec.examples.sql.ast.JoinType
- INNER_JOIN - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- input - Variable in class org.jparsec.ParserState
- inRelation(Parser<Expression>, Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- instance - Static variable in class org.jparsec.examples.java.ast.expression.NullExpression
- instance - Static variable in class org.jparsec.examples.java.ast.statement.NopStatement
- instance - Static variable in class org.jparsec.examples.sql.ast.NullExpression
- instance() - Static method in class org.jparsec.EmptyListParser
- INSTANCE - Static variable in class org.jparsec.EmptyListParser
- INSTANCE_OF - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- InstanceOfExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents "expr instanceof type".
- InstanceOfExpression(Expression, TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.expression.InstanceOfExpression
- INT - org.jparsec.examples.java.ast.expression.NumberType
- INTEGER - org.jparsec.Tokens.Tag
-
Integral number literal
- INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- INTEGER - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches an integer. - INTEGER - Static variable in class org.jparsec.Scanners
-
Scanner for an integer.
- INTEGER_FRAGMENT - Static variable in class org.jparsec.TokenizerMaps
- INTEGER_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- integerLiteral(String) - Static method in class org.jparsec.Tokens
-
Returns a
Tokens.Fragment
tagged asTokens.Tag.INTEGER
. - IntegerLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents any integral number literal.
- IntegerLiteral() - Constructor for class org.jparsec.Terminals.IntegerLiteral
- IntegerLiteral(IntegerLiteral.Radix, String, NumberType) - Constructor for class org.jparsec.examples.java.ast.expression.IntegerLiteral
- IntegerLiteral.Radix - Enum in org.jparsec.examples.java.ast.expression
- interfaceDef(Parser<Modifier>, Parser<Member>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- InterfaceDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents an interface definition.
- InterfaceDef(List<Modifier>, String, List<TypeParameterDef>, List<TypeLiteral>, DefBody) - Constructor for class org.jparsec.examples.java.ast.declaration.InterfaceDef
- interfaces - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- interfaces - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef
- interfaces - Variable in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- InternalFunctors - Class in org.jparsec
-
Functors used only internally by this package.
- InternalFunctors() - Constructor for class org.jparsec.InternalFunctors
- IntList - Class in org.jparsec.internal.util
-
A simple, efficient and dynamic int list.
- IntList() - Constructor for class org.jparsec.internal.util.IntList
-
Creates an empty
IntList
object. - IntList(int) - Constructor for class org.jparsec.internal.util.IntList
-
Creates an
IntList
object with initial capacity equal tocapacity
. - IntOrder - Enum in org.jparsec
-
Maps two integers to a boolean value.
- IntOrder() - Constructor for enum org.jparsec.IntOrder
- introspectValueFields(Class<?>) - Static method in class org.jparsec.examples.common.ValueObject
- IoUtils - Class in org.jparsec.examples.common
-
Common utilities for working with io.
- IoUtils() - Constructor for class org.jparsec.examples.common.IoUtils
- IS - org.jparsec.examples.sql.ast.Op
- IS_ALPHA - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is an alpha character. - IS_ALPHA_ - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if it is an alpha character or the underscore character_
. - IS_ALPHA_NUMERIC - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if it is an alphanumeric character, or an underscore character. - IS_ALPHA_NUMERIC_ - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if it is an alphanumeric character, or an underscore character. - IS_DIGIT - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is a digit. - IS_HEX_DIGIT - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is a digit or within the range of[a-f]
or[A-F]
. - IS_LETTER - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true ifCharacter.isLetter(char)
returns true. - IS_LOWER_CASE - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true ifCharacter.isLowerCase(char)
returns true. - IS_UPPER_CASE - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true ifCharacter.isUpperCase(char)
returns true. - IS_WHITESPACE - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true ifCharacter.isWhitespace(char)
returns true. - isChar(char) - Method in interface org.jparsec.pattern.CharPredicate
-
Tests whether
c
satisfies the predicate. - isChar(char) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is equal toc
. - isChar(char) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the current character in the input is equal to characterc
, in which case1
is returned as match length. - isChar(char) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes the current character if it is equal to
ch
. - isChar(char, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Scanners.isChar(char)
instead or usePatterns.isChar(ch).toScanner(name)
. - isChar(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the current character in the input satisfiespredicate
, in which case1
is returned as match length. - isChar(CharPredicate) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes the current character if it satisfies the given
CharPredicate
. - isChar(CharPredicate, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Implement
Object.toString()
in theCharPredicate
, or usePatterns.isChar(predicate).toScanner(name)
. - isEof() - Method in class org.jparsec.ParseContext
- isEof() - Method in class org.jparsec.ParserState
- isEof() - Method in class org.jparsec.ScannerState
- isStatic - Variable in class org.jparsec.examples.java.ast.declaration.ClassInitializerDef
- Item(Expression, boolean) - Constructor for class org.jparsec.examples.sql.ast.OrderBy.Item
- items - Variable in class org.jparsec.examples.sql.ast.OrderBy
- iterator() - Method in class org.jparsec.examples.sql.ast.QualifiedName
J
- JAVA_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for c++/java style block comment.
- JAVA_BLOCK_COMMENTED - Static variable in class org.jparsec.Scanners
- JAVA_DELIMITER - Static variable in class org.jparsec.Scanners
-
Scanner for the c++/java style delimiter of tokens.
- JAVA_LINE_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for c++/java style line comment.
- JavaLexer - Class in org.jparsec.examples.java.parser
-
Lexer specific for the Java language rules.
- JavaLexer() - Constructor for class org.jparsec.examples.java.parser.JavaLexer
- JavaScanners - Class in org.jparsec.examples.java.parser
- JavaScanners() - Constructor for class org.jparsec.examples.java.parser.JavaScanners
- join(StringBuilder, String, Iterable<?>) - Static method in class org.jparsec.examples.common.Strings
-
Joins
objects
withdelim
as the delimiter. - join(StringBuilder, String, Iterable<?>) - Static method in class org.jparsec.internal.util.Strings
-
Joins
objects
withdelim
as the delimiter. - join(StringBuilder, String, Object...) - Static method in class org.jparsec.examples.common.Strings
-
Joins
objects
withdelim
as the delimiter. - join(StringBuilder, String, Object[]) - Static method in class org.jparsec.internal.util.Strings
-
Joins
objects
withdelim
as the delimiter. - join(String, Iterable<?>) - Static method in class org.jparsec.examples.common.Strings
-
Joins
objects
withdelim
as the delimiter. - join(String, Object...) - Static method in class org.jparsec.examples.common.Strings
-
Joins
objects
withdelim
as the delimiter. - join(String, Object[]) - Static method in class org.jparsec.internal.util.Strings
-
Joins
objects
withdelim
as the delimiter. - join(Parser<Relation>, Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- joinOn(Parser<JoinType>, Parser<Relation>, Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- JoinRelation - Class in org.jparsec.examples.sql.ast
-
Models a join.
- JoinRelation(Relation, JoinType, Relation, Expression) - Constructor for class org.jparsec.examples.sql.ast.JoinRelation
- joinType - Variable in class org.jparsec.examples.sql.ast.JoinRelation
- joinType(JoinType, String, String) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- JoinType - Enum in org.jparsec.examples.sql.ast
-
The type of a join.
- JoinType() - Constructor for enum org.jparsec.examples.sql.ast.JoinType
K
- keywords - Variable in class org.jparsec.Terminals.Builder
- keywords(String...) - Method in class org.jparsec.Terminals.Builder
-
Defines keywords.
- keywords(Collection<String>) - Method in class org.jparsec.Terminals.Builder
-
Defines keywords.
- Keywords - Class in org.jparsec
-
Helper class for creating lexers and parsers for keywords.
- Keywords() - Constructor for class org.jparsec.Keywords
- KEYWORDS - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
L
- label - Variable in class org.jparsec.examples.java.ast.statement.BreakStatement
- label - Variable in class org.jparsec.examples.java.ast.statement.ContinueStatement
- label(String) - Method in class org.jparsec.Parser
- LABEL - Static variable in class org.jparsec.examples.java.parser.StatementParser
- LabelStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a label statement such as "foo:".
- LabelStatement(String, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.LabelStatement
- lambdaExpression(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- LambdaExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents lambda expressions.
- LambdaExpression(List<LambdaExpression.Parameter>, Statement) - Constructor for class org.jparsec.examples.java.ast.expression.LambdaExpression
- LambdaExpression.Parameter - Class in org.jparsec.examples.java.ast.expression
- LASSOC - org.jparsec.OperatorTable.Associativity
- LAST_OF_FIVE - Static variable in class org.jparsec.InternalFunctors
- LAST_OF_FOUR - Static variable in class org.jparsec.InternalFunctors
- LAST_OF_THREE - Static variable in class org.jparsec.InternalFunctors
- LAST_OF_TWO - Static variable in class org.jparsec.InternalFunctors
- lastOfFive() - Static method in class org.jparsec.InternalFunctors
- lastOfFour() - Static method in class org.jparsec.InternalFunctors
- lastOfThree() - Static method in class org.jparsec.InternalFunctors
- lastOfTwo() - Static method in class org.jparsec.InternalFunctors
- latestChild - Variable in class org.jparsec.TreeNode
- lazy - Variable in class org.jparsec.Parser.Reference
- lazy() - Method in class org.jparsec.Parser.Reference
-
A
Parser
that delegates to the parser object referenced bythis
during parsing time. - LE - org.jparsec.examples.java.ast.expression.Operator
- LE - org.jparsec.examples.sql.ast.Op
- left - Variable in class org.jparsec.examples.java.ast.expression.BinaryExpression
- left - Variable in class org.jparsec.examples.sql.ast.BinaryExpression
- left - Variable in class org.jparsec.examples.sql.ast.CrossJoinRelation
- left - Variable in class org.jparsec.examples.sql.ast.JoinRelation
- left - Variable in class org.jparsec.examples.sql.ast.UnionRelation
- LEFT - org.jparsec.examples.sql.ast.JoinType
- LEFT_JOIN - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- len - Variable in class org.jparsec.internal.util.IntList
- len - Variable in class org.jparsec.Token
- length - Variable in class org.jparsec.examples.java.ast.expression.NewArrayExpression
- length() - Method in class org.jparsec.Token
-
Returns the length of the token.
- lexer(Parser<?>) - Method in class org.jparsec.Parser
-
A
Parser
that greedily runsthis
repeatedly, and ignores the pattern recognized bydelim
before and after each occurrence. - lexer(Parser<?>, Parser<?>) - Method in class org.jparsec.Indentation
-
A
Parser
that greedily runstokenizer
, and translates line feed characters ('\n'
) toindent
andoutdent
tokens. - lexicon(Collection<String>) - Static method in class org.jparsec.Operators
-
Gets a
Lexicon
instance withTokens.reserved(String)
as each operator's value and a lexer that strives to try the shortest operator first. - lexicon(Parser<String>, Collection<String>, StringCase, Function<String, ?>) - Static method in class org.jparsec.Keywords
- Lexicon - Class in org.jparsec
-
A
Lexicon
is a group of lexical words that can be tokenized by a single tokenizer. - Lexicon(Function<String, Object>, Parser<?>) - Constructor for class org.jparsec.Lexicon
- LF - org.jparsec.Indentation.Punctuation
- like - Variable in class org.jparsec.examples.sql.ast.LikeExpression
- like(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- LikeExpression - Class in org.jparsec.examples.sql.ast
-
Represents "expr like 'pattern' escape 'escape'" expression.
- LikeExpression(Expression, boolean, Expression, Expression) - Constructor for class org.jparsec.examples.sql.ast.LikeExpression
- line - Variable in class org.jparsec.error.Location
-
Deprecated.1-based line number.
- LINE_BREAK - Static variable in class org.jparsec.SourceLocator
-
The line break character.
- LINE_CONTINUATION - Static variable in class org.jparsec.Indentation
-
A
Pattern
object that matches a line continuation. - lineBreakIndices - Variable in class org.jparsec.SourceLocator
-
The 0-based indices of the line break characters scanned so far.
- lineComment(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches a line comment started bybegin
and ended byEOF
orLF
(the line feed character). - lineComment(String) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes all the characters until the
'\n'
character if the current input starts with the string literalbegin
. - list - Variable in class org.jparsec.Operators.Suite
- list - Variable in class org.jparsec.Operators.Suites
- list(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
- list(Parser<T>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- listFactory - Variable in class org.jparsec.DelimitedParser
- listFactory - Variable in class org.jparsec.RepeatAtLeastParser
- listFactory - Variable in class org.jparsec.RepeatTimesParser
- ListFactory<T> - Class in org.jparsec
-
Creates a {link List}.
- ListFactory() - Constructor for class org.jparsec.ListFactory
- Lists - Class in org.jparsec.internal.util
-
Internal utility to work with
List
. - Lists() - Constructor for class org.jparsec.internal.util.Lists
- literal - Variable in class org.jparsec.examples.bnf.ast.LiteralRule
- LITERAL - Static variable in class org.jparsec.examples.bnf.parser.RuleParser
- LITERAL - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- LiteralRule - Class in org.jparsec.examples.bnf.ast
-
Represents a literal rule.
- LiteralRule(String) - Constructor for class org.jparsec.examples.bnf.ast.LiteralRule
- locate(int) - Method in class org.jparsec.SourceLocator
- location - Variable in exception org.jparsec.error.ParserException
- location - Variable in class org.jparsec.SourceLocation
- location(int, int) - Method in class org.jparsec.SourceLocator
- Location - Class in org.jparsec.error
-
Deprecated.Prefer to use
SourceLocation
instead. - Location(int, int) - Constructor for class org.jparsec.error.Location
-
Deprecated.Creates a
Location
instance. - locator - Variable in class org.jparsec.ParseContext
- locator - Variable in class org.jparsec.SourceLocation
- logical(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- LONG - org.jparsec.examples.java.ast.expression.NumberType
- longer(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
- longer(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
- LONGER_STRING_FIRST - Static variable in class org.jparsec.Operators
- longest(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs every element ofparsers
and selects the longest match. - longest(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs every element ofparsers
and selects the longest match. - longest(Pattern...) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that tries all ofpatterns
, and picks the one with the longest match length. - LongLiteral() - Constructor for class org.jparsec.Terminals.LongLiteral
- lookup(int) - Method in class org.jparsec.SourceLocator
-
Looks up the location identified by
ind
using the cached indices of line break characters. - LowerBoundedPattern - Class in org.jparsec.pattern
- LowerBoundedPattern(int, Pattern) - Constructor for class org.jparsec.pattern.LowerBoundedPattern
- LowerBoundWildcard - Class in org.jparsec.examples.java.ast.type
-
Represents "? super SomeBound" type literal.
- LowerBoundWildcard(TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.type.LowerBoundWildcard
- LSHIFT - org.jparsec.examples.java.ast.expression.Operator
- LT - org.jparsec.examples.java.ast.expression.Operator
- LT - org.jparsec.examples.sql.ast.Op
- LT - org.jparsec.IntOrder
-
An
IntOrder
instance that determines if the first integer is less than the second one.
M
- many() - Method in class org.jparsec.Parser
-
p.many()
is equivalent top*
in EBNF. - many() - Method in class org.jparsec.pattern.Pattern
-
Returns a
Pattern
object that matches this pattern for 0 or more times. - many(int) - Method in class org.jparsec.pattern.Pattern
-
Deprecated.Use
Pattern.atLeast(int)
instead. - many(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Deprecated.Use
Patterns.atLeast(int, CharPredicate)
instead. - many(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that matches 0 or more characters satisfyingpredicate
. - many(CharPredicate) - Static method in class org.jparsec.Scanners
-
A scanner that scans greedily for 0 or more characters that satisfies the given CharPredicate.
- many(Pattern, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
pattern.many().toScanner(name)
. - many1() - Method in class org.jparsec.Parser
-
p.many1()
is equivalent top+
in EBNF. - many1() - Method in class org.jparsec.pattern.Pattern
-
Returns a
Pattern
object that matches this pattern for 1 or more times. - many1(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that matches 1 or more characters satisfyingpredicate
. - many1(CharPredicate) - Static method in class org.jparsec.Scanners
-
A scanner that scans greedily for 1 or more characters that satisfies the given CharPredicate.
- many1(Pattern, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
pattern.many1().toScanner(name)
. - ManyPattern - Class in org.jparsec.pattern
- ManyPattern(Pattern) - Constructor for class org.jparsec.pattern.ManyPattern
- map(A, B) - Method in interface org.jparsec.functors.Map2
-
Deprecated.Maps
a
andb
to the target object. - map(A, B, C) - Method in interface org.jparsec.functors.Map3
-
Maps
a
,b
andc
to the target object. - map(A, B, C, D) - Method in interface org.jparsec.functors.Map4
-
Maps
a
,b
,c
andd
to the target object. - map(A, B, C, D, E) - Method in interface org.jparsec.functors.Map5
-
Maps
a
,b
,c
,d
ande
to the target object. - map(A, B, C, D, E, F) - Method in interface org.jparsec.functors.Map6
- map(A, B, C, D, E, F, G) - Method in interface org.jparsec.functors.Map7
- map(A, B, C, D, E, F, G, H) - Method in interface org.jparsec.functors.Map8
- map(From) - Method in interface org.jparsec.functors.Map
-
Deprecated.Maps
from
to the target object. - map(Function<? super T, ? extends R>) - Method in class org.jparsec.Parser
- map(Map<K, V>) - Static method in class org.jparsec.functors.Maps
-
Deprecated.Use
Map::get
instead. - map(Token) - Method in interface org.jparsec.TokenMap
-
Transforms
token
to an instance ofT
. - Map<From,To> - Interface in org.jparsec.functors
-
Deprecated.Use
Function
instead. - Map2<A,B,T> - Interface in org.jparsec.functors
-
Deprecated.Use
BiFunction
instead. - Map3<A,B,C,T> - Interface in org.jparsec.functors
-
Maps 3 objects of type
A
,B
andC
respectively to an object of typeT
. - Map4<A,B,C,D,T> - Interface in org.jparsec.functors
-
Maps 4 objects of type
A
,B
,C
andD
respectively to an object of typeT
. - Map5<A,B,C,D,E,T> - Interface in org.jparsec.functors
-
Maps 5 objects of type
A
,B
,C
,D
andE
respectively to an object of typeT
. - Map6<A,B,C,D,E,F,T> - Interface in org.jparsec.functors
-
Maps 6 objects to an object of type
T
. - Map7<A,B,C,D,E,F,G,T> - Interface in org.jparsec.functors
-
Maps 7 objects to an object of type
T
. - Map8<A,B,C,D,E,F,G,H,T> - Interface in org.jparsec.functors
-
Maps 8 objects to an object of type
T
. - Maps - Class in org.jparsec.functors
-
Provides common implementations of
Map
interface and the variants. - Maps() - Constructor for class org.jparsec.functors.Maps
- mapToString() - Static method in class org.jparsec.functors.Maps
-
Deprecated.Use
String::valueOf
directly. - match(CharSequence, int, int) - Method in class org.jparsec.pattern.LowerBoundedPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.ManyPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.NotPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.OptionalPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.OrPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.Pattern
-
Matches character range against the pattern.
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.PeekPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.RepeatCharPredicatePattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.RepeatPattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.SequencePattern
- match(CharSequence, int, int) - Method in class org.jparsec.pattern.UpperBoundedPattern
- matchMany(CharPredicate, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.Patterns
- matchMany(Pattern, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.ManyPattern
- matchRepeat(int, CharPredicate, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.RepeatCharPredicatePattern
- matchRepeat(int, Pattern, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.RepeatPattern
- matchSome(int, CharPredicate, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.Patterns
- matchSome(int, Pattern, CharSequence, int, int, int) - Static method in class org.jparsec.pattern.UpperBoundedPattern
- matchString(String, CharSequence, int, int) - Static method in class org.jparsec.pattern.Patterns
-
Matches (part of) a character sequence against a pattern string.
- matchStringCaseInsensitive(String, CharSequence, int, int) - Static method in class org.jparsec.pattern.Patterns
- max - Variable in class org.jparsec.pattern.UpperBoundedPattern
- max - Variable in class org.jparsec.RepeatTimesParser
- max - Variable in class org.jparsec.SkipTimesParser
- Member - Interface in org.jparsec.examples.java.ast.declaration
-
Represents any class member, interface member, enum member etc.
- members - Variable in class org.jparsec.examples.java.ast.declaration.DefBody
- members - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef
- mergeable - Variable in enum org.jparsec.ParseContext.ErrorType
- message - Variable in class org.jparsec.examples.java.ast.statement.AssertStatement
- method - Variable in class org.jparsec.examples.java.ast.expression.MethodCallExpression
- METHOD_REFERENCE - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- MethodCallExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents expressions like
obj.f(...)
. - MethodCallExpression(Expression, List<TypeLiteral>, String, List<Expression>) - Constructor for class org.jparsec.examples.java.ast.expression.MethodCallExpression
- methodDef(Parser<Modifier>, Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- MethodDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a method definition.
- MethodDef(List<Modifier>, List<TypeParameterDef>, TypeLiteral, String, List<ParameterDef>, List<TypeLiteral>, Expression, BlockStatement) - Constructor for class org.jparsec.examples.java.ast.declaration.MethodDef
- MethodReference - Class in org.jparsec.examples.java.ast.expression
-
Represents expressions like
obj::f
. - MethodReference(Expression, List<TypeLiteral>, String) - Constructor for class org.jparsec.examples.java.ast.expression.MethodReference
- min - Variable in class org.jparsec.pattern.LowerBoundedPattern
- min - Variable in class org.jparsec.RepeatAtLeastParser
- min - Variable in class org.jparsec.RepeatTimesParser
- min - Variable in class org.jparsec.SkipAtLeastParser
- min - Variable in class org.jparsec.SkipTimesParser
- MINUS - org.jparsec.examples.java.ast.expression.Operator
- MINUS - org.jparsec.examples.sql.ast.Op
- MINUS - Static variable in class org.jparsec.examples.calculator.Calculator
- MISMATCH - Static variable in class org.jparsec.pattern.Pattern
-
Returned by
Pattern.match(CharSequence, int, int)
method when match fails. - missing(Object) - Method in class org.jparsec.ParseContext
- MISSING - org.jparsec.ParseContext.ErrorType
-
When any expected input isn't found.
- MOD - org.jparsec.examples.java.ast.expression.Operator
- MOD - org.jparsec.examples.sql.ast.Op
- MOD - Static variable in class org.jparsec.examples.calculator.Calculator
- Mode() - Constructor for enum org.jparsec.Parser.Mode
- modifier(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- Modifier - Interface in org.jparsec.examples.java.ast.statement
-
Represents either a built-in modifier or annotation.
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.AnnotationDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.FieldDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- modifiers - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- modifiers - Variable in class org.jparsec.examples.java.ast.statement.ParameterDef
- modifiers - Variable in class org.jparsec.examples.java.ast.statement.VarStatement
- module - Variable in exception org.jparsec.error.ParserException
-
Deprecated.
- module - Variable in class org.jparsec.ParseContext
- MUL - org.jparsec.examples.java.ast.expression.Operator
- MUL - org.jparsec.examples.sql.ast.Op
- MUL - Static variable in class org.jparsec.examples.calculator.Calculator
N
- n - Variable in class org.jparsec.pattern.RepeatCharPredicatePattern
- n - Variable in class org.jparsec.pattern.RepeatPattern
- name - Variable in enum org.jparsec.examples.bnf.ast.Quantifier
- name - Variable in class org.jparsec.examples.bnf.ast.RuleDef
- name - Variable in class org.jparsec.examples.bnf.ast.RuleReference
- name - Variable in class org.jparsec.examples.java.ast.declaration.AnnotationDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef.Value
- name - Variable in class org.jparsec.examples.java.ast.declaration.FieldDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- name - Variable in class org.jparsec.examples.java.ast.declaration.TypeParameterDef
- name - Variable in class org.jparsec.examples.java.ast.expression.Identifier
- name - Variable in enum org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- name - Variable in class org.jparsec.examples.java.ast.expression.LambdaExpression.Parameter
- name - Variable in class org.jparsec.examples.java.ast.expression.MethodReference
- name - Variable in enum org.jparsec.examples.java.ast.expression.NumberType
- name - Variable in enum org.jparsec.examples.java.ast.expression.Operator
- name - Variable in class org.jparsec.examples.java.ast.expression.QualifiedExpression
- name - Variable in class org.jparsec.examples.java.ast.statement.Annotation.Element
- name - Variable in class org.jparsec.examples.java.ast.statement.LabelStatement
- name - Variable in class org.jparsec.examples.java.ast.statement.ParameterDef
- name - Variable in class org.jparsec.examples.java.ast.statement.VarStatement.Var
- name - Variable in class org.jparsec.ParseTree
- name - Variable in class org.jparsec.TreeNode
- NAME - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- NAME_ORDER - Static variable in class org.jparsec.examples.common.ValueObject
- names - Variable in class org.jparsec.examples.java.ast.declaration.QualifiedName
- names - Variable in class org.jparsec.examples.java.ast.type.SimpleTypeLiteral
- names - Variable in class org.jparsec.examples.sql.ast.QualifiedName
- NASSOC - org.jparsec.OperatorTable.Associativity
- NATIVE - org.jparsec.examples.java.ast.statement.SystemModifier
- NE - org.jparsec.examples.java.ast.expression.Operator
- NE - org.jparsec.examples.sql.ast.Op
- NEG - org.jparsec.examples.sql.ast.Op
- NEG - Static variable in class org.jparsec.examples.calculator.Calculator
- NEGATIVE - org.jparsec.examples.java.ast.expression.Operator
- nestableBlockComment(String, String) - Static method in class org.jparsec.Scanners
-
A scanner for a nestable block comment that starts with
begin
and ends withend
. - nestableBlockComment(String, String, Pattern) - Static method in class org.jparsec.Scanners
-
A scanner for a nestable block comment that starts with
begin
and ends withend
. - nestableBlockComment(Parser<?>, Parser<?>, Parser<?>) - Static method in class org.jparsec.Scanners
-
A scanner for a nestable block comment that starts with
begin
and ends withend
. - NestableBlockCommentScanner - Class in org.jparsec
-
Parses any nestable comment pattern.
- NestableBlockCommentScanner(Parser<?>, Parser<?>, Parser<?>) - Constructor for class org.jparsec.NestableBlockCommentScanner
- nested(Parser<Token[]>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
- nestedDef(Parser<Declaration>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- NestedDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a nested declaration.
- NestedDef(Declaration) - Constructor for class org.jparsec.examples.java.ast.declaration.NestedDef
- nestedScanner(Parser<?>, Parser<Void>) - Static method in class org.jparsec.Scanners
-
A scanner that after character level
outer
succeeds, subsequently feeds the recognized characters toinner
for a nested scanning. - never() - Static method in class org.jparsec.Parsers
-
Parser
that always fails. - NEVER - Static variable in class org.jparsec.Parsers
- NEVER - Static variable in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that always returns false. - NEVER - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
that always returnsPattern.MISMATCH
. - NewArrayExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents a "new Foo[] {...}" or "new Foo[size] {...}" expression.
- NewArrayExpression(TypeLiteral, Expression, List<Expression>) - Constructor for class org.jparsec.examples.java.ast.expression.NewArrayExpression
- newArrayWithExplicitLength(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- newArrayWithoutExplicitLength(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- NewExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents a non-qualified "new" statement with possibly anonymous class syntax.
- NewExpression(Expression, TypeLiteral, List<Expression>, DefBody) - Constructor for class org.jparsec.examples.java.ast.expression.NewExpression
- newLine(Token, Stack<Integer>, int, List<Token>) - Method in class org.jparsec.Indentation
- newList() - Method in class org.jparsec.ListFactory
-
Creates a new list.
- newReference() - Static method in class org.jparsec.Parser
-
Creates a new instance of
Parser.Reference
. - next() - Method in class org.jparsec.ParseContext
- next(int) - Method in class org.jparsec.ParseContext
- next(Function<? super T, ? extends Parser<? extends To>>) - Method in class org.jparsec.Parser
-
A
Parser
that executesthis
, maps the result usingmap
to anotherParser
object to be executed as the next step. - next(Parser<R>) - Method in class org.jparsec.Parser
- next(Pattern) - Method in class org.jparsec.pattern.Pattern
- nextColumnIndex - Variable in class org.jparsec.SourceLocator
-
The 0-based index of the column of the next character to be scanned.
- nextIndex - Variable in class org.jparsec.SourceLocator
-
The 0-based index of the next character to be scanned.
- nextWithEmpty(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
- NO_FIELD - Static variable in class org.jparsec.examples.common.ValueObject
- NONE - org.jparsec.ParseContext.ErrorType
-
Default value, no error.
- NOP - Static variable in class org.jparsec.examples.java.parser.StatementParser
- NopStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the no-op statement ";".
- NopStatement() - Constructor for class org.jparsec.examples.java.ast.statement.NopStatement
- not() - Method in class org.jparsec.Parser
-
A
Parser
that fails ifthis
succeeds. - not() - Method in class org.jparsec.pattern.Pattern
-
Returns a
Pattern
object that only matches if this pattern mismatches, 0 is returned otherwise. - not(String) - Method in class org.jparsec.Parser
-
A
Parser
that fails ifthis
succeeds. - not(CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true ifpredicate
evaluates to false. - not(Pattern) - Static method in class org.jparsec.pattern.Patterns
- NOT - org.jparsec.examples.java.ast.expression.Operator
- NOT - org.jparsec.examples.sql.ast.Op
- NOT_EXISTS - org.jparsec.examples.sql.ast.Op
- NOT_IN - org.jparsec.examples.sql.ast.Op
- notAmong(String) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is not equal to any character inchars
. - notAmong(String) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes the current character if it is not equal to any character in
chars
. - notAmong(String, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Patterns.among(chars).not().toScanner(name)
, orisChar(CharPredicates.notAmong(chars), name)
. - notChar(char) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is not equal toc
. - notChar(char) - Static method in class org.jparsec.Scanners
-
A scanner that succeeds and consumes the current character if it is not equal to
ch
. - notChar(char, String) - Static method in class org.jparsec.Scanners
-
Deprecated.
- notChar2(char, char) - Static method in class org.jparsec.Scanners
-
Matches a character if the input has at least 1 character, or if the input has at least 2 characters with the first 2 characters not being
c1
andc2
. - notExists(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- notFollowedBy(Parser<?>) - Method in class org.jparsec.Parser
- notIn(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- notInRelation(Parser<Expression>, Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- NotPattern - Class in org.jparsec.pattern
- NotPattern(Pattern) - Constructor for class org.jparsec.pattern.NotPattern
- notRange(char, char) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is not within the range of[a, b]
. - notString(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input has at least 1 character and doesn't matchstring
. - notStringCaseInsensitive(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input has at least 1 character and doesn't matchstring
case insensitively. - NULL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- NULL - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- nullCheck(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- NullExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents "null".
- NullExpression - Class in org.jparsec.examples.sql.ast
-
Represents "null".
- NullExpression() - Constructor for class org.jparsec.examples.java.ast.expression.NullExpression
- NullExpression() - Constructor for class org.jparsec.examples.sql.ast.NullExpression
- number - Variable in class org.jparsec.examples.java.ast.expression.DecimalPointNumberLiteral
- number - Variable in class org.jparsec.examples.java.ast.expression.IntegerLiteral
- number - Variable in class org.jparsec.examples.java.ast.expression.ScientificNumberLiteral
- number - Variable in class org.jparsec.examples.sql.ast.NumberExpression
- NUMBER - Static variable in class org.jparsec.examples.calculator.Calculator
- NUMBER - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- NUMBER - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- NumberExpression - Class in org.jparsec.examples.sql.ast
-
A number expression.
- NumberExpression(String) - Constructor for class org.jparsec.examples.sql.ast.NumberExpression
- NumberLiteralsTranslator - Class in org.jparsec
-
Transforms the recognized character range to an integer within 64 bits.
- NumberLiteralsTranslator() - Constructor for class org.jparsec.NumberLiteralsTranslator
- numberType(NumberType) - Static method in class org.jparsec.examples.java.parser.JavaLexer
- NumberType - Enum in org.jparsec.examples.java.ast.expression
-
Distinguishes between "L", "F", "D" and int.
- NumberType(String) - Constructor for enum org.jparsec.examples.java.ast.expression.NumberType
- nVal - Variable in class org.jparsec.examples.statement.ast.ValueExpression
O
- Objects - Class in org.jparsec.internal.util
-
Utility functions for any object.
- Objects() - Constructor for class org.jparsec.internal.util.Objects
- ObjectTester - Class in org.jparsec.util
-
Tests any
Object
forObject.equals(Object)
andObject.hashCode()
. - ObjectTester() - Constructor for class org.jparsec.util.ObjectTester
- ObjectTester.AnotherType - Class in org.jparsec.util
- OCT - org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- OCT_AS_LONG - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that interprets the recognized character range as a octal integer and tokenizes to aLong
. - OCT_INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- OCT_INTEGER - Static variable in class org.jparsec.examples.java.parser.JavaScanners
-
Scanner for a octal number.
- OCT_INTEGER - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches an octal integer that starts with a0
and is followed by 0 or more[0 - 7]
characters. - OCT_INTEGER - Static variable in class org.jparsec.Scanners
-
Scanner for a octal number.
- OCT_INTEGER_PATTERN - Static variable in class org.jparsec.examples.java.parser.JavaScanners
-
A
Pattern
object that matches an octal integer that starts with a0
and is followed by 1 or more[0 - 7]
characters. - OCT_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
-
A tokenizer that parses a octal integer number (valid patterns are:
0, 07, 017, 0371
etc.), and converts the string to aLong
value. - of - Variable in class org.jparsec.examples.java.ast.statement.ForeachStatement
- of(String...) - Static method in class org.jparsec.examples.sql.ast.QualifiedName
- of(String...) - Static method in class org.jparsec.examples.sql.ast.QualifiedNameExpression
- of(Expression...) - Static method in class org.jparsec.examples.sql.ast.TupleExpression
- of(QualifiedName, Expression...) - Static method in class org.jparsec.examples.sql.ast.FunctionExpression
- oneOf(String...) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- op - Variable in class org.jparsec.examples.java.ast.expression.BinaryExpression
- op - Variable in class org.jparsec.examples.java.ast.expression.PostfixUnaryExpression
- op - Variable in class org.jparsec.examples.java.ast.expression.PrefixUnaryExpression
- op - Variable in class org.jparsec.OperatorTable.Operator
- op - Variable in class org.jparsec.Parser.Rhs
- op(char, T) - Static method in class org.jparsec.examples.calculator.Calculator
- Op - Enum in org.jparsec.examples.sql.ast
-
Operators
- Op() - Constructor for enum org.jparsec.examples.sql.ast.Op
- openQuote - Variable in class org.jparsec.NestableBlockCommentScanner
- operand - Variable in class org.jparsec.examples.sql.ast.UnaryExpression
- operator - Variable in class org.jparsec.examples.sql.ast.BinaryExpression
- operator - Variable in class org.jparsec.examples.sql.ast.BinaryRelationalExpression
- operator - Variable in class org.jparsec.examples.sql.ast.UnaryExpression
- operator - Variable in class org.jparsec.examples.sql.ast.UnaryRelationalExpression
- Operator - Enum in org.jparsec.examples.java.ast.expression
-
Defines operators used in Java.
- Operator(String) - Constructor for enum org.jparsec.examples.java.ast.expression.Operator
- Operator(Parser<?>, int, OperatorTable.Associativity) - Constructor for class org.jparsec.OperatorTable.Operator
- operators() - Method in class org.jparsec.OperatorTable
- operators(String...) - Static method in class org.jparsec.Terminals
-
Returns a
Terminals
object for lexing the operators with names specified inops
. - operators(Collection<String>) - Static method in class org.jparsec.Terminals
-
Returns a
Terminals
object for lexing the operators with names specified inops
. - Operators - Class in org.jparsec
-
Helper class for creating parsers and lexers for operators.
- Operators() - Constructor for class org.jparsec.Operators
- OPERATORS - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- OPERATORS - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- Operators.Suite - Class in org.jparsec
-
A suite is a list of overlapping operators, where some operators are prefixes of other operators.
- Operators.Suites - Class in org.jparsec
-
A list of suites in the reverse order of the suites.
- OperatorTable<T> - Class in org.jparsec
-
Builds
Parser
to parse expressions with operator-precedence grammar. - OperatorTable() - Constructor for class org.jparsec.OperatorTable
- OperatorTable.Associativity - Enum in org.jparsec
-
Describes operator associativity, in order of precedence.
- OperatorTable.Operator - Class in org.jparsec
- ops - Variable in class org.jparsec.OperatorTable
- optional() - Method in class org.jparsec.Parser
-
Deprecated.since 3.0. Use {@link #optional(null)} or
Parser.asOptional()
instead. - optional() - Method in class org.jparsec.pattern.Pattern
-
Returns a
Pattern
object that matches with 0 length even ifthis
mismatches. - optional(Pattern) - Static method in class org.jparsec.pattern.Patterns
- optional(T) - Method in class org.jparsec.Parser
- OPTIONAL - org.jparsec.examples.bnf.ast.Quantifier
- OptionalPattern - Class in org.jparsec.pattern
- OptionalPattern(Pattern) - Constructor for class org.jparsec.pattern.OptionalPattern
- optionalTypeArgs(Parser<TypeLiteral>) - Static method in class org.jparsec.examples.java.parser.TypeLiteralParser
- or(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries each alternative parser inalternatives
. - or(Parser<? extends T>) - Method in class org.jparsec.Parser
-
p1.or(p2)
is equivalent top1 | p2
in EBNF. - or(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries each alternative parser inalternatives
. - or(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 2 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 3 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 4 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 5 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 6 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 7 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 8 alternative parser objects. - or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that tries 9 alternative parser objects. - or(CharPredicate...) - Static method in class org.jparsec.pattern.CharPredicates
- or(CharPredicate, CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
- or(Pattern) - Method in class org.jparsec.pattern.Pattern
- or(Pattern...) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that matches if any ofpatterns
matches, in which case, the first match length is returned. - OR - org.jparsec.examples.java.ast.expression.Operator
- OR - org.jparsec.examples.sql.ast.Op
- order - Variable in class org.jparsec.BestParser
- orderBy - Variable in class org.jparsec.examples.sql.ast.Select
- OrderBy - Class in org.jparsec.examples.sql.ast
-
The "order by" clause.
- OrderBy(List<OrderBy.Item>) - Constructor for class org.jparsec.examples.sql.ast.OrderBy
- OrderBy.Item - Class in org.jparsec.examples.sql.ast
- orderByClause(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- orderByItem(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- org.jparsec - package org.jparsec
-
Provides core Parser implementations for parser combinator logic.
- org.jparsec.error - package org.jparsec.error
-
Provides interfaces and classes for advanced error handling.
- org.jparsec.examples.bnf.ast - package org.jparsec.examples.bnf.ast
- org.jparsec.examples.bnf.parser - package org.jparsec.examples.bnf.parser
- org.jparsec.examples.calculator - package org.jparsec.examples.calculator
- org.jparsec.examples.common - package org.jparsec.examples.common
- org.jparsec.examples.java.ast.declaration - package org.jparsec.examples.java.ast.declaration
- org.jparsec.examples.java.ast.expression - package org.jparsec.examples.java.ast.expression
- org.jparsec.examples.java.ast.statement - package org.jparsec.examples.java.ast.statement
- org.jparsec.examples.java.ast.type - package org.jparsec.examples.java.ast.type
- org.jparsec.examples.java.parser - package org.jparsec.examples.java.parser
- org.jparsec.examples.sql.ast - package org.jparsec.examples.sql.ast
- org.jparsec.examples.sql.parser - package org.jparsec.examples.sql.parser
- org.jparsec.examples.statement.ast - package org.jparsec.examples.statement.ast
- org.jparsec.functors - package org.jparsec.functors
-
Provides common functor interfaces, such as Map for mapping parser results as well as some common implementations.
- org.jparsec.internal.annotations - package org.jparsec.internal.annotations
- org.jparsec.internal.util - package org.jparsec.internal.util
-
Internal utilities.
- org.jparsec.pattern - package org.jparsec.pattern
-
Provides Pattern implementations for use by character level scanners.
- org.jparsec.util - package org.jparsec.util
- OrPattern - Class in org.jparsec.pattern
- OrPattern(Pattern...) - Constructor for class org.jparsec.pattern.OrPattern
- orphanize() - Method in class org.jparsec.TreeNode
-
When this leaf node has errors, it didn't complete and shouldn't be part of the parse tree that is the current partial parse result with all successful matches.
- orWithoutEmpty(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
- otherwise - Variable in class org.jparsec.examples.java.ast.statement.IfStatement
- otherwise(Parser<? extends T>) - Method in class org.jparsec.Parser
-
a.otherwise(fallback)
runsfallback
whena
matches zero input. - outdent - Variable in class org.jparsec.Indentation
- outdent() - Method in class org.jparsec.Indentation
-
A
Parser
that recognizes the generatedoutdent
token. - OUTDENT - org.jparsec.Indentation.Punctuation
- overrideErrorType - Variable in class org.jparsec.ParseContext
- owner - Variable in class org.jparsec.examples.java.ast.expression.ConstructorReference
- owner - Variable in class org.jparsec.examples.java.ast.expression.MethodReference
- owner - Variable in class org.jparsec.examples.sql.ast.WildcardExpression
P
- PACKAGE - Static variable in class org.jparsec.examples.java.parser.DeclarationParser
- packageName - Variable in class org.jparsec.examples.java.ast.declaration.Program
- pair(A, B) - Static method in class org.jparsec.functors.Tuples
-
Deprecated.Returns a
Pair
of 2 objects. - pair(Parser<? extends A>, Parser<? extends B>) - Static method in class org.jparsec.Parsers
-
Deprecated.Prefer to converting to your own object with a lambda.
- Pair<A,B> - Class in org.jparsec.functors
-
Deprecated.Prefer to using a lambda expression to convert to your own type.
- Pair(A, B) - Constructor for class org.jparsec.functors.Pair
-
Deprecated.
- parameter - Variable in class org.jparsec.examples.java.ast.statement.TryStatement.CatchBlock
- parameter(Parser<Modifier>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- Parameter(String) - Constructor for class org.jparsec.examples.java.ast.expression.LambdaExpression.Parameter
- Parameter(TypeLiteral, String) - Constructor for class org.jparsec.examples.java.ast.expression.LambdaExpression.Parameter
- ParameterDef - Class in org.jparsec.examples.java.ast.statement
-
Represents a parameter definition.
- ParameterDef(List<Modifier>, TypeLiteral, boolean, String) - Constructor for class org.jparsec.examples.java.ast.statement.ParameterDef
- parameters - Variable in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- parameters - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- parameters - Variable in class org.jparsec.examples.java.ast.expression.LambdaExpression
- paren(Parser<T>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- paren(Parser<T>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- parent - Variable in class org.jparsec.TreeNode
- parent() - Method in class org.jparsec.TreeNode
- parse(CharSequence) - Method in class org.jparsec.Parser
-
Parses
source
. - parse(CharSequence, String) - Method in class org.jparsec.Parser
-
Deprecated.Please use
Parser.parse(CharSequence)
instead. - parse(CharSequence, Parser.Mode) - Method in class org.jparsec.Parser
-
Parses
source
under the givenmode
. - parse(Readable) - Method in class org.jparsec.Parser
-
Parses source read from
readable
. - parse(Readable, String) - Method in class org.jparsec.Parser
-
Deprecated.Please use
Parser.parse(Readable)
instead. - parse(String) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
-
Parses any Java source.
- parse(URL) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
-
Parses source code read from
url
. - parse(Parser<T>, Readable, String) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- parse(Parser<T>, String) - Static method in class org.jparsec.examples.bnf.parser.TerminalParser
- parse(Parser<T>, String) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- parse(Parser<T>, String) - Static method in class org.jparsec.examples.sql.parser.TerminalParser
- ParseContext - Class in org.jparsec
-
Represents the context state during parsing.
- ParseContext(CharSequence, int, String, SourceLocator) - Constructor for class org.jparsec.ParseContext
- ParseContext(CharSequence, Object, int, String, SourceLocator) - Constructor for class org.jparsec.ParseContext
- ParseContext.ErrorType - Enum in org.jparsec
- ParseContext.ParserTrace - Interface in org.jparsec
-
Allows tracing of parsing progress during error condition, to ease debugging.
- ParseErrorDetails - Interface in org.jparsec.error
-
Describes details of a parsing error to support fine-grained error handling.
- parser - Variable in class org.jparsec.DelimitedParser
- parser - Variable in class org.jparsec.RepeatAtLeastParser
- parser - Variable in class org.jparsec.RepeatTimesParser
- parser - Variable in class org.jparsec.SkipAtLeastParser
- parser - Variable in class org.jparsec.SkipTimesParser
- parser() - Static method in class org.jparsec.examples.calculator.Calculator
- Parser<T> - Class in org.jparsec
-
Defines grammar and encapsulates parsing logic.
- Parser() - Constructor for class org.jparsec.Parser
- PARSER - Static variable in class org.jparsec.Terminals.CharLiteral
-
Parser
that recognizesCharacter
tokens. - PARSER - Static variable in class org.jparsec.Terminals.DecimalLiteral
- PARSER - Static variable in class org.jparsec.Terminals.Identifier
-
Parser
that recognizes identifier tokens. - PARSER - Static variable in class org.jparsec.Terminals.IntegerLiteral
- PARSER - Static variable in class org.jparsec.Terminals.LongLiteral
-
Parser
that recognizesLong
tokens. - PARSER - Static variable in class org.jparsec.Terminals.ScientificNumberLiteral
-
Parser
that recogniesTokens.ScientificNotation
tokens. - PARSER - Static variable in class org.jparsec.Terminals.StringLiteral
-
Parser
that recognizesString
tokens. - Parser.Mode - Enum in org.jparsec
-
Defines the mode that a parser should be run in.
- Parser.Reference<T> - Class in org.jparsec
-
An atomic mutable reference to
Parser
used in recursive grammars. - Parser.Rhs<T> - Class in org.jparsec
- ParserException - Exception in org.jparsec.error
-
Is thrown when any grammar error happens or any exception is thrown during parsing.
- ParserException(Throwable, ParseErrorDetails, String, Location) - Constructor for exception org.jparsec.error.ParserException
-
Deprecated.
- ParserException(ParseErrorDetails, String, Location) - Constructor for exception org.jparsec.error.ParserException
-
Deprecated.
- ParserException(ParseErrorDetails, Location) - Constructor for exception org.jparsec.error.ParserException
-
Creates a
ParserException
object. - parsers - Variable in class org.jparsec.BestParser
- Parsers - Class in org.jparsec
-
Provides common
Parser
implementations. - Parsers() - Constructor for class org.jparsec.Parsers
- ParserState - Class in org.jparsec
-
Represents
ParseContext
for token level parsing. - ParserState(String, CharSequence, Token[], int, SourceLocator, int, Object) - Constructor for class org.jparsec.ParserState
- parseTree - Variable in exception org.jparsec.error.ParserException
- parseTree(CharSequence) - Method in class org.jparsec.Parser
-
Parses
source
and returns aParseTree
corresponding to the syntactical structure of the input. - ParseTree - Class in org.jparsec
-
Represents the syntactical structure of the input being parsed.
- ParseTree(String, int, int, Object, List<ParseTree>) - Constructor for class org.jparsec.ParseTree
- pattern - Variable in class org.jparsec.examples.sql.ast.LikeExpression
- pattern - Variable in class org.jparsec.pattern.LowerBoundedPattern
- pattern - Variable in class org.jparsec.pattern.ManyPattern
- pattern - Variable in class org.jparsec.pattern.OptionalPattern
- pattern - Variable in class org.jparsec.pattern.RepeatPattern
- pattern - Variable in class org.jparsec.pattern.UpperBoundedPattern
- pattern(Pattern, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
pattern.toScanner(name)
. - Pattern - Class in org.jparsec.pattern
-
Encapsulates algorithm to recognize certain string pattern.
- Pattern() - Constructor for class org.jparsec.pattern.Pattern
- patterns - Variable in class org.jparsec.pattern.OrPattern
- patterns - Variable in class org.jparsec.pattern.SequencePattern
- Patterns - Class in org.jparsec.pattern
-
Provides common
Pattern
implementations. - Patterns() - Constructor for class org.jparsec.pattern.Patterns
- peek() - Method in class org.jparsec.Parser
-
A
Parser
that runsthis
and undoes any input consumption if succeeds. - peek() - Method in class org.jparsec.pattern.Pattern
-
Returns
Pattern
object that matches with match length 0 if this Pattern object matches. - peekChar() - Method in class org.jparsec.ParseContext
-
Peeks the current character.
- peekChar() - Method in class org.jparsec.ParserState
- peekChar() - Method in class org.jparsec.ScannerState
- PeekPattern - Class in org.jparsec.pattern
- PeekPattern(Pattern) - Constructor for class org.jparsec.pattern.PeekPattern
- phrase(String) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- phrase(String) - Static method in class org.jparsec.examples.sql.parser.TerminalParser
- phrase(String...) - Method in class org.jparsec.Lexicon
-
A
Parser
that recognizes a sequence of tokens identified bytokenNames
, as an atomic step. - PLUS - org.jparsec.examples.bnf.ast.Quantifier
- PLUS - org.jparsec.examples.java.ast.expression.Operator
- PLUS - org.jparsec.examples.sql.ast.Op
- PLUS - Static variable in class org.jparsec.examples.calculator.Calculator
- pop() - Method in interface org.jparsec.ParseContext.ParserTrace
-
When a parser finishes, the current node is popped so we are back to the parent parser.
- POSITIVE - org.jparsec.examples.java.ast.expression.Operator
- POST_DEC - org.jparsec.examples.java.ast.expression.Operator
- POST_INC - org.jparsec.examples.java.ast.expression.Operator
- postfix(Operator) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- postfix(Parser<? extends Function<? super T, ? extends T>>) - Method in class org.jparsec.Parser
- postfix(Parser<? extends Function<? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
-
Adds a postfix unary operator.
- POSTFIX - org.jparsec.OperatorTable.Associativity
- PostfixUnaryExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents expression with postfix unary operator.
- PostfixUnaryExpression(Expression, Operator) - Constructor for class org.jparsec.examples.java.ast.expression.PostfixUnaryExpression
- pp - Variable in class org.jparsec.pattern.NotPattern
- pp - Variable in class org.jparsec.pattern.PeekPattern
- precedence - Variable in class org.jparsec.OperatorTable.Operator
- predicate - Variable in class org.jparsec.pattern.RepeatCharPredicatePattern
- prefix(Operator) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- prefix(Parser<? extends Function<? super T, ? extends T>>) - Method in class org.jparsec.Parser
- prefix(Parser<? extends Function<? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
-
Adds a prefix unary operator.
- PREFIX - org.jparsec.OperatorTable.Associativity
- PrefixUnaryExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents expression with prefix unary operator.
- PrefixUnaryExpression(Operator, Expression) - Constructor for class org.jparsec.examples.java.ast.expression.PrefixUnaryExpression
- prependEach(String, Iterable<?>) - Static method in class org.jparsec.examples.common.Strings
-
Prepends
delim
before each object ofobjects
. - previous - Variable in class org.jparsec.TreeNode
- Private - Annotation Type in org.jparsec.internal.annotations
-
Annotates anything that should be private but is allowing test cases to access it.
- PRIVATE - org.jparsec.examples.java.ast.statement.SystemModifier
- PRODUCTION - org.jparsec.Parser.Mode
-
Default mode.
- program() - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- Program - Class in org.jparsec.examples.java.ast.declaration
-
Represents a single java source file.
- Program(QualifiedName, List<Import>, List<Declaration>) - Constructor for class org.jparsec.examples.java.ast.declaration.Program
- projection(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- Projection - Class in org.jparsec.examples.sql.ast
-
Represents a single projection in a select statement, it can be either an expression, a wildcard or an expression with an alias.
- Projection(Expression, String) - Constructor for class org.jparsec.examples.sql.ast.Projection
- projections - Variable in class org.jparsec.examples.sql.ast.Select
- PROTECTED - org.jparsec.examples.java.ast.statement.SystemModifier
- pseudoToken(int, Object) - Static method in class org.jparsec.Indentation
- PUBLIC - org.jparsec.examples.java.ast.statement.SystemModifier
- Punctuation() - Constructor for enum org.jparsec.Indentation.Punctuation
- push(String) - Method in interface org.jparsec.ParseContext.ParserTrace
-
Upon applying a parser with
Parser.label(java.lang.String)
, the label name is used to create a new child node under the current node.
Q
- qname - Variable in class org.jparsec.examples.java.ast.declaration.Import
- qname - Variable in class org.jparsec.examples.sql.ast.QualifiedNameExpression
- QUALIFIED_EXPR - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- QUALIFIED_NAME - Static variable in class org.jparsec.examples.java.parser.DeclarationParser
- QUALIFIED_NAME - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- QUALIFIED_NAME - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- QUALIFIED_WILDCARD - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- QualifiedExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents "obj.field", "SomeType.staticField", "SomeType.SomeNestedType" or "org.codehaus.jparsec" kind of qualified expressions.
- QualifiedExpression(Expression, String) - Constructor for class org.jparsec.examples.java.ast.expression.QualifiedExpression
- qualifiedMethodCall(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- QualifiedName - Class in org.jparsec.examples.java.ast.declaration
-
Represents a qualified name in import or package statement.
- QualifiedName - Class in org.jparsec.examples.sql.ast
-
A qualified name like "a.b.c".
- QualifiedName(List<String>) - Constructor for class org.jparsec.examples.java.ast.declaration.QualifiedName
- QualifiedName(List<String>) - Constructor for class org.jparsec.examples.sql.ast.QualifiedName
- QualifiedNameExpression - Class in org.jparsec.examples.sql.ast
-
An expression like "a.b.c".
- QualifiedNameExpression(QualifiedName) - Constructor for class org.jparsec.examples.sql.ast.QualifiedNameExpression
- qualifiedNew(Parser<Expression>, Parser<DefBody>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- qualifier - Variable in class org.jparsec.examples.java.ast.expression.NewExpression
- qualifier - Variable in class org.jparsec.examples.java.ast.expression.QualifiedExpression
- qualifiers - Variable in class org.jparsec.examples.java.ast.expression.ThisExpression
- QuantifiedRule - Class in org.jparsec.examples.bnf.ast
-
Represents a quantified rule.
- QuantifiedRule(Rule, Quantifier) - Constructor for class org.jparsec.examples.bnf.ast.QuantifiedRule
- quantifier - Variable in class org.jparsec.examples.bnf.ast.QuantifiedRule
- Quantifier - Enum in org.jparsec.examples.bnf.ast
-
Qualifies a rule.
- Quantifier(String) - Constructor for enum org.jparsec.examples.bnf.ast.Quantifier
- query() - Static method in class org.jparsec.examples.sql.parser.RelationParser
-
The
Parser
for a full fledged SQL query. - query(Parser<Expression>, Parser<Expression>, Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- quoted(char, char) - Static method in class org.jparsec.Scanners
-
A scanner for a quoted string that starts with character
begin
and ends with characterend
. - quoted(Parser<Void>, Parser<Void>, Parser<?>) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Parsers.sequence(begin, quoted.skipMany(), end).source()
. - quotedBy(Parser<Void>, Parser<?>) - Static method in class org.jparsec.Scanners
R
- radix - Variable in class org.jparsec.examples.java.ast.expression.IntegerLiteral
- Radix(String) - Constructor for enum org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- raise(ParseContext.ErrorType, Object) - Method in class org.jparsec.ParseContext
- range(char, char) - Static method in class org.jparsec.pattern.CharPredicates
-
A
CharPredicate
that returns true if the character is within the range of[a, b]
. - range(char, char) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the current character in the input is between characterc1
andc2
, in which case1
is returned as match length. - RASSOC - org.jparsec.OperatorTable.Associativity
- read(Readable) - Static method in class org.jparsec.examples.common.IoUtils
-
Reads all characters from
readable
. - read(Readable) - Static method in class org.jparsec.Parser
-
Copies all content from
from
toto
. - read(URL) - Static method in class org.jparsec.examples.common.IoUtils
- ReadonlyExpression - Class in org.jparsec.examples.statement.ast
- ReadonlyExpression(String) - Constructor for class org.jparsec.examples.statement.ast.ReadonlyExpression
- Reference() - Constructor for class org.jparsec.Parser.Reference
- regex(String) - Static method in class org.jparsec.pattern.Patterns
-
Adapts a regular expression pattern string to a
Pattern
. - regex(Pattern) - Static method in class org.jparsec.pattern.Patterns
-
Adapts a regular expression pattern to a
Pattern
. - REGEXP_MODIFIERS - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches regular expression modifiers, which is a list of alpha characters. - REGEXP_PATTERN - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches any regular expression pattern string in the form of/some pattern here/
. - relation - Variable in class org.jparsec.examples.sql.ast.AliasedRelation
- relation - Variable in class org.jparsec.examples.sql.ast.BinaryRelationalExpression
- relation - Variable in class org.jparsec.examples.sql.ast.UnaryRelationalExpression
- Relation - Interface in org.jparsec.examples.sql.ast
-
Models a relation such as a select statement, or a table.
- RelationParser - Class in org.jparsec.examples.sql.parser
-
Parser for relation.
- RelationParser() - Constructor for class org.jparsec.examples.sql.parser.RelationParser
- reluctantBetween(Parser<?>, Parser<?>) - Method in class org.jparsec.Parser
-
Deprecated.This method probably only works in the simplest cases. And it's a character-level parser only. Use it at your own risk. It may be deleted later when we find a better way.
- ReluctantBetweenParser<T> - Class in org.jparsec
-
Deprecated.
- ReluctantBetweenParser(Parser<?>, Parser<T>, Parser<?>) - Constructor for class org.jparsec.ReluctantBetweenParser
-
Deprecated.
- removeNulls(List<T>) - Static method in class org.jparsec.examples.java.parser.DeclarationParser
- renderError() - Method in class org.jparsec.ParseContext
-
Only called when rendering the error in
ParserException
. - repeat(int) - Method in class org.jparsec.pattern.Pattern
-
Deprecated.Use
Pattern.times(int)
instead. - repeat(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches if the input has at leastn
characters and the firstn
characters all satisfypredicate
. - repeat(Parser<?>, int) - Method in class org.jparsec.ParseContext
- repeat(Parser<? extends T>, int, Collection<T>) - Method in class org.jparsec.ParseContext
- RepeatAtLeastParser<T> - Class in org.jparsec
- RepeatAtLeastParser(Parser<? extends T>, int) - Constructor for class org.jparsec.RepeatAtLeastParser
- RepeatAtLeastParser(Parser<? extends T>, int, ListFactory<T>) - Constructor for class org.jparsec.RepeatAtLeastParser
- repeatAtMost(int, Collection<T>, ParseContext) - Method in class org.jparsec.RepeatTimesParser
- repeatAtMost(int, ParseContext) - Method in class org.jparsec.SkipTimesParser
- RepeatCharPredicatePattern - Class in org.jparsec.pattern
- RepeatCharPredicatePattern(int, CharPredicate) - Constructor for class org.jparsec.pattern.RepeatCharPredicatePattern
- RepeatPattern - Class in org.jparsec.pattern
- RepeatPattern(int, Pattern) - Constructor for class org.jparsec.pattern.RepeatPattern
- RepeatTimesParser<T> - Class in org.jparsec
- RepeatTimesParser(Parser<? extends T>, int, int) - Constructor for class org.jparsec.RepeatTimesParser
- RepeatTimesParser(Parser<? extends T>, int, int, ListFactory<T>) - Constructor for class org.jparsec.RepeatTimesParser
- reportList(StringBuilder, List<String>) - Static method in class org.jparsec.error.ErrorReporter
- reserved(String) - Static method in class org.jparsec.Tokens
-
Returns a
Tokens.Fragment
tagged asTokens.Tag.RESERVED
. - RESERVED - org.jparsec.Tokens.Tag
-
Reserved word
- RESERVED - Static variable in class org.jparsec.Terminals
-
Parser
that recognizes reserved word tokens. - RESERVED_FRAGMENT - Static variable in class org.jparsec.TokenizerMaps
- result - Variable in class org.jparsec.ParseContext
-
The current parse result.
- result - Variable in class org.jparsec.TreeNode
- retn(R) - Method in class org.jparsec.Parser
- returnStatement(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ReturnStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents "return" statement.
- ReturnStatement(Expression) - Constructor for class org.jparsec.examples.java.ast.statement.ReturnStatement
- returnType - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- rhs - Variable in class org.jparsec.Parser.Rhs
- Rhs(BiFunction<? super T, ? super T, ? extends T>, T) - Constructor for class org.jparsec.Parser.Rhs
- right - Variable in class org.jparsec.examples.java.ast.expression.BinaryExpression
- right - Variable in class org.jparsec.examples.sql.ast.BinaryExpression
- right - Variable in class org.jparsec.examples.sql.ast.CrossJoinRelation
- right - Variable in class org.jparsec.examples.sql.ast.JoinRelation
- right - Variable in class org.jparsec.examples.sql.ast.UnionRelation
- RIGHT - org.jparsec.examples.sql.ast.JoinType
- RIGHT_JOIN - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- RSHIFT - org.jparsec.examples.java.ast.expression.Operator
- rule - Variable in class org.jparsec.examples.bnf.ast.QuantifiedRule
- rule() - Static method in class org.jparsec.examples.bnf.parser.RuleParser
- Rule - Interface in org.jparsec.examples.bnf.ast
-
Represents any rule in BNF.
- RULE_DEF - Static variable in class org.jparsec.examples.bnf.parser.RuleParser
- RULE_DEFS - Static variable in class org.jparsec.examples.bnf.parser.RuleParser
- RuleDef - Class in org.jparsec.examples.bnf.ast
-
Represents a rule definition.
- RuleDef(String, Rule) - Constructor for class org.jparsec.examples.bnf.ast.RuleDef
- RuleParser - Class in org.jparsec.examples.bnf.parser
-
Parser for bnf rules.
- RuleParser() - Constructor for class org.jparsec.examples.bnf.parser.RuleParser
- RuleReference - Class in org.jparsec.examples.bnf.ast
-
Represents a reference to a named production rule.
- RuleReference(String) - Constructor for class org.jparsec.examples.bnf.ast.RuleReference
- rules - Variable in class org.jparsec.examples.bnf.ast.SequentialRule
- run(Parser<T>) - Method in class org.jparsec.ScannerState
- run(Parser<T>, CharSequence) - Method in enum org.jparsec.Parser.Mode
- runnable(Runnable) - Static method in class org.jparsec.Parsers
-
Deprecated.
S
- s - Variable in class org.jparsec.examples.statement.ast.DoubleExpression
- s - Variable in class org.jparsec.examples.statement.ast.IdentExpression
- s - Variable in class org.jparsec.examples.statement.ast.ReadonlyExpression
- s - Variable in class org.jparsec.examples.statement.ast.SingleExpression
- s - Variable in class org.jparsec.examples.statement.ast.VarExpression
- s2 - Variable in class org.jparsec.examples.statement.ast.DoubleExpression
- Scanners - Class in org.jparsec
-
Provides common
Parser
implementations that scan the source and match certain string patterns. - Scanners() - Constructor for class org.jparsec.Scanners
- ScannerState - Class in org.jparsec
-
Parser state for scanner.
- ScannerState(CharSequence) - Constructor for class org.jparsec.ScannerState
- ScannerState(String, CharSequence, int, int, SourceLocator, Object) - Constructor for class org.jparsec.ScannerState
- ScannerState(String, CharSequence, int, SourceLocator) - Constructor for class org.jparsec.ScannerState
- scanTo(int) - Method in class org.jparsec.SourceLocator
-
Scans from
nextIndex
toind
and saves all indices of line break characters intolineBreakIndices
and adjusts the current column number as it goes. - SCIENTIFIC_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- SCIENTIFIC_NOTATION - Static variable in class org.jparsec.pattern.Patterns
- SCIENTIFIC_NOTATION - Static variable in class org.jparsec.Scanners
-
Scanner for a scientific notation.
- SCIENTIFIC_NOTATION - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that recognizes a scientific notation and tokenizes to aTokens.ScientificNotation
. - SCIENTIFIC_NUMBER_LITERAL - Static variable in class org.jparsec.examples.java.parser.JavaLexer
- scientificNotation(String, String) - Static method in class org.jparsec.Tokens
- ScientificNotation(String, String) - Constructor for class org.jparsec.Tokens.ScientificNotation
-
Deprecated.Use
Tokens.scientificNotation()
instead. - ScientificNumberLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents scientific notation number.
- ScientificNumberLiteral() - Constructor for class org.jparsec.Terminals.ScientificNumberLiteral
- ScientificNumberLiteral(String, NumberType) - Constructor for class org.jparsec.examples.java.ast.expression.ScientificNumberLiteral
- select(Parser<Expression>, Parser<Expression>, Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- Select - Class in org.jparsec.examples.sql.ast
-
Models the select statement.
- Select(boolean, List<Projection>, List<Relation>, Expression, GroupBy, OrderBy) - Constructor for class org.jparsec.examples.sql.ast.Select
- SELECT_CLAUSE - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- selectClause() - Static method in class org.jparsec.examples.sql.parser.RelationParser
- sepBy(Parser<?>) - Method in class org.jparsec.Parser
- sepBy1(Parser<?>) - Method in class org.jparsec.Parser
- sepEndBy(Parser<?>) - Method in class org.jparsec.Parser
- sepEndBy1(Parser<?>) - Method in class org.jparsec.Parser
- sequence(Iterable<? extends Parser<?>>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runsparsers
sequentially and discards the return values. - sequence(Parser<?>...) - Static method in class org.jparsec.Parsers
-
A
Parser
that runsparsers
sequentially and discards the return values. - sequence(Parser<?>, Parser<?>, Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 5 parser objects sequentially. - sequence(Parser<?>, Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 4 parser objects sequentially. - sequence(Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 3 parser objects sequentially. - sequence(Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 2 parser objects sequentially. - sequence(Parser<A>, Parser<B>, BiFunction<? super A, ? super B, ? extends T>) - Static method in class org.jparsec.Parsers
- sequence(Parser<A>, Parser<B>, Parser<C>, Map3<? super A, ? super B, ? super C, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 3 parser objects sequentially and transforms the return values usingmap
. - sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Map4<? super A, ? super B, ? super C, ? super D, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 4 parser objects sequentially and transforms the return values usingmap
. - sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Map5<? super A, ? super B, ? super C, ? super D, ? super E, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 5 parser objects sequentially and transforms the return values usingmap
. - sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Map6<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 6 parser objects sequentially and transforms the return values usingmap
. - sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Parser<G>, Map7<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 7 parser objects sequentially and transforms the return values usingmap
. - sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Parser<G>, Parser<H>, Map8<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? extends T>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs 7 parser objects sequentially and transforms the return values usingmap
. - sequence(Pattern...) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matches the input againstpatterns
sequentially. - SequencePattern - Class in org.jparsec.pattern
- SequencePattern(Pattern...) - Constructor for class org.jparsec.pattern.SequencePattern
- sequential(Parser<Rule>) - Static method in class org.jparsec.examples.bnf.parser.RuleParser
- SequentialRule - Class in org.jparsec.examples.bnf.ast
-
Represents a sequential rule.
- SequentialRule(List<Rule>) - Constructor for class org.jparsec.examples.bnf.ast.SequentialRule
- set(int, int) - Method in class org.jparsec.internal.util.IntList
-
Sets the value at index
i
toval
. - set(int, int, Object) - Method in class org.jparsec.ParseContext
- setAt(int, int) - Method in class org.jparsec.ParseContext
- setCurrentResult(Object) - Method in interface org.jparsec.ParseContext.ParserTrace
-
Whenever a labeled parser succeeds, it calls this method to set its result in the trace.
- setEndIndex(int) - Method in class org.jparsec.TreeNode
- setErrorState(int, int, ParseContext.ErrorType) - Method in class org.jparsec.ParseContext
- setErrorState(int, int, ParseContext.ErrorType, List<Object>) - Method in class org.jparsec.ParseContext
- setLatestChild(TreeNode) - Method in interface org.jparsec.ParseContext.ParserTrace
-
Called by labeled parser to reset the current child node when the current node failed.
- setParseTree(ParseTree) - Method in exception org.jparsec.error.ParserException
- setResult(Object) - Method in class org.jparsec.TreeNode
- setStateAs(ParseContext.ParserTrace) - Method in interface org.jparsec.ParseContext.ParserTrace
-
Set the enclosing parser's tree state into the nested parser's state.
- shorter(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
- shorter(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
- shortest(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs every element ofparsers
and selects the shortest match. - shortest(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
-
A
Parser
that runs every element ofparsers
and selects the shortest match. - shortest(Pattern...) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that tries all ofpatterns
, and picks the one with the shortest match length. - significand - Variable in class org.jparsec.Tokens.ScientificNotation
-
The significand (mantissa) before the "E".
- simpleCase(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- SimpleCaseExpression - Class in org.jparsec.examples.sql.ast
-
The "
case expr when cond then val ... end
" expression. - SimpleCaseExpression(Expression, List<Pair<Expression, Expression>>, Expression) - Constructor for class org.jparsec.examples.sql.ast.SimpleCaseExpression
- simpleMethodCall(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- simpleNewExpression(Parser<Expression>, Parser<DefBody>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- SimpleTypeLiteral - Class in org.jparsec.examples.java.ast.type
-
Represents a non-array type literal.
- SimpleTypeLiteral(List<String>, List<TypeLiteral>) - Constructor for class org.jparsec.examples.java.ast.type.SimpleTypeLiteral
- SINGLE_QUOTE_CHAR - Static variable in class org.jparsec.Scanners
-
Scanner for a c/c++/java style character literal.
- SINGLE_QUOTE_CHAR - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that recognizes a character literal quoted by single quote characte ('
and tokenizes to aCharacter
. - SINGLE_QUOTE_STRING - Static variable in class org.jparsec.Scanners
-
Scanner with a pattern for SQL style string literal.
- SINGLE_QUOTE_STRING - Static variable in class org.jparsec.TokenizerMaps
-
A
Function
that tokenizes a SQL style string literal quoted by single quote character ('
) and tokenizes to aString
. - SINGLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.CharLiteral
-
A tokenizer that parses single quoted character literal (escaped by
'\'
), and then converts the character to aCharacter
token. - SINGLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.StringLiteral
-
A tokenizer that parses single quoted string literal (single quote is escaped with another single quote), and transforms the quoted content by applying escape characters.
- SingleExpression - Class in org.jparsec.examples.statement.ast
- SingleExpression(String) - Constructor for class org.jparsec.examples.statement.ast.SingleExpression
- size() - Method in class org.jparsec.internal.util.IntList
-
Gets the number of int values stored.
- skipAtLeast(int) - Method in class org.jparsec.Parser
- SkipAtLeastParser - Class in org.jparsec
- SkipAtLeastParser(Parser<?>, int) - Constructor for class org.jparsec.SkipAtLeastParser
- skipMany() - Method in class org.jparsec.Parser
-
p.skipMany()
is equivalent top*
in EBNF. - skipMany1() - Method in class org.jparsec.Parser
-
p.skipMany1()
is equivalent top+
in EBNF. - skipTimes(int) - Method in class org.jparsec.Parser
- skipTimes(int, int) - Method in class org.jparsec.Parser
-
A
Parser
that runsthis
parser for at leastmin
times and up tomax
times, with all the return values ignored. - SkipTimesParser - Class in org.jparsec
- SkipTimesParser(Parser<?>, int, int) - Constructor for class org.jparsec.SkipTimesParser
- slice(OperatorTable.Operator[], int, int) - Static method in class org.jparsec.OperatorTable
- some(int) - Method in class org.jparsec.pattern.Pattern
-
Deprecated.Use
Pattern.atMost(int)
instead. - some(int, int) - Method in class org.jparsec.pattern.Pattern
-
Deprecated.Use
Pattern.times(int, int)
instead. - some(int, int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Deprecated.Use
Patterns.times(int, int, CharPredicate)
instead. - some(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Deprecated.Use
Patterns.atMost(int, CharPredicate)
instead. - sort(String...) - Static method in class org.jparsec.Operators
-
Sorts
names
into a new array by putting short string first, unless a shorter string is a prefix of a longer string, in which case, the longer string is before the prefix string. - source - Variable in class org.jparsec.ParseContext
- source - Variable in class org.jparsec.SourceLocator
- source - Variable in class org.jparsec.WithSource
- source() - Method in class org.jparsec.Parser
-
A
Parser
that returns the matched string in the original source. - SOURCE_LOCATION - Static variable in class org.jparsec.Parsers
-
A
Parser
that returns the current location in the source. - SourceLocation - Class in org.jparsec
-
Represents a location inside the source.
- SourceLocation(int, SourceLocator) - Constructor for class org.jparsec.SourceLocation
- SourceLocator - Class in org.jparsec
-
Locates the line and column number of a 0-based index in the source.
- SourceLocator(CharSequence) - Constructor for class org.jparsec.SourceLocator
-
Creates a
SourceLocator
object. - SourceLocator(CharSequence, int, int) - Constructor for class org.jparsec.SourceLocator
-
Creates a
SourceLocator
object. - SQL_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for SQL style block comment.
- SQL_DELIMITER - Static variable in class org.jparsec.Scanners
-
Scanner for the SQL style delimiter of tokens.
- SQL_LINE_COMMENT - Static variable in class org.jparsec.Scanners
-
Scanner for SQL style line comment.
- STAR - org.jparsec.examples.bnf.ast.Quantifier
- start - Variable in class org.jparsec.ReluctantBetweenParser
-
Deprecated.
- startColumnNumber - Variable in class org.jparsec.SourceLocator
-
The first column number.
- startFresh(ParseContext) - Method in interface org.jparsec.ParseContext.ParserTrace
-
Called when tokenizer passes on to token-level parser.
- startLineNumber - Variable in class org.jparsec.SourceLocator
-
The first line number.
- statement - Variable in class org.jparsec.examples.java.ast.statement.DoWhileStatement
- statement - Variable in class org.jparsec.examples.java.ast.statement.ForeachStatement
- statement - Variable in class org.jparsec.examples.java.ast.statement.ForStatement
- statement - Variable in class org.jparsec.examples.java.ast.statement.LabelStatement
- statement - Variable in class org.jparsec.examples.java.ast.statement.WhileStatement
- statement(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- Statement - Interface in org.jparsec.examples.java.ast.statement
-
Represents any statement.
- StatementParser - Class in org.jparsec.examples.java.parser
-
Parses a statement.
- StatementParser() - Constructor for class org.jparsec.examples.java.parser.StatementParser
- statements - Variable in class org.jparsec.examples.java.ast.statement.BlockStatement
- STATIC - org.jparsec.examples.java.ast.statement.SystemModifier
- staticImport - Variable in class org.jparsec.examples.java.ast.declaration.Import
- step - Variable in class org.jparsec.ParseContext
-
The current logical step.
- stillThere(int, int) - Method in class org.jparsec.ParseContext
- STRICT_DECIMAL - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a decimal number that has at least one digit before the decimal point. - string - Variable in class org.jparsec.examples.java.ast.expression.StringLiteral
- string - Variable in class org.jparsec.examples.sql.ast.StringExpression
- string(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matchesstring
literally. - string(String) - Static method in class org.jparsec.Scanners
-
Matches the input against the specified string.
- string(String, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Patterns.string(str).toScanner(name)
. - STRING - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- STRING - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- STRING_LITERAL - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- stringCase - Variable in class org.jparsec.Terminals.Builder
- StringCase - Enum in org.jparsec
- StringCase() - Constructor for enum org.jparsec.StringCase
- stringCaseInsensitive(String) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
object that matchesstring
case insensitively. - stringCaseInsensitive(String) - Static method in class org.jparsec.Scanners
-
A scanner that matches the input against the specified string case insensitively.
- stringCaseInsensitive(String, String) - Static method in class org.jparsec.Scanners
-
Deprecated.Use
Patterns.stringCaseInsensitive(str).toScanner(name)
. - StringExpression - Class in org.jparsec.examples.sql.ast
-
A string literal.
- StringExpression(String) - Constructor for class org.jparsec.examples.sql.ast.StringExpression
- StringLiteral - Class in org.jparsec.examples.java.ast.expression
-
Represents a string literal.
- StringLiteral() - Constructor for class org.jparsec.Terminals.StringLiteral
- StringLiteral(String) - Constructor for class org.jparsec.examples.java.ast.expression.StringLiteral
- StringLiteralsTranslator - Class in org.jparsec
-
Translates the recognized string literal to a
String
. - StringLiteralsTranslator() - Constructor for class org.jparsec.StringLiteralsTranslator
- Strings - Class in org.jparsec.examples.common
-
Manipulates String.
- Strings - Class in org.jparsec.internal.util
-
Internal utility for
String
operation. - Strings() - Constructor for class org.jparsec.examples.common.Strings
- Strings() - Constructor for class org.jparsec.internal.util.Strings
- subscript(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.ExpressionParser
- succeeds() - Method in class org.jparsec.Parser
- Suite(String) - Constructor for class org.jparsec.Operators.Suite
- Suites() - Constructor for class org.jparsec.Operators.Suites
- SUPER - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- superCall(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- SuperCallStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a "this(params)" statement.
- SuperCallStatement(List<Expression>) - Constructor for class org.jparsec.examples.java.ast.statement.SuperCallStatement
- superclass - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- SuperExpression - Class in org.jparsec.examples.java.ast.expression
-
Represents the "super" keyword.
- SuperExpression() - Constructor for class org.jparsec.examples.java.ast.expression.SuperExpression
- switchStatement(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- SwitchStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the "switch case" expression.
- SwitchStatement(Expression, List<Pair<Expression, Statement>>, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.SwitchStatement
- SYNCHRONIZED - org.jparsec.examples.java.ast.statement.SystemModifier
- synchronizedBlock(Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- SynchronizedBlockStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents "synchronized" block.
- SynchronizedBlockStatement(Statement) - Constructor for class org.jparsec.examples.java.ast.statement.SynchronizedBlockStatement
- SYSTEM_MODIFIER - Static variable in class org.jparsec.examples.java.parser.StatementParser
- systemModifier(SystemModifier...) - Static method in class org.jparsec.examples.java.parser.StatementParser
- SystemModifier - Enum in org.jparsec.examples.java.ast.statement
-
Represents built in modifiers.
- SystemModifier() - Constructor for enum org.jparsec.examples.java.ast.statement.SystemModifier
T
- TABLE - Static variable in class org.jparsec.examples.sql.parser.RelationParser
- tableName - Variable in class org.jparsec.examples.sql.ast.TableRelation
- TableRelation - Class in org.jparsec.examples.sql.ast
-
Models a table name.
- TableRelation(QualifiedName) - Constructor for class org.jparsec.examples.sql.ast.TableRelation
- tag - Variable in class org.jparsec.Tokens.Fragment
- tag() - Method in class org.jparsec.Tokens.Fragment
-
Returns the tag of the token value.
- Tag() - Constructor for enum org.jparsec.Tokens.Tag
- tail(List<T>) - Static method in class org.jparsec.examples.common.ValueObject
- target - Variable in class org.jparsec.examples.java.ast.expression.MethodCallExpression
- term(String) - Static method in class org.jparsec.examples.bnf.parser.TerminalParser
- term(String) - Static method in class org.jparsec.examples.java.parser.TerminalParser
- term(String) - Static method in class org.jparsec.examples.sql.parser.TerminalParser
- TerminalParser - Class in org.jparsec.examples.bnf.parser
-
Parses terminals in a bnf.
- TerminalParser - Class in org.jparsec.examples.java.parser
-
Parser for terminals.
- TerminalParser - Class in org.jparsec.examples.sql.parser
-
Lexers and terminal level parsers for SQL.
- TerminalParser() - Constructor for class org.jparsec.examples.bnf.parser.TerminalParser
- TerminalParser() - Constructor for class org.jparsec.examples.java.parser.TerminalParser
- TerminalParser() - Constructor for class org.jparsec.examples.sql.parser.TerminalParser
- Terminals - Class in org.jparsec
-
Provides convenient API to build lexer and parsers for terminals.
- Terminals(Lexicon) - Constructor for class org.jparsec.Terminals
- Terminals.Builder - Class in org.jparsec
-
Builds
Terminals
instance by defining the words and keywords recognized. - Terminals.CharLiteral - Class in org.jparsec
-
Entry point for parser and tokenizers of character literal.
- Terminals.DecimalLiteral - Class in org.jparsec
-
Entry point for parser and tokenizers of decimal number literal represented as
String
. - Terminals.Identifier - Class in org.jparsec
-
Entry point for parser and tokenizers of regular identifier.
- Terminals.IntegerLiteral - Class in org.jparsec
-
Entry point for any arbitrary integer literal represented as a
String
. - Terminals.LongLiteral - Class in org.jparsec
-
Entry point for parser and tokenizers of integral number literal represented as
Long
. - Terminals.ScientificNumberLiteral - Class in org.jparsec
-
Entry point for parser and tokenizers of scientific notation literal.
- Terminals.StringLiteral - Class in org.jparsec
-
Entry point for parser and tokenizers of string literal.
- TERMS - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- TERMS - Static variable in class org.jparsec.examples.java.parser.TerminalParser
- TERMS - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- text - Variable in class org.jparsec.Tokens.Fragment
- text() - Method in class org.jparsec.Tokens.Fragment
-
Returns the text of the token value.
- then - Variable in class org.jparsec.examples.java.ast.statement.IfStatement
- THIS - Static variable in class org.jparsec.examples.java.parser.ExpressionParser
- thisCall(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ThisCallStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a "this(params)" statement.
- ThisCallStatement(List<Expression>) - Constructor for class org.jparsec.examples.java.ast.statement.ThisCallStatement
- ThisExpression - Class in org.jparsec.examples.java.ast.expression
-
"this" or "A.B.this".
- ThisExpression(List<String>) - Constructor for class org.jparsec.examples.java.ast.expression.ThisExpression
- thrown - Variable in class org.jparsec.examples.java.ast.statement.ThrowStatement
- throwStatement(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- ThrowStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a "throw" statement.
- ThrowStatement(Expression) - Constructor for class org.jparsec.examples.java.ast.statement.ThrowStatement
- times(int) - Method in class org.jparsec.Parser
- times(int) - Method in class org.jparsec.pattern.Pattern
-
Returns
Pattern
object that matches the input against this pattern forn
times. - times(int, int) - Method in class org.jparsec.Parser
- times(int, int) - Method in class org.jparsec.pattern.Pattern
- times(int, int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
-
Returns a
Pattern
that matches at leastmin
and up tomax
number of characters satisfyingpredicate
, - times(Pattern, int, int) - Static method in class org.jparsec.pattern.Pattern
- to - Variable in class org.jparsec.examples.sql.ast.BetweenExpression
- TO_INTEGER - Static variable in class org.jparsec.functors.Maps
-
Deprecated.Use
Integer::valueOf
directly. - TO_LOWER_CASE - Static variable in class org.jparsec.functors.Maps
-
The
UnaryOperator
that maps aString
to lower case usingLocale.US
. - TO_UPPER_CASE - Static variable in class org.jparsec.functors.Maps
-
The
UnaryOperator
that maps aString
to upper case usingLocale.US
. - toArray() - Method in class org.jparsec.internal.util.IntList
-
Creates a
int[]
object with all the elements. - toArray() - Method in class org.jparsec.Operators.Suites
-
Collapses the names in each suite by traversing the suites in reverse order, so that smaller suites are collapsed first and generally shorter operators will be placed before longer ones unless it is contained by a longer operator.
- toArray(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
-
We always convert
Iterable
to an array to avoid the cost of creating a new object each time the parser runs. - toArray(Collection<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
- toArrayWithIteration(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
- toDecDigit(char) - Static method in class org.jparsec.NumberLiteralsTranslator
- toEnum(Class<E>) - Static method in class org.jparsec.functors.Maps
-
Returns a
Map
that maps the string representation of an enum to the corresponding enum value by callingEnum.valueOf(Class, String)
. - toErrorMessage(String, String, ParseErrorDetails, Location) - Static method in exception org.jparsec.error.ParserException
- toHexDigit(char) - Static method in class org.jparsec.NumberLiteralsTranslator
- toIndex(int) - Method in class org.jparsec.ParseContext
-
Translates the logical position to physical index in the original source.
- toIndex(int) - Method in class org.jparsec.ParserState
- toIndex(int) - Method in class org.jparsec.ScannerState
- token() - Method in class org.jparsec.Parser
- token(Object) - Static method in class org.jparsec.Indentation
- token(String) - Method in class org.jparsec.Lexicon
-
A
Parser
that recognizes the token identified bytokenName
. - token(String...) - Method in class org.jparsec.Lexicon
-
A
Parser
that recognizes a token identified by any oftokenNames
. - token(TokenMap<? extends T>) - Static method in class org.jparsec.Parsers
-
Checks the current token with the
fromToken
object. - Token - Class in org.jparsec
-
Represents any token with a token value and the 0-based index in the source.
- Token(int, int, Object) - Constructor for class org.jparsec.Token
- tokenizeDecimalAsLong(String) - Static method in class org.jparsec.NumberLiteralsTranslator
- tokenizeDoubleQuote(String) - Static method in class org.jparsec.StringLiteralsTranslator
- tokenizeHexAsLong(String) - Static method in class org.jparsec.NumberLiteralsTranslator
- tokenizeOctalAsLong(String) - Static method in class org.jparsec.NumberLiteralsTranslator
- tokenizer - Variable in class org.jparsec.Lexicon
-
The scanner that recognizes any of the lexical word.
- tokenizer() - Method in class org.jparsec.Lexicon
-
Returns the tokenizer that tokenizes all terminals (operators, keywords, identifiers etc.) managed in this instance.
- TOKENIZER - Static variable in class org.jparsec.examples.bnf.parser.TerminalParser
- TOKENIZER - Static variable in class org.jparsec.examples.java.parser.TerminalParser
- TOKENIZER - Static variable in class org.jparsec.examples.sql.parser.TerminalParser
- TOKENIZER - Static variable in class org.jparsec.Terminals.DecimalLiteral
-
A tokenizer that parses a decimal number (valid patterns are:
1, 2.3, 00, 0., .23
) and returns aTokens.Fragment
token tagged asTokens.Tag.DECIMAL
. - TOKENIZER - Static variable in class org.jparsec.Terminals.Identifier
-
A tokenizer that parses any identifier and returns a
Tokens.Fragment
token tagged asTokens.Tag.IDENTIFIER
. - TOKENIZER - Static variable in class org.jparsec.Terminals.IntegerLiteral
-
A tokenizer that parses a integer number (valid patterns are:
0, 00, 1, 10
) and returns aTokens.Fragment
token tagged asTokens.Tag.INTEGER
. - TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
-
A tokenizer that parses decimal, hex, and octal numbers and converts the string to a
Long
value. - TOKENIZER - Static variable in class org.jparsec.Terminals.ScientificNumberLiteral
-
A tokenizer that parses a scientific notation and converts the string to a
Tokens.ScientificNotation
value. - TokenizerMaps - Class in org.jparsec
-
Common
Function
implementations that maps fromString
. - TokenizerMaps() - Constructor for class org.jparsec.TokenizerMaps
- tokenizeSingleQuote(String) - Static method in class org.jparsec.StringLiteralsTranslator
- tokenizeWordsWith(Function<String, ?>) - Method in class org.jparsec.Terminals.Builder
-
Configures alternative tokenization strategy for words (except keywords).
- TokenMap<T> - Interface in org.jparsec
-
Maps a
Token
to a an object of typeT
, or null if the token isn't recognized. - tokens(Parser<? extends Collection<Token>>) - Static method in class org.jparsec.Parsers
-
Converts a parser of a collection of
Token
to a parser of an array ofToken
. - Tokens - Class in org.jparsec
-
Provides common token values.
- Tokens() - Constructor for class org.jparsec.Tokens
- Tokens.Fragment - Class in org.jparsec
-
Represents a fragment tagged according to its semantics.
- Tokens.ScientificNotation - Class in org.jparsec
-
Represents a scientific notation with a significand (mantissa) and an exponent.
- Tokens.Tag - Enum in org.jparsec
-
Pre-built
Tokens.Fragment
token tags. - tokenType(Class<? extends T>, String) - Static method in class org.jparsec.Parsers
-
Checks whether the current token value is of
type
, in which case, the token value is returned and parse succeeds. - tokenWithSameValue(Object) - Static method in class org.jparsec.InternalFunctors
- toKey(String) - Method in enum org.jparsec.StringCase
- toLowerCase(Locale) - Static method in class org.jparsec.functors.Maps
-
Returns a
UnaryOperator
that maps aString
to lower case usinglocale
. - toOctDigit(char) - Static method in class org.jparsec.NumberLiteralsTranslator
- toPair() - Static method in class org.jparsec.functors.Maps
- toParseTree() - Method in class org.jparsec.TreeNode
-
Converts this node into a
ParseTree
representation. - toScanner(String) - Method in class org.jparsec.pattern.Pattern
-
Returns a scanner parser using
this
pattern. - toString() - Method in class org.jparsec.BestParser
- toString() - Method in class org.jparsec.DelimitedParser
- toString() - Method in class org.jparsec.EmptyListParser
- toString() - Method in class org.jparsec.error.Location
-
Deprecated.
- toString() - Method in class org.jparsec.examples.bnf.ast.AltRule
- toString() - Method in class org.jparsec.examples.bnf.ast.LiteralRule
- toString() - Method in class org.jparsec.examples.bnf.ast.QuantifiedRule
- toString() - Method in enum org.jparsec.examples.bnf.ast.Quantifier
- toString() - Method in class org.jparsec.examples.bnf.ast.RuleDef
- toString() - Method in class org.jparsec.examples.bnf.ast.RuleReference
- toString() - Method in class org.jparsec.examples.bnf.ast.SequentialRule
- toString() - Method in class org.jparsec.examples.common.ValueObject
- toString() - Method in class org.jparsec.examples.java.ast.declaration.AnnotationDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.ClassDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.ClassInitializerDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.ConstructorDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.DefBody
- toString() - Method in class org.jparsec.examples.java.ast.declaration.EnumDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.EnumDef.Value
- toString() - Method in class org.jparsec.examples.java.ast.declaration.FieldDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.Import
- toString() - Method in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.MethodDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.NestedDef
- toString() - Method in class org.jparsec.examples.java.ast.declaration.Program
- toString() - Method in class org.jparsec.examples.java.ast.declaration.QualifiedName
- toString() - Method in class org.jparsec.examples.java.ast.declaration.TypeParameterDef
- toString() - Method in class org.jparsec.examples.java.ast.expression.ArrayInitializer
- toString() - Method in class org.jparsec.examples.java.ast.expression.ArraySubscriptExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.BinaryExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.BooleanLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.CastExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.CharLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.ClassLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.ConditionalExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.ConstructorReference
- toString() - Method in class org.jparsec.examples.java.ast.expression.DecimalPointNumberLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.Identifier
- toString() - Method in class org.jparsec.examples.java.ast.expression.InstanceOfExpression
- toString() - Method in enum org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- toString() - Method in class org.jparsec.examples.java.ast.expression.IntegerLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.LambdaExpression.Parameter
- toString() - Method in class org.jparsec.examples.java.ast.expression.LambdaExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.MethodCallExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.MethodReference
- toString() - Method in class org.jparsec.examples.java.ast.expression.NewArrayExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.NewExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.NullExpression
- toString() - Method in enum org.jparsec.examples.java.ast.expression.NumberType
- toString() - Method in enum org.jparsec.examples.java.ast.expression.Operator
- toString() - Method in class org.jparsec.examples.java.ast.expression.PostfixUnaryExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.PrefixUnaryExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.QualifiedExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.ScientificNumberLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.StringLiteral
- toString() - Method in class org.jparsec.examples.java.ast.expression.SuperExpression
- toString() - Method in class org.jparsec.examples.java.ast.expression.ThisExpression
- toString() - Method in class org.jparsec.examples.java.ast.statement.Annotation.Element
- toString() - Method in class org.jparsec.examples.java.ast.statement.Annotation
- toString() - Method in class org.jparsec.examples.java.ast.statement.AssertStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.BlockStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.BreakStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ContinueStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.DoWhileStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ExpressionListStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ExpressionStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ForeachStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ForStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.IfStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.LabelStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.NopStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ParameterDef
- toString() - Method in class org.jparsec.examples.java.ast.statement.ReturnStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.SuperCallStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.SwitchStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.SynchronizedBlockStatement
- toString() - Method in enum org.jparsec.examples.java.ast.statement.SystemModifier
- toString() - Method in class org.jparsec.examples.java.ast.statement.ThisCallStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.ThrowStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.TryStatement.CatchBlock
- toString() - Method in class org.jparsec.examples.java.ast.statement.TryStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.VarStatement
- toString() - Method in class org.jparsec.examples.java.ast.statement.VarStatement.Var
- toString() - Method in class org.jparsec.examples.java.ast.statement.WhileStatement
- toString() - Method in class org.jparsec.examples.java.ast.type.ArrayTypeLiteral
- toString() - Method in class org.jparsec.examples.java.ast.type.LowerBoundWildcard
- toString() - Method in class org.jparsec.examples.java.ast.type.SimpleTypeLiteral
- toString() - Method in class org.jparsec.examples.java.ast.type.UpperBoundWildcard
- toString() - Method in class org.jparsec.functors.Pair
-
Deprecated.
- toString() - Method in class org.jparsec.functors.Tuple3
-
Deprecated.
- toString() - Method in class org.jparsec.functors.Tuple4
-
Deprecated.
- toString() - Method in class org.jparsec.functors.Tuple5
-
Deprecated.
- toString() - Method in class org.jparsec.NestableBlockCommentScanner
- toString() - Method in class org.jparsec.ParseContext
- toString() - Method in class org.jparsec.Parser.Rhs
- toString() - Method in class org.jparsec.ParseTree
- toString() - Method in class org.jparsec.pattern.LowerBoundedPattern
- toString() - Method in class org.jparsec.pattern.ManyPattern
- toString() - Method in class org.jparsec.pattern.NotPattern
- toString() - Method in class org.jparsec.pattern.OptionalPattern
- toString() - Method in class org.jparsec.pattern.OrPattern
- toString() - Method in class org.jparsec.pattern.PeekPattern
- toString() - Method in class org.jparsec.pattern.RepeatCharPredicatePattern
- toString() - Method in class org.jparsec.pattern.RepeatPattern
- toString() - Method in class org.jparsec.pattern.SequencePattern
- toString() - Method in class org.jparsec.pattern.UpperBoundedPattern
- toString() - Method in class org.jparsec.RepeatAtLeastParser
- toString() - Method in class org.jparsec.RepeatTimesParser
- toString() - Method in class org.jparsec.SkipAtLeastParser
- toString() - Method in class org.jparsec.SkipTimesParser
- toString() - Method in class org.jparsec.Token
-
Returns the string representation of the token value.
- toString() - Method in class org.jparsec.Tokens.Fragment
- toString() - Method in class org.jparsec.Tokens.ScientificNotation
- toString() - Method in class org.jparsec.TreeNode
- toString() - Method in class org.jparsec.WithSource
-
Returns the underlying source text.
- toString(ParseErrorDetails, Location) - Static method in class org.jparsec.error.ErrorReporter
- toTuple3() - Static method in class org.jparsec.functors.Maps
-
Deprecated.
- toTuple4() - Static method in class org.jparsec.functors.Maps
-
Deprecated.
- toTuple5() - Static method in class org.jparsec.functors.Maps
-
Deprecated.
- toUpperCase(Locale) - Static method in class org.jparsec.functors.Maps
-
Returns a
UnaryOperator
that maps aString
to upper case usinglocale
. - toValueList(Object, Field[]) - Static method in class org.jparsec.examples.common.ValueObject
- trace - Variable in class org.jparsec.ParseContext
- TRANSIENT - org.jparsec.examples.java.ast.statement.SystemModifier
- TreeNode - Class in org.jparsec
-
A TreeNode remembers it's parent (which corresponds to a parent parser that syntactically encloses this parter), it's previous node (which is the parser at the same syntactical level and had just succeeded before this parser started).
- TreeNode(String, int) - Constructor for class org.jparsec.TreeNode
- TreeNode(String, int, TreeNode, TreeNode) - Constructor for class org.jparsec.TreeNode
- TRUE - Static variable in class org.jparsec.Parsers
- tryBlock - Variable in class org.jparsec.examples.java.ast.statement.TryStatement
- tryStatement(Parser<Modifier>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- TryStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the "try-catch-finally" statement.
- TryStatement(BlockStatement, List<TryStatement.CatchBlock>, BlockStatement) - Constructor for class org.jparsec.examples.java.ast.statement.TryStatement
- TryStatement.CatchBlock - Class in org.jparsec.examples.java.ast.statement
- tuple(A, B) - Static method in class org.jparsec.functors.Tuples
-
Deprecated.Returns a
Pair
of 2 objects. - tuple(A, B, C) - Static method in class org.jparsec.functors.Tuples
-
Deprecated.Returns a
Tuple3
of 3 objects. - tuple(A, B, C, D) - Static method in class org.jparsec.functors.Tuples
-
Deprecated.Returns a
Tuple4
of 4 objects. - tuple(A, B, C, D, E) - Static method in class org.jparsec.functors.Tuples
-
Deprecated.Returns a
Tuple5
of 5 objects. - tuple(Parser<? extends A>, Parser<? extends B>) - Static method in class org.jparsec.Parsers
-
Deprecated.Prefer to converting to your own object with a lambda.
- tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>) - Static method in class org.jparsec.Parsers
-
Deprecated.Prefer to converting to your own object with a lambda.
- tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>, Parser<? extends D>) - Static method in class org.jparsec.Parsers
-
Deprecated.Prefer to converting to your own object with a lambda.
- tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>, Parser<? extends D>, Parser<? extends E>) - Static method in class org.jparsec.Parsers
-
Deprecated.Prefer to converting to your own object with a lambda.
- tuple(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- Tuple3<A,B,C> - Class in org.jparsec.functors
-
Deprecated.Prefer to using a lambda expression to convert to your own type.
- Tuple3(A, B, C) - Constructor for class org.jparsec.functors.Tuple3
-
Deprecated.
- Tuple4<A,B,C,D> - Class in org.jparsec.functors
-
Deprecated.Prefer to using a lambda expression to convert to your own type.
- Tuple4(A, B, C, D) - Constructor for class org.jparsec.functors.Tuple4
-
Deprecated.
- Tuple5<A,B,C,D,E> - Class in org.jparsec.functors
-
Deprecated.Prefer to using a lambda expression to convert to your own type.
- Tuple5(A, B, C, D, E) - Constructor for class org.jparsec.functors.Tuple5
-
Deprecated.
- TupleExpression - Class in org.jparsec.examples.sql.ast
-
Models a tuple of expressions such as "(1, 2, 3)".
- TupleExpression(List<Expression>) - Constructor for class org.jparsec.examples.sql.ast.TupleExpression
- Tuples - Class in org.jparsec.functors
-
Deprecated.Prefer to using a lambda expression to convert to your own type.
- Tuples() - Constructor for class org.jparsec.functors.Tuples
-
Deprecated.
- type - Variable in class org.jparsec.examples.java.ast.declaration.FieldDef
- type - Variable in class org.jparsec.examples.java.ast.expression.CastExpression
- type - Variable in class org.jparsec.examples.java.ast.expression.DecimalPointNumberLiteral
- type - Variable in class org.jparsec.examples.java.ast.expression.IntegerLiteral
- type - Variable in class org.jparsec.examples.java.ast.expression.LambdaExpression.Parameter
- type - Variable in class org.jparsec.examples.java.ast.expression.NewExpression
- type - Variable in class org.jparsec.examples.java.ast.expression.ScientificNumberLiteral
- type - Variable in class org.jparsec.examples.java.ast.statement.Annotation
- type - Variable in class org.jparsec.examples.java.ast.statement.ForeachStatement
- type - Variable in class org.jparsec.examples.java.ast.statement.ParameterDef
- type - Variable in class org.jparsec.examples.java.ast.statement.VarStatement
- TYPE_LITERAL - Static variable in class org.jparsec.examples.java.parser.TypeLiteralParser
- TYPE_PARAMETER - Static variable in class org.jparsec.examples.java.parser.DeclarationParser
- TYPE_PARAMETERS - Static variable in class org.jparsec.examples.java.parser.DeclarationParser
- typeLiteral - Variable in class org.jparsec.examples.java.ast.expression.InstanceOfExpression
- TypeLiteral - Interface in org.jparsec.examples.java.ast.type
-
Represents a type literal.
- TypeLiteralParser - Class in org.jparsec.examples.java.parser
-
Parses any type literal.
- TypeLiteralParser() - Constructor for class org.jparsec.examples.java.parser.TypeLiteralParser
- TypeParameterDef - Class in org.jparsec.examples.java.ast.declaration
-
Represents a type parameter in a type or method definition.
- TypeParameterDef(String, TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.declaration.TypeParameterDef
- typeParameters - Variable in class org.jparsec.examples.java.ast.declaration.ClassDef
- typeParameters - Variable in class org.jparsec.examples.java.ast.declaration.InterfaceDef
- typeParameters - Variable in class org.jparsec.examples.java.ast.declaration.MethodDef
- typeParameters - Variable in class org.jparsec.examples.java.ast.expression.MethodCallExpression
- typeParameters - Variable in class org.jparsec.examples.java.ast.expression.MethodReference
U
- unary(String, Op) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- Unary<T> - Interface in org.jparsec.functors
-
Deprecated.Use
UnaryOperator
instead. - UnaryExpression - Class in org.jparsec.examples.sql.ast
-
Models an expression with unary operator.
- UnaryExpression(Op, Expression) - Constructor for class org.jparsec.examples.sql.ast.UnaryExpression
- UnaryRelationalExpression - Class in org.jparsec.examples.sql.ast
-
Models an expression like "exists (select ...)".
- UnaryRelationalExpression(Relation, Op) - Constructor for class org.jparsec.examples.sql.ast.UnaryRelationalExpression
- unexpected(String) - Method in class org.jparsec.ParseContext
- unexpected(String) - Static method in class org.jparsec.Parsers
-
A
Parser
that fails and reports thatname
is logically unexpected. - UNEXPECTED - org.jparsec.ParseContext.ErrorType
-
When
Parser.not()
is called. - union(Lexicon) - Method in class org.jparsec.Lexicon
- union(Parser<Relation>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- UnionRelation - Class in org.jparsec.examples.sql.ast
-
Models a union relation.
- UnionRelation(Relation, boolean, Relation) - Constructor for class org.jparsec.examples.sql.ast.UnionRelation
- unique(Comparator<String>, String...) - Static method in class org.jparsec.Keywords
- unit(Parser<Rule>) - Static method in class org.jparsec.examples.bnf.parser.RuleParser
- UNSIGNED_ARSHIFT - org.jparsec.examples.java.ast.expression.Operator
- UNSIGNED_RSHIFT - org.jparsec.examples.java.ast.expression.Operator
- until(Parser<?>) - Method in class org.jparsec.Parser
-
A
Parser
that matches this parser zero or many times until the given parser succeeds. - UpperBoundedPattern - Class in org.jparsec.pattern
- UpperBoundedPattern(int, Pattern) - Constructor for class org.jparsec.pattern.UpperBoundedPattern
- UpperBoundWildcard - Class in org.jparsec.examples.java.ast.type
-
Represents "? extends SomeBound" type literal.
- UpperBoundWildcard(TypeLiteral) - Constructor for class org.jparsec.examples.java.ast.type.UpperBoundWildcard
- USED_ON_TOKEN_INPUT - Static variable in class org.jparsec.ParserState
V
- value - Variable in class org.jparsec.examples.java.ast.declaration.FieldDef
- value - Variable in class org.jparsec.examples.java.ast.expression.BooleanLiteral
- value - Variable in class org.jparsec.examples.java.ast.statement.Annotation.Element
- value - Variable in class org.jparsec.examples.java.ast.statement.ReturnStatement
- value - Variable in class org.jparsec.examples.java.ast.statement.VarStatement.Var
- value - Variable in class org.jparsec.ParseTree
- value - Variable in class org.jparsec.Token
- value - Variable in class org.jparsec.WithSource
- value() - Method in class org.jparsec.Token
-
Returns the token value.
- Value(String, List<Expression>, List<Member>) - Constructor for class org.jparsec.examples.java.ast.declaration.EnumDef.Value
- valueExpr - Variable in class org.jparsec.examples.statement.ast.FullExpression
- ValueExpression - Class in org.jparsec.examples.statement.ast
- ValueExpression(String) - Constructor for class org.jparsec.examples.statement.ast.ValueExpression
- valueFieldMap - Static variable in class org.jparsec.examples.common.ValueObject
- valueList() - Method in class org.jparsec.examples.common.ValueObject
- ValueObject - Class in org.jparsec.examples.common
-
Base class that implements
Object.equals(Object)
,Object.hashCode()
andObject#toString()
on final fields. - ValueObject() - Constructor for class org.jparsec.examples.common.ValueObject
- valueOf(String) - Static method in enum org.jparsec.examples.bnf.ast.Quantifier
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.java.ast.expression.NumberType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.java.ast.expression.Operator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.java.ast.statement.SystemModifier
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.sql.ast.JoinType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.examples.sql.ast.Op
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.Indentation.Punctuation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.IntOrder
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.OperatorTable.Associativity
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.ParseContext.ErrorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.Parser.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.StringCase
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.jparsec.Tokens.Tag
-
Returns the enum constant of this type with the specified name.
- values - Variable in class org.jparsec.examples.java.ast.declaration.EnumDef
- values - Variable in class org.jparsec.examples.java.ast.expression.ArrayInitializer
- values() - Static method in enum org.jparsec.examples.bnf.ast.Quantifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.java.ast.expression.NumberType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.java.ast.expression.Operator
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.java.ast.statement.SystemModifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.sql.ast.JoinType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.examples.sql.ast.Op
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.Indentation.Punctuation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.IntOrder
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.OperatorTable.Associativity
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.ParseContext.ErrorType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.Parser.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.StringCase
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.jparsec.Tokens.Tag
-
Returns an array containing the constants of this enum type, in the order they are declared.
- var - Variable in class org.jparsec.examples.java.ast.statement.ForeachStatement
- Var(String, Expression) - Constructor for class org.jparsec.examples.java.ast.statement.VarStatement.Var
- vararg - Variable in class org.jparsec.examples.java.ast.statement.ParameterDef
- VarExpression - Class in org.jparsec.examples.statement.ast
- VarExpression(String) - Constructor for class org.jparsec.examples.statement.ast.VarExpression
- vars - Variable in class org.jparsec.examples.java.ast.statement.VarStatement
- varStatement(Parser<Expression>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- VarStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents a single variable declaration.
- VarStatement(List<Modifier>, TypeLiteral, List<VarStatement.Var>) - Constructor for class org.jparsec.examples.java.ast.statement.VarStatement
- VarStatement.Var - Class in org.jparsec.examples.java.ast.statement
- VOLATILE - org.jparsec.examples.java.ast.statement.SystemModifier
W
- whenThens(Parser<Expression>, Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.ExpressionParser
- where - Variable in class org.jparsec.examples.sql.ast.Select
- whereClause(Parser<Expression>) - Static method in class org.jparsec.examples.sql.parser.RelationParser
- whileStatement(Parser<Expression>, Parser<Statement>) - Static method in class org.jparsec.examples.java.parser.StatementParser
- WhileStatement - Class in org.jparsec.examples.java.ast.statement
-
Represents the "while () ..." statement.
- WhileStatement(Expression, Statement) - Constructor for class org.jparsec.examples.java.ast.statement.WhileStatement
- WHITESPACES - Static variable in class org.jparsec.Indentation
-
A
Parser
that recognizes 1 or more whitespace characters on the same line. - WHITESPACES - Static variable in class org.jparsec.Scanners
-
A scanner that scans greedily for 1 or more whitespace characters.
- wildcard - Variable in class org.jparsec.examples.java.ast.declaration.Import
- wildcard(Parser<TypeLiteral>) - Static method in class org.jparsec.examples.java.parser.TypeLiteralParser
- WILDCARD - Static variable in class org.jparsec.examples.sql.parser.ExpressionParser
- WildcardExpression - Class in org.jparsec.examples.sql.ast
-
"a.b.*" or "*".
- WildcardExpression(QualifiedName) - Constructor for class org.jparsec.examples.sql.ast.WildcardExpression
- withErrorSuppressed(Parser<?>) - Method in class org.jparsec.ParseContext
-
Runs
parser
with error recording suppressed. - withSource() - Method in class org.jparsec.Parser
-
A
Parser
that returns both parsed object and matched string. - WithSource<T> - Class in org.jparsec
-
Parsed result with the matched source text.
- WithSource(T, String) - Constructor for class org.jparsec.WithSource
- word(String) - Method in class org.jparsec.Lexicon
-
Gets the token value identified by the token text.
- WORD - Static variable in class org.jparsec.pattern.Patterns
-
A
Pattern
object that matches a standard english word, which starts with either an underscore or an alpha character, followed by 0 or more alphanumeric characters. - words - Variable in class org.jparsec.Lexicon
-
Maps lexical word name to token value.
- words(Parser<String>) - Method in class org.jparsec.Terminals
-
Starts to build a new
Terminals
instance that recognizes words not already recognized bythis
Terminals
instance (typically operators). - wordScanner - Variable in class org.jparsec.Terminals.Builder
- wordTokenMap - Variable in class org.jparsec.Terminals.Builder
All Classes All Packages