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 int
closeDelimiterCount
static int
CONDITIONAL_TYPE
static int
FUNCTOR_TYPE
protected int
openDelimiterCount
static int
SWITCH_TYPE
protected boolean
used
-
Constructor Summary
Constructors Constructor Description AbstractHandler(JFunctorFactory functorFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
areDelimitersBalanced()
void
closeDelimiter(DelimiterEvent delimeterEvent)
protected String
convertType(FunctorType type)
protected boolean
equals(String name, FunctorType type)
JFunctorFactory
getFunctorFactory()
abstract int
getHandlerType()
Allows for determining the type of handler without resorting to a lot of java class operations.boolean
isUsed()
void
openDelimiter(DelimiterEvent delimeterEvent)
void
reset()
String
toString()
-
-
-
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)
-
-