Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(long) - Method in class redempt.redlex.data.LongStackSet
- addChildren(Token...) - Method in class redempt.redlex.data.Token
-
Appends the given tokens to this token's children
- allByName(String) - Method in class redempt.redlex.data.Token
-
Find all tokens in the tree by name, breadth-first
- allByName(TraversalOrder, String) - Method in class redempt.redlex.data.Token
-
Find all tokens in the tree by name
- allByNames(String...) - Method in class redempt.redlex.data.Token
-
Find all tokens in the tree by any number of names and create a map, breadth-first
- allByNames(TraversalOrder, String...) - Method in class redempt.redlex.data.Token
-
Find all tokens in the tree by any number of names and create a map
- ArrayUtils - Class in redempt.redlex.processing
- ArrayUtils() - Constructor for class redempt.redlex.processing.ArrayUtils
B
- begin(TokenType, int) - Method in class redempt.redlex.debug.DebugHistory
- BNFException - Exception Class in redempt.redlex.exception
- BNFException(String) - Constructor for exception class redempt.redlex.exception.BNFException
- BNFParser - Class in redempt.redlex.bnf
-
A parser used to create lexers from BNF files
- BNFParser() - Constructor for class redempt.redlex.bnf.BNFParser
- BREADTH_FIRST - Enum constant in enum class redempt.redlex.processing.TraversalOrder
-
Traverse starting at the current node, from left to right internal nodes followed by their leaf nodes
- byName(CullStrategy, String...) - Static method in interface redempt.redlex.processing.TokenFilter
C
- calcFirstCharacters() - Method in class redempt.redlex.data.TokenType
- calcFirstCharacters() - Method in class redempt.redlex.debug.DebugToken
- calcFirstCharacters() - Method in class redempt.redlex.token.CharGroupToken
- calcFirstCharacters() - Method in class redempt.redlex.token.CharSetToken
- calcFirstCharacters() - Method in class redempt.redlex.token.ChoiceToken
- calcFirstCharacters() - Method in class redempt.redlex.token.EndOfFileToken
- calcFirstCharacters() - Method in class redempt.redlex.token.ListToken
- calcFirstCharacters() - Method in class redempt.redlex.token.NotToken
- calcFirstCharacters() - Method in class redempt.redlex.token.PlaceholderToken
- calcFirstCharacters() - Method in class redempt.redlex.token.RepeatingToken
- calcFirstCharacters() - Method in class redempt.redlex.token.StringChoiceToken
- calcFirstCharacters() - Method in class redempt.redlex.token.StringToken
- calcFirstCharacters() - Method in class redempt.redlex.token.WrapperToken
- CharGroupToken - Class in redempt.redlex.token
- CharGroupToken(String, int, int) - Constructor for class redempt.redlex.token.CharGroupToken
- CharGroupToken(String, int, int, boolean) - Constructor for class redempt.redlex.token.CharGroupToken
- CharSetToken - Class in redempt.redlex.token
- CharSetToken(String, boolean, char...) - Constructor for class redempt.redlex.token.CharSetToken
- CharSetToken(String, char...) - Constructor for class redempt.redlex.token.CharSetToken
- CharTree - Class in redempt.redlex.data
- CharTree() - Constructor for class redempt.redlex.data.CharTree
- CHILD_OBJECTS - Enum constant in enum class redempt.redlex.parser.ParserComponent.ComponentType
- ChoiceToken - Class in redempt.redlex.token
- ChoiceToken(String, TokenType...) - Constructor for class redempt.redlex.token.ChoiceToken
- coerce(ParserComponent.ComponentType, String, Function<T, Object>) - Static method in interface redempt.redlex.parser.ParserComponent
- concat(T[], T[], Function<Integer, T[]>) - Static method in class redempt.redlex.processing.ArrayUtils
-
Concatenates two arrays
- contains(long) - Method in class redempt.redlex.data.LongStackSet
- create(Lexer, ParserComponent...) - Static method in class redempt.redlex.parser.Parser
-
Creates a parser from a lexer and components
- createLexer(InputStream) - Static method in class redempt.redlex.bnf.BNFParser
-
Parses the input String and returns a Lexer
- createLexer(String) - Static method in class redempt.redlex.bnf.BNFParser
-
Parses the input String and returns a Lexer
- createLexer(Path) - Static method in class redempt.redlex.bnf.BNFParser
-
Parses the input String and returns a Lexer
- cull(TokenFilter...) - Method in class redempt.redlex.data.Token
-
Culls tokens in the tokens which are descendants of this one using filters.
- CullStrategy - Enum Class in redempt.redlex.processing
-
An enum of actions that can be taken by Cullers to act on a TokenInstance
D
- debug() - Method in class redempt.redlex.processing.Lexer
-
Create a DebugLexer to diagnose issues with your bnf.
- DebugEntry - Class in redempt.redlex.debug
-
Represents one step in the tokenizing process
- DebugEntry(TokenType, int, int, int, int, int) - Constructor for class redempt.redlex.debug.DebugEntry
- DebugHistory - Class in redempt.redlex.debug
-
Represents the entire history of a tokenizing process
- DebugHistory() - Constructor for class redempt.redlex.debug.DebugHistory
- DebugLexer - Class in redempt.redlex.debug
-
A specialized Lexer used for debugging
- DebugLexer(TokenType) - Constructor for class redempt.redlex.debug.DebugLexer
-
Create a Lexer from a token.
- DebugToken - Class in redempt.redlex.debug
-
A wrapper for tokens that reports additional information for debug purposes
- DebugToken(TokenType, DebugHistory) - Constructor for class redempt.redlex.debug.DebugToken
- DELETE_ALL - Enum constant in enum class redempt.redlex.processing.CullStrategy
-
Delete this node and its children
- DELETE_CHILDREN - Enum constant in enum class redempt.redlex.processing.CullStrategy
-
Delete the children of this node and change its status
- DEPTH_LEAF_FIRST - Enum constant in enum class redempt.redlex.processing.TraversalOrder
-
Traverse starting at the deepest node, from left to right leaf nodes in the tree followed by their parents
- DEPTH_ROOT_FIRST - Enum constant in enum class redempt.redlex.processing.TraversalOrder
-
Traverse starting at the root, followed by the entire left subtree, then the entire right subtree
E
- EMPTY - Static variable in class redempt.redlex.data.Token
- EndOfFileToken - Class in redempt.redlex.token
- EndOfFileToken(String) - Constructor for class redempt.redlex.token.EndOfFileToken
- equals(Object) - Method in class redempt.redlex.token.CharGroupToken
- equals(Object) - Method in class redempt.redlex.token.CharSetToken
- equals(Object) - Method in class redempt.redlex.token.StringToken
F
- filter(String...) - Method in class redempt.redlex.debug.DebugHistory
- filter(Predicate<String>) - Method in class redempt.redlex.debug.DebugHistory
- findForward(String, int) - Method in class redempt.redlex.data.CharTree
- findForward(String, int, LexContext) - Method in class redempt.redlex.data.TokenType
- findForward(String, int, LexContext) - Method in class redempt.redlex.debug.DebugToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.CharGroupToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.CharSetToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.ChoiceToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.EndOfFileToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.ListToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.NotToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.PlaceholderToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.RepeatingToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.StringChoiceToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.StringToken
- findForward(String, int, LexContext) - Method in class redempt.redlex.token.WrapperToken
- firstByName(String) - Method in class redempt.redlex.data.Token
-
Find the first token in the tree by name (breadth-first)
- flatten() - Static method in interface redempt.redlex.processing.TokenFilter
G
- getBaseString() - Method in class redempt.redlex.data.Token
- getChildren() - Method in interface redempt.redlex.data.ParentToken
- getChildren() - Method in class redempt.redlex.data.Token
- getChildren() - Method in class redempt.redlex.debug.DebugToken
- getChildren() - Method in class redempt.redlex.token.ChoiceToken
- getChildren() - Method in class redempt.redlex.token.ListToken
- getChildren() - Method in class redempt.redlex.token.NotToken
- getChildren() - Method in class redempt.redlex.token.RepeatingToken
- getChildren() - Method in class redempt.redlex.token.WrapperToken
- getCol() - Method in class redempt.redlex.debug.DebugEntry
- getDebugHistory() - Method in class redempt.redlex.debug.DebugLexer
- getDepth() - Method in class redempt.redlex.debug.DebugEntry
- getEnd() - Method in class redempt.redlex.data.Token
- getEntries() - Method in class redempt.redlex.debug.DebugHistory
- getFirstCharacters() - Method in class redempt.redlex.data.TokenType
- getFirstChars() - Method in class redempt.redlex.data.CharTree
- getHistory() - Method in class redempt.redlex.debug.DebugToken
- getId() - Method in class redempt.redlex.data.TokenType
- getIndex() - Method in class redempt.redlex.data.Token
- getLastPos() - Method in class redempt.redlex.data.LexContext
- getLastToken() - Method in class redempt.redlex.data.LexContext
- getLength() - Method in class redempt.redlex.debug.DebugEntry
- getLexer() - Method in class redempt.redlex.data.TokenType
- getLexer() - Method in class redempt.redlex.parser.Parser
- getLine() - Method in class redempt.redlex.debug.DebugEntry
- getMessage() - Method in class redempt.redlex.data.TokenType
- getMessage() - Method in class redempt.redlex.token.NotToken
- getName() - Method in class redempt.redlex.data.TokenType
- getName() - Method in interface redempt.redlex.parser.ParserComponent
- getNext() - Method in class redempt.redlex.data.Token
- getObject() - Method in class redempt.redlex.data.Token
- getObject() - Method in class redempt.redlex.processing.ObjectToken
- getOwner() - Method in class redempt.redlex.debug.DebugEntry
- getParent() - Method in class redempt.redlex.data.Token
- getPrevious() - Method in class redempt.redlex.data.Token
- getPriority() - Method in enum class redempt.redlex.processing.CullStrategy
- getRoot() - Method in class redempt.redlex.processing.Lexer
- getStart() - Method in class redempt.redlex.data.Token
- getStatus() - Method in class redempt.redlex.debug.DebugEntry
- getStrategy(Token) - Method in class redempt.redlex.processing.Lexer
- getString() - Method in class redempt.redlex.token.StringToken
- getType() - Method in class redempt.redlex.data.Token
- getType() - Method in interface redempt.redlex.parser.ParserComponent
- getValue() - Method in class redempt.redlex.data.Token
- getWrappedToken() - Method in class redempt.redlex.processing.ObjectToken
H
- hashCode() - Method in class redempt.redlex.token.CharGroupToken
- hashCode() - Method in class redempt.redlex.token.CharSetToken
- hashCode() - Method in class redempt.redlex.token.StringToken
I
- IGNORE - Enum constant in enum class redempt.redlex.processing.CullStrategy
-
Leave this node as is
- isCaseSensitive() - Method in class redempt.redlex.token.StringToken
J
- joinChildren(String) - Method in class redempt.redlex.data.Token
-
Joins the String values of the children of this node separated by a delimiter
- joinLeaves(String) - Method in class redempt.redlex.data.Token
-
Joins the leaf nodes of this subtree separated by a delimiter
L
- length() - Method in class redempt.redlex.data.Token
- LexContext - Class in redempt.redlex.data
- LexContext() - Constructor for class redempt.redlex.data.LexContext
- LexContext(int) - Constructor for class redempt.redlex.data.LexContext
- Lexer - Class in redempt.redlex.processing
-
A lexer which will tokenize an input String.
- Lexer(TokenType) - Constructor for class redempt.redlex.processing.Lexer
-
Create a Lexer from a token.
- LexException - Exception Class in redempt.redlex.exception
-
Thrown when a Lexer cannot tokenize an input because the tokens are not satisfied
- LexException(String) - Constructor for exception class redempt.redlex.exception.LexException
- LIFT_CHILDREN - Enum constant in enum class redempt.redlex.processing.CullStrategy
-
Delete this node, and lift its children into the parent node
- liftChildren() - Method in class redempt.redlex.data.Token
-
Removes this token from its parent, replacing it with its children
- ListToken - Class in redempt.redlex.token
- ListToken(String, TokenType...) - Constructor for class redempt.redlex.token.ListToken
- LongStackSet - Class in redempt.redlex.data
- LongStackSet() - Constructor for class redempt.redlex.data.LongStackSet
M
- mapChildren(String, Function<Object[], Object>) - Static method in interface redempt.redlex.parser.ParserComponent
-
Creates a ParserComponent that operates on the parsed Objects of its child tokens
- mapString(String, Function<String, Object>) - Static method in interface redempt.redlex.parser.ParserComponent
-
Creates a ParserComponent that operates on the String value of a token
- mapToken(String, Function<Token, Object>) - Static method in interface redempt.redlex.parser.ParserComponent
-
Creates a ParserComponent that operates directly on a token
- minLength() - Method in class redempt.redlex.data.TokenType
- minLength() - Method in class redempt.redlex.debug.DebugToken
- minLength() - Method in class redempt.redlex.token.CharGroupToken
- minLength() - Method in class redempt.redlex.token.CharSetToken
- minLength() - Method in class redempt.redlex.token.ChoiceToken
- minLength() - Method in class redempt.redlex.token.EndOfFileToken
- minLength() - Method in class redempt.redlex.token.ListToken
- minLength() - Method in class redempt.redlex.token.NotToken
- minLength() - Method in class redempt.redlex.token.PlaceholderToken
- minLength() - Method in class redempt.redlex.token.RepeatingToken
- minLength() - Method in class redempt.redlex.token.StringChoiceToken
- minLength() - Method in class redempt.redlex.token.StringToken
- minLength() - Method in class redempt.redlex.token.WrapperToken
N
- nameMatches(String) - Method in class redempt.redlex.data.TokenType
-
Check whether the name of this TokenType matches the given name
- NotToken - Class in redempt.redlex.token
- NotToken(String, TokenType) - Constructor for class redempt.redlex.token.NotToken
O
- ObjectToken - Class in redempt.redlex.processing
- ObjectToken(Token, Object) - Constructor for class redempt.redlex.processing.ObjectToken
P
- ParentToken - Interface in redempt.redlex.data
- parse(Object) - Method in interface redempt.redlex.parser.ParserComponent
-
Parses an Object
- parse(String) - Method in class redempt.redlex.parser.Parser
-
Parses the input string and returns the result
- parse(String, boolean) - Method in class redempt.redlex.parser.Parser
-
Parses the input string and returns the result
- Parser - Class in redempt.redlex.parser
-
A parser which will parse an input string and convert it according to predefined rules
- ParserComponent - Interface in redempt.redlex.parser
-
Represents a parser able to process a single, specific token type
- ParserComponent.ComponentType - Enum Class in redempt.redlex.parser
- PlaceholderToken - Class in redempt.redlex.token
- PlaceholderToken(String) - Constructor for class redempt.redlex.token.PlaceholderToken
- pop() - Method in class redempt.redlex.data.LexContext
- pop() - Method in class redempt.redlex.data.LongStackSet
R
- RAW_TOKEN - Enum constant in enum class redempt.redlex.parser.ParserComponent.ComponentType
- redempt.redlex.bnf - package redempt.redlex.bnf
- redempt.redlex.data - package redempt.redlex.data
- redempt.redlex.debug - package redempt.redlex.debug
- redempt.redlex.exception - package redempt.redlex.exception
- redempt.redlex.parser - package redempt.redlex.parser
- redempt.redlex.processing - package redempt.redlex.processing
- redempt.redlex.token - package redempt.redlex.token
- remove() - Method in class redempt.redlex.data.Token
-
Removes this token from its parent
- remove(T[], int, Function<Integer, T[]>) - Static method in class redempt.redlex.processing.ArrayUtils
-
Creates a new array with a single element removed from the input array
- remove(T[], Function<Integer, T[]>, T...) - Static method in class redempt.redlex.processing.ArrayUtils
-
Remove elements from an array
- removeChildren(int, int) - Method in class redempt.redlex.data.Token
-
Removes a range of children from this token by index
- removeChildren(Token...) - Method in class redempt.redlex.data.Token
-
Removes the given children from this token
- removeEmpty() - Static method in interface redempt.redlex.processing.TokenFilter
- removeRange(T[], int, int, Function<Integer, T[]>) - Static method in class redempt.redlex.processing.ArrayUtils
-
Removes a range of elements from an array
- removeStringLiterals() - Static method in interface redempt.redlex.processing.TokenFilter
- removeUnnamed(CullStrategy) - Static method in interface redempt.redlex.processing.TokenFilter
- RepeatingToken - Class in redempt.redlex.token
- RepeatingToken(String, TokenType) - Constructor for class redempt.redlex.token.RepeatingToken
- RepeatingToken(String, TokenType, int, int) - Constructor for class redempt.redlex.token.RepeatingToken
- replaceParent() - Method in class redempt.redlex.data.Token
-
Replaces this token's parent with itself
- replacePlaceholders(Map<String, TokenType>) - Method in class redempt.redlex.data.TokenType
- replaceRange(T[], T[], int, int, Function<Integer, T[]>) - Static method in class redempt.redlex.processing.ArrayUtils
-
Replaces a range of an array with the contents of another array
- replaceWith(Object) - Method in class redempt.redlex.data.Token
-
Replaces this token in its parent with a token wrapper for the given object, or a token if the passed object is a token
- result(TokenType, int, int, boolean) - Method in class redempt.redlex.debug.DebugHistory
S
- set(String) - Method in class redempt.redlex.data.CharTree
- setChildren(Token[]) - Method in class redempt.redlex.data.Token
-
Sets the children of this Token
- setChildren(TokenType[]) - Method in interface redempt.redlex.data.ParentToken
- setChildren(TokenType[]) - Method in class redempt.redlex.debug.DebugToken
- setChildren(TokenType[]) - Method in class redempt.redlex.token.ChoiceToken
- setChildren(TokenType[]) - Method in class redempt.redlex.token.ListToken
- setChildren(TokenType[]) - Method in class redempt.redlex.token.NotToken
- setChildren(TokenType[]) - Method in class redempt.redlex.token.RepeatingToken
- setChildren(TokenType[]) - Method in class redempt.redlex.token.WrapperToken
- setLexer(Lexer) - Method in class redempt.redlex.data.TokenType
-
Sets the Lexer this TokenType and its children belong to
- setName(String) - Method in class redempt.redlex.data.TokenType
-
Sets the name of this TokenType
- setRetainEmpty(boolean) - Method in class redempt.redlex.processing.Lexer
-
Sets whether this Lexer will retain empty tokens
- setRetainStringLiterals(boolean) - Method in class redempt.redlex.processing.Lexer
-
Sets whether this Lexer will retain string literal tokens
- setRuleByName(CullStrategy, String...) - Method in class redempt.redlex.processing.Lexer
-
Sets how tokens with given names should be handled
- setString(String) - Method in class redempt.redlex.debug.DebugHistory
- setUnnamedRule(CullStrategy) - Method in class redempt.redlex.processing.Lexer
-
Sets how this Lexer will handle unnamed tokens
- setValue(String) - Method in class redempt.redlex.data.Token
-
Sets the String value of this Token
- SHALLOW - Enum constant in enum class redempt.redlex.processing.TraversalOrder
-
Traverse only the children of the current node, from left to right
- size() - Method in class redempt.redlex.data.LongStackSet
- splitChildren(String) - Method in class redempt.redlex.data.Token
-
Splits child tokens on a given token by name
- STRING_CONTENTS - Enum constant in enum class redempt.redlex.parser.ParserComponent.ComponentType
- StringChoiceToken - Class in redempt.redlex.token
- StringChoiceToken(String, String[]) - Constructor for class redempt.redlex.token.StringChoiceToken
- StringToken - Class in redempt.redlex.token
- StringToken(String, String) - Constructor for class redempt.redlex.token.StringToken
- StringToken(String, String, boolean) - Constructor for class redempt.redlex.token.StringToken
T
- test(Token) - Method in interface redempt.redlex.processing.TokenFilter
- Token - Class in redempt.redlex.data
-
Represents a Token created by a Lexer.
- Token(TokenType, String, int, int) - Constructor for class redempt.redlex.data.Token
- Token(TokenType, String, int, int, Token[]) - Constructor for class redempt.redlex.data.Token
- TokenFilter - Interface in redempt.redlex.processing
-
Filters Tokens to remove them from a tree
- tokenize(String) - Method in class redempt.redlex.debug.DebugLexer
- tokenize(String) - Method in class redempt.redlex.processing.Lexer
-
Tokenizes an input String
- tokenize(String, boolean) - Method in class redempt.redlex.debug.DebugLexer
- tokenize(String, boolean) - Method in class redempt.redlex.processing.Lexer
-
Tokenizes an input String
- TokenType - Class in redempt.redlex.data
-
Represents a type of token which can be used to create a Lexer
- TokenType(String) - Constructor for class redempt.redlex.data.TokenType
-
Create a new TokenType with the given name
- toString() - Method in class redempt.redlex.data.Token
- toString() - Method in class redempt.redlex.data.TokenType
- toString() - Method in class redempt.redlex.debug.DebugEntry
- toString() - Method in class redempt.redlex.debug.DebugHistory
- TraversalOrder - Enum Class in redempt.redlex.processing
- tryTokenize(String, int, LexContext) - Method in class redempt.redlex.data.TokenType
- tryTokenize(String, int, LexContext) - Method in class redempt.redlex.debug.DebugToken
U
- update(int, TokenType) - Method in class redempt.redlex.data.LexContext
V
- value - Variable in class redempt.redlex.data.Token
- valueOf(String) - Static method in enum class redempt.redlex.parser.ParserComponent.ComponentType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class redempt.redlex.processing.CullStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class redempt.redlex.processing.TraversalOrder
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class redempt.redlex.parser.ParserComponent.ComponentType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class redempt.redlex.processing.CullStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class redempt.redlex.processing.TraversalOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- walk(Consumer<TokenType>) - Method in class redempt.redlex.data.TokenType
- walk(TraversalOrder, Consumer<Token>) - Method in class redempt.redlex.data.Token
-
Walks this Token tree in the given order
- WrapperToken - Class in redempt.redlex.token
- WrapperToken(String, TokenType) - Constructor for class redempt.redlex.token.WrapperToken
-
Create a new TokenType with the given name
All Classes and Interfaces|All Packages|Serialized Form