}
private ComparisonExpressionOperator toComparisonOperator(HiddenTokenAwareTree token) {
switch (token.getType()) {
case LessLexer.GREATER:
return new ComparisonExpressionOperator(token, ComparisonExpressionOperator.Operator.GREATER);
case LessLexer.GREATER_OR_EQUAL:
return new ComparisonExpressionOperator(token, ComparisonExpressionOperator.Operator.GREATER_OR_EQUAL);
case LessLexer.OPEQ:
return new ComparisonExpressionOperator(token, ComparisonExpressionOperator.Operator.OPEQ);
case LessLexer.LOWER_OR_EQUAL:
return new ComparisonExpressionOperator(token, ComparisonExpressionOperator.Operator.LOWER_OR_EQUAL);
case LessLexer.LOWER:
return new ComparisonExpressionOperator(token, ComparisonExpressionOperator.Operator.LOWER);
default:
break;
}