Beispiel #1
0
 @Override
 public Void visitIsExpression(IsExpression node) {
   visit(node.getExpression());
   if (node.getNotOperator() == null) {
     writer.print(" is ");
   } else {
     writer.print(" is! ");
   }
   visit(node.getType());
   return null;
 }
 @Override
 public R visitIsExpression(IsExpression node) {
   node.visitChildren(this);
   return null;
 }
 public void test_relationalExpression_precedence_shift_right() throws Exception {
   IsExpression expression = parseExpression("x << y is z");
   assertInstanceOf(BinaryExpression.class, expression.getExpression());
 }