public class RowRecogHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static Comparator<RowRecogNFAStateEntry> |
END_STATE_COMPARATOR |
Constructor and Description |
---|
RowRecogHelper() |
Modifier and Type | Method and Description |
---|---|
protected static RowRecogNFAStrandResult |
buildStartStates(RowRecogExprNode parent,
Map<String,ExprNode> variableDefinitions,
Map<String,Pair<Integer,Boolean>> variableStreams,
boolean[] exprRequiresMultimatchState)
Build a list of start states from the parent node.
|
static Map<String,Set<String>> |
determineVisibility(RowRecogExprNode pattern) |
static RowRecogNFAViewService |
recursiveFindRegexService(Viewable top) |
static void |
recursiveInspectVariables(RowRecogExprNode parent,
boolean isMultiple,
Set<String> variablesSingle,
Set<String> variablesMultiple)
Inspect variables recursively.
|
protected static final Comparator<RowRecogNFAStateEntry> END_STATE_COMPARATOR
public static RowRecogNFAViewService recursiveFindRegexService(Viewable top)
public static void recursiveInspectVariables(RowRecogExprNode parent, boolean isMultiple, Set<String> variablesSingle, Set<String> variablesMultiple)
parent
- parent regex expression nodeisMultiple
- if the variable in the stack is multiple of singlevariablesSingle
- single variables listvariablesMultiple
- group variables listprotected static RowRecogNFAStrandResult buildStartStates(RowRecogExprNode parent, Map<String,ExprNode> variableDefinitions, Map<String,Pair<Integer,Boolean>> variableStreams, boolean[] exprRequiresMultimatchState)
parent
- to build start state forvariableDefinitions
- each variable and its expressionsvariableStreams
- variable name and its stream numberexprRequiresMultimatchState
- indicator whether multi-match state requiredpublic static Map<String,Set<String>> determineVisibility(RowRecogExprNode pattern)
Copyright © 2005–2018. All rights reserved.