public class ConditionalHandler extends AbstractHandler implements DelimiterListener, CommaListener
getLogicBlock()
call that returns the whole thing.
Created by Jeff Gaynor
on 7/16/18 at 12:00 PM
closeDelimiterCount, CONDITIONAL_TYPE, FUNCTOR_TYPE, openDelimiterCount, SWITCH_TYPE, used
Constructor and Description |
---|
ConditionalHandler(FunctorHandler functorHandler,
JFunctorFactory functorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
closeDelimiter(DelimiterEvent delimeterEvent) |
JFunctorImpl |
getCurrentBlock() |
FunctorHandler |
getFunctorHandler() |
int |
getHandlerType()
Allows for determining the type of handler without resorting to a lot of java class operations.
|
protected JFunctor |
getjFunctor(String name) |
LogicBlock |
getLogicBlock()
Call this absolutely last since it has to have all the parts to assemble itself.
|
void |
gotComma(CommaEvent commaEvent) |
void |
openDelimiter(DelimiterEvent delimeterEvent) |
void |
reset() |
void |
setFunctorHandler(FunctorHandler functorHandler) |
areDelimitersBalanced, convertType, equals, getFunctorFactory, isUsed, toString
public ConditionalHandler(FunctorHandler functorHandler, JFunctorFactory functorFactory)
public FunctorHandler getFunctorHandler()
public void setFunctorHandler(FunctorHandler functorHandler)
public int getHandlerType()
AbstractHandler
getHandlerType
in class AbstractHandler
public LogicBlock getLogicBlock()
public JFunctorImpl getCurrentBlock()
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 gotComma(CommaEvent commaEvent)
gotComma
in interface CommaListener
public void reset()
reset
in interface DelimiterListener
reset
in class AbstractHandler
Copyright © 2019. All Rights Reserved.