예제 #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);
   }
 }
예제 #2
0
 public RexNode toRex(BlockExpression expression) {
   return toRex(Blocks.simple(expression));
 }