Class AbstractHandler
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.parser.AbstractHandler
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConditionalHandler,FunctorHandler,SwitchHandler
public abstract class AbstractHandler extends Object implements Serializable
Top-level handler class. This has the routine bookkeeping in it for any handler, such as tracking the number of delimiters, whether it has been used and some other handy utilities.Created by Jeff Gaynor
on 7/15/18 at 5:21 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intcloseDelimiterCountstatic intCONDITIONAL_TYPEstatic intFUNCTOR_TYPEprotected intopenDelimiterCountstatic intSWITCH_TYPEprotected booleanused
-
Constructor Summary
Constructors Constructor Description AbstractHandler(JFunctorFactory functorFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanareDelimitersBalanced()voidcloseDelimiter(DelimiterEvent delimeterEvent)protected StringconvertType(FunctorType type)protected booleanequals(String name, FunctorType type)JFunctorFactorygetFunctorFactory()abstract intgetHandlerType()Allows for determining the type of handler without resorting to a lot of java class operations.booleanisUsed()voidopenDelimiter(DelimiterEvent delimeterEvent)voidreset()StringtoString()
-
-
-
Field Detail
-
SWITCH_TYPE
public static final int SWITCH_TYPE
- See Also:
- Constant Field Values
-
CONDITIONAL_TYPE
public static final int CONDITIONAL_TYPE
- See Also:
- Constant Field Values
-
FUNCTOR_TYPE
public static final int FUNCTOR_TYPE
- See Also:
- Constant Field Values
-
openDelimiterCount
protected int openDelimiterCount
-
closeDelimiterCount
protected int closeDelimiterCount
-
used
protected boolean used
-
-
Constructor Detail
-
AbstractHandler
public AbstractHandler(JFunctorFactory functorFactory)
-
-
Method Detail
-
getHandlerType
public abstract int getHandlerType()
Allows for determining the type of handler without resorting to a lot of java class operations.- Returns:
-
getFunctorFactory
public JFunctorFactory getFunctorFactory()
-
convertType
protected String convertType(FunctorType type)
-
equals
protected boolean equals(String name, FunctorType type)
-
isUsed
public boolean isUsed()
-
reset
public void reset()
-
areDelimitersBalanced
public boolean areDelimitersBalanced()
-
openDelimiter
public void openDelimiter(DelimiterEvent delimeterEvent)
-
closeDelimiter
public void closeDelimiter(DelimiterEvent delimeterEvent)
-
-