public class FunctorHandler extends AbstractHandler implements DoubleQuoteListener, DelimiterListener, CommaListener
Created by Jeff Gaynor
on 7/16/18 at 11:46 AM
closeDelimiterCount, CONDITIONAL_TYPE, FUNCTOR_TYPE, openDelimiterCount, SWITCH_TYPE, used
Constructor and Description |
---|
FunctorHandler(JFunctorFactory functorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
closeDelimiter(DelimiterEvent delimeterEvent) |
Object |
getFResult()
Return the result from te functor that was executed.
|
JFunctor |
getFunctor() |
int |
getHandlerType()
Allows for determining the type of handler without resorting to a lot of java class operations.
|
void |
gotComma(CommaEvent commaEvent) |
void |
gotText(DoubleQuoteEvent dqEvent) |
protected JFunctor |
lookupFunctor(String name)
Internal call to the factory to find the functor there by name.
|
void |
openDelimiter(DelimiterEvent delimeterEvent) |
void |
reset() |
areDelimitersBalanced, convertType, equals, getFunctorFactory, isUsed, toString
public FunctorHandler(JFunctorFactory functorFactory)
public Object getFResult()
public JFunctor getFunctor()
protected JFunctor lookupFunctor(String name)
name
- public void gotComma(CommaEvent commaEvent)
gotComma
in interface CommaListener
public int getHandlerType()
AbstractHandler
getHandlerType
in class AbstractHandler
public void openDelimiter(DelimiterEvent delimeterEvent)
openDelimiter
in interface DelimiterListener
openDelimiter
in class AbstractHandler
public void closeDelimiter(DelimiterEvent delimeterEvent)
closeDelimiter
in interface DelimiterListener
closeDelimiter
in class AbstractHandler
public void gotText(DoubleQuoteEvent dqEvent)
gotText
in interface DoubleQuoteListener
public void reset()
reset
in interface DelimiterListener
reset
in class AbstractHandler
Copyright © 2019. All Rights Reserved.