Package nz.org.riskscape.rl.ast
Class BaseExpressionConverter<T>
java.lang.Object
nz.org.riskscape.rl.ast.BaseExpressionConverter<T>
- Type Parameters:
T
- Type of data to be passed
- All Implemented Interfaces:
ExpressionVisitor<T,
Expression>
public abstract class BaseExpressionConverter<T>
extends Object
implements ExpressionVisitor<T,Expression>
A abstract ExpressionVisitor
for converting expressions in a narrowly defined way. *
This class implements all methods such that they will throw UnsupportedOperationException
if any of them are called.
Implementations are only required to override the methods required to acheive their functionality
and know that if any unexpected expression types are visited that an UnsupportedOperationException
will be thrown.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisit
(BinaryOperation expression, T data) visit
(BracketedExpression expression, T data) visit
(FunctionCall expression, T data) visit
(ListDeclaration expression, T data) visit
(ParameterToken parameterToken, T data) visit
(PropertyAccess expression, T data) visit
(SelectAllExpression expression, T data) visit
(StructDeclaration expression, T data)
-
Constructor Details
-
BaseExpressionConverter
public BaseExpressionConverter()
-
-
Method Details
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-
visit
- Specified by:
visit
in interfaceExpressionVisitor<T,
Expression>
-