public abstract class AbstractExpressionVisitor<ResultType,ExceptionType extends EcmException> extends Object implements ExpressionVisitor<ResultType,ExceptionType>
ExpressionVisitor
implements the iteration over children.Constructor and Description |
---|
AbstractExpressionVisitor() |
Modifier and Type | Method and Description |
---|---|
abstract ResultType |
finishVisit(BooleanAndExpression expression,
List<ResultType> childrenResults) |
abstract ResultType |
finishVisit(BooleanOrExpression expression,
List<ResultType> childrenResults) |
abstract ResultType |
finishVisit(Statement expression,
ResultType childResult) |
abstract ResultType |
handleNegation(BooleanNotExpression expression,
ResultType innerResult) |
abstract void |
startVisit(BooleanAndExpression expression) |
abstract void |
startVisit(BooleanOrExpression expression) |
abstract void |
startVisit(Statement expression) |
ResultType |
visit(BooleanAndExpression expression)
This callback is called when a boolean 'and' is encountered.
|
ResultType |
visit(BooleanNotExpression expression)
This callback is called when a boolean 'not' is encountered.
|
ResultType |
visit(BooleanOrExpression expression)
This callback is called when a boolean 'or' is encountered.
|
ResultType |
visit(Statement expression)
This callback is called when a statement is encountered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visit, visit
public ResultType visit(BooleanAndExpression expression) throws ExceptionType extends EcmException
ExpressionVisitor
visit
in interface ExpressionVisitor<ResultType,ExceptionType extends EcmException>
expression
- the expression encounteredExceptionType
ExceptionType extends EcmException
public ResultType visit(BooleanOrExpression expression) throws ExceptionType extends EcmException
ExpressionVisitor
visit
in interface ExpressionVisitor<ResultType,ExceptionType extends EcmException>
expression
- the expression encounteredExceptionType
ExceptionType extends EcmException
public ResultType visit(Statement expression) throws ExceptionType extends EcmException
ExpressionVisitor
visit
in interface ExpressionVisitor<ResultType,ExceptionType extends EcmException>
expression
- the expression encounteredExceptionType
ExceptionType extends EcmException
public ResultType visit(BooleanNotExpression expression) throws ExceptionType extends EcmException
ExpressionVisitor
visit
in interface ExpressionVisitor<ResultType,ExceptionType extends EcmException>
expression
- the expression encounteredExceptionType
ExceptionType extends EcmException
public abstract void startVisit(BooleanAndExpression expression) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract ResultType finishVisit(BooleanAndExpression expression, List<ResultType> childrenResults) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract void startVisit(BooleanOrExpression expression) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract ResultType finishVisit(BooleanOrExpression expression, List<ResultType> childrenResults) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract void startVisit(Statement expression) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract ResultType finishVisit(Statement expression, ResultType childResult) throws ExceptionType extends EcmException
ExceptionType extends EcmException
public abstract ResultType handleNegation(BooleanNotExpression expression, ResultType innerResult) throws ExceptionType extends EcmException
ExceptionType extends EcmException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.