writer.append("<li>"); appendExpression(order.getExpression(), writer); final ExpressionKind kind = order.getExpression().getKind(); if (kind == ExpressionKind.PROPERTY || kind == ExpressionKind.LITERAL) { writer.append("<br />");
writer.append("<li>"); appendExpression(order.getExpression(), writer); final ExpressionKind kind = order.getExpression().getKind(); if (kind == ExpressionKind.PROPERTY || kind == ExpressionKind.LITERAL) { writer.append("<br />");
private void appendExpression(final CommonExpression expression, final Writer writer) throws IOException { final ExpressionKind kind = expression.getKind(); writer.append("<span class=\"kind\">") .append(kind.toString())
private void appendExpression(final CommonExpression expression, final Writer writer) throws IOException { final ExpressionKind kind = expression.getKind(); writer.append("<span class=\"kind\">") .append(kind.toString())
private <T> String evaluateExpression(final T data, final CommonExpression expression) throws ODataException { switch (expression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) expression; while (currentExpression != null) { final PropertyExpression currentPropertyExpression = (PropertyExpression) (currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getProperty() : currentExpression); final EdmTyped currentProperty = currentPropertyExpression.getEdmProperty(); currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getPath() : null;
private <T> String evaluateExpression(final T data, final CommonExpression expression) throws ODataException { switch (expression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) expression; while (currentExpression != null) { final PropertyExpression currentPropertyExpression = (PropertyExpression) (currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getProperty() : currentExpression); final EdmTyped currentProperty = currentPropertyExpression.getEdmProperty(); currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getPath() : null;
private <T> String evaluateExpression(final T data, final CommonExpression expression) throws ODataException { switch (expression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) expression; while (currentExpression != null) { final PropertyExpression currentPropertyExpression = (PropertyExpression) (currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getProperty() : currentExpression); final EdmTyped currentProperty = currentPropertyExpression.getEdmProperty(); currentExpression.getKind() == ExpressionKind.MEMBER ? ((MemberExpression) currentExpression).getPath() : null;
switch (whereExpression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) whereExpression; final BinaryExpression binaryExpression = (BinaryExpression) whereExpression; MethodOperator operator = null; if (binaryExpression.getLeftOperand().getKind() == ExpressionKind.METHOD) { operator = ((MethodExpression) binaryExpression.getLeftOperand()).getMethod(); MemberExpression member = null; CommonExpression tempExp = whereExpression; while (tempExp != null && tempExp.getKind() == ExpressionKind.MEMBER) { member = (MemberExpression) tempExp; if (i > 0) {
switch (whereExpression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) whereExpression; final BinaryExpression binaryExpression = (BinaryExpression) whereExpression; MethodOperator operator = null; if (binaryExpression.getLeftOperand().getKind() == ExpressionKind.METHOD) { operator = ((MethodExpression) binaryExpression.getLeftOperand()).getMethod(); MemberExpression member = null; CommonExpression tempExp = whereExpression; while (tempExp != null && tempExp.getKind() == ExpressionKind.MEMBER) { member = (MemberExpression) tempExp; if (i > 0) {
if (orderBy.getExpression().getKind() == ExpressionKind.MEMBER) { orderByField = parseToJPAWhereExpression(orderBy.getExpression(), tableAlias); } else {
if (orderBy.getExpression().getKind() == ExpressionKind.MEMBER) { orderByField = parseToJPAWhereExpression(orderBy.getExpression(), tableAlias); } else {
if ((leftNode.getKind() == ExpressionKind.PROPERTY) && (tokenList.lookToken().getKind() == TokenKind.OPENPAREN)) {
if ((leftNode.getKind() == ExpressionKind.PROPERTY) && (tokenList.lookToken().getKind() == TokenKind.OPENPAREN)) {
if ((leftNode.getKind() == ExpressionKind.PROPERTY) && (tokenList.lookToken().getKind() == TokenKind.OPENPAREN)) {