org.apache.olingo.odata2.api.uri.expression.ExpressionVisitor Java Examples
The following examples show how to use
org.apache.olingo.odata2.api.uri.expression.ExpressionVisitor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OrderByExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { ArrayList<Object> retParameters = new ArrayList<Object>(); for (OrderExpression order : orders) { Object retParameter = order.accept(visitor); retParameters.add(retParameter); } Object ret = visitor.visitOrderByExpression(this, orderbyString, retParameters); return ret; }
Example #2
Source File: MethodExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { ArrayList<Object> retParameters = new ArrayList<Object>(); for (CommonExpression parameter : actualParameters) { Object retParameter = parameter.accept(visitor); retParameters.add(retParameter); } Object ret = visitor.visitMethod(this, getMethod(), retParameters); return ret; }
Example #3
Source File: BinaryExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { Object retLeftSide = leftSide.accept(visitor); Object retRightSide = rightSide.accept(visitor); return visitor.visitBinary(this, operatorInfo.getOperator(), retLeftSide, retRightSide); }
Example #4
Source File: MemberExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { Object retSource = path.accept(visitor); Object retPath = property.accept(visitor); Object ret = visitor.visitMember(this, retSource, retPath); return ret; }
Example #5
Source File: UnaryExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 4 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { Object retOperand = operand.accept(visitor); return visitor.visitUnary(this, operatorInfo.getOperator(), retOperand); }
Example #6
Source File: LiteralExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 4 votes |
@Override public Object accept(final ExpressionVisitor visitor) { Object ret = visitor.visitLiteral(this, edmLiteral); return ret; }
Example #7
Source File: FilterExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 4 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { Object retCommonExpression = commonExpression.accept(visitor); return visitor.visitFilterExpression(this, filterString, retCommonExpression); }
Example #8
Source File: PropertyExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 4 votes |
@Override public Object accept(final ExpressionVisitor visitor) { Object ret = visitor.visitProperty(this, uriLiteral, edmProperty); return ret; }
Example #9
Source File: OrderExpressionImpl.java From olingo-odata2 with Apache License 2.0 | 4 votes |
@Override public Object accept(final ExpressionVisitor visitor) throws ExceptionVisitExpression, ODataApplicationException { Object obj = expression.accept(visitor); Object ret = visitor.visitOrder(this, obj, orderType); return ret; }