Esempio n. 1
0
 private static List<Expression> simpleList(BlockExpression expression) {
   Expression simple = Blocks.simple(expression);
   if (simple instanceof NewExpression) {
     NewExpression newExpression = (NewExpression) simple;
     return newExpression.arguments;
   } else {
     return Collections.singletonList(simple);
   }
 }
Esempio n. 2
0
 public RexNode toRex(BlockExpression expression) {
   return toRex(Blocks.simple(expression));
 }