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 voidcloseDelimiter(DelimiterEvent delimeterEvent)ObjectgetFResult()Return the result from te functor that was executed.JFunctorgetFunctor()intgetHandlerType()Allows for determining the type of handler without resorting to a lot of java class operations.voidgotComma(CommaEvent commaEvent)voidgotText(DoubleQuoteEvent dqEvent)protected JFunctorlookupFunctor(String name)Internal call to the factory to find the functor there by name.voidopenDelimiter(DelimiterEvent delimeterEvent)voidreset()-
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:
gotCommain interfaceCommaListener
-
getHandlerType
public int getHandlerType()
Description copied from class:AbstractHandlerAllows for determining the type of handler without resorting to a lot of java class operations.- Specified by:
getHandlerTypein classAbstractHandler- Returns:
-
openDelimiter
public void openDelimiter(DelimiterEvent delimeterEvent)
- Specified by:
openDelimiterin interfaceDelimiterListener- Overrides:
openDelimiterin classAbstractHandler
-
closeDelimiter
public void closeDelimiter(DelimiterEvent delimeterEvent)
- Specified by:
closeDelimiterin interfaceDelimiterListener- Overrides:
closeDelimiterin classAbstractHandler
-
gotText
public void gotText(DoubleQuoteEvent dqEvent)
- Specified by:
gotTextin interfaceDoubleQuoteListener
-
reset
public void reset()
- Specified by:
resetin interfaceDelimiterListener- Overrides:
resetin classAbstractHandler
-
-