public class EventDrivenParser extends Object
Created by Jeff Gaynor
on 7/16/18 at 11:27 AM
Modifier and Type | Field and Description |
---|---|
boolean |
debugOn |
static char |
escapeChar |
Constructor and Description |
---|
EventDrivenParser() |
EventDrivenParser(JFunctorFactory functorFactory)
Create and initialize this parser.
|
public static final char escapeChar
public boolean debugOn
public EventDrivenParser()
public EventDrivenParser(JFunctorFactory functorFactory)
functorFactory
- public void reset()
public void addBraceListener(DelimiterListener d)
public void addCommaListener(CommaListener c)
public void removeCommaListener(CommaListener c)
public void removeDQListener(DoubleQuoteListener d)
public void removeBracketListener(DelimiterListener d)
public void removeBraceListener(DelimiterListener d)
public void removeParenthesisListener(DelimiterListener d)
public void addDoubleQuoteListener(DoubleQuoteListener d)
public void addBracketListener(DelimiterListener d)
public void addParenthesisListener(DelimiterListener d)
protected void notifyOpenListeners(LinkedList<DelimiterListener> listeners, DelimiterEvent event)
protected void notifyCloseListeners(LinkedList<DelimiterListener> listeners, DelimiterEvent event)
protected void notifyCommaListeners(LinkedList<CommaListener> listeners, CommaEvent event)
protected void notifyDQListeners(LinkedList<DoubleQuoteListener> listeners, DoubleQuoteEvent event)
public SwitchHandler getSwitchHandler()
public FunctorHandler getFunctorHandler()
public ConditionalHandler getConditionalHandler()
protected void execute()
public JFunctor getFunctor()
public void init(String raw)
SwitchHandler
yourself, pass it in. You can always get it back after parsing
via getSwitchHandler()
.raw
- protected int getType(String raw)
raw
- public AbstractHandler parse(String input)
public AbstractHandler parse(String input, Map<String,String> replacements)
key = vo value = voPersonExternalIDthen the following transformation on the input line
get("${vo}");would result in the execution of
get("voPersonExternalID");You may set these values with the
jsetEnv
function in your script.input
- replacements
- public boolean hasSwitch()
public boolean hasConditional()
public boolean hasFunctor()
Copyright © 2019. All Rights Reserved.