Class FunctorHandler
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.parser.AbstractHandler
-
- edu.uiuc.ncsa.security.util.functor.parser.event.FunctorHandler
-
- All Implemented Interfaces:
CommaListener
,DelimiterListener
,DoubleQuoteListener
,Serializable
,EventListener
public class FunctorHandler extends AbstractHandler implements DoubleQuoteListener, DelimiterListener, CommaListener
This creates functors by adding arguments to them.Created by Jeff Gaynor
on 7/16/18 at 11:46 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.functor.parser.AbstractHandler
closeDelimiterCount, CONDITIONAL_TYPE, FUNCTOR_TYPE, openDelimiterCount, SWITCH_TYPE, used
-
-
Constructor Summary
Constructors Constructor Description FunctorHandler(JFunctorFactory functorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class edu.uiuc.ncsa.security.util.functor.parser.AbstractHandler
areDelimitersBalanced, convertType, equals, getFunctorFactory, isUsed, toString
-
-
-
-
Constructor Detail
-
FunctorHandler
public FunctorHandler(JFunctorFactory functorFactory)
-
-
Method Detail
-
getFResult
public Object getFResult()
Return the result from te functor that was executed.- Returns:
-
getFunctor
public JFunctor getFunctor()
-
lookupFunctor
protected JFunctor lookupFunctor(String name)
Internal call to the factory to find the functor there by name.- Parameters:
name
-- Returns:
-
gotComma
public void gotComma(CommaEvent commaEvent)
- Specified by:
gotComma
in interfaceCommaListener
-
getHandlerType
public int getHandlerType()
Description copied from class:AbstractHandler
Allows for determining the type of handler without resorting to a lot of java class operations.- Specified by:
getHandlerType
in classAbstractHandler
- Returns:
-
openDelimiter
public void openDelimiter(DelimiterEvent delimeterEvent)
- Specified by:
openDelimiter
in interfaceDelimiterListener
- Overrides:
openDelimiter
in classAbstractHandler
-
closeDelimiter
public void closeDelimiter(DelimiterEvent delimeterEvent)
- Specified by:
closeDelimiter
in interfaceDelimiterListener
- Overrides:
closeDelimiter
in classAbstractHandler
-
gotText
public void gotText(DoubleQuoteEvent dqEvent)
- Specified by:
gotText
in interfaceDoubleQuoteListener
-
reset
public void reset()
- Specified by:
reset
in interfaceDelimiterListener
- Overrides:
reset
in classAbstractHandler
-
-