예제 #1
0
 public void testMultiplicative() {
   expr = (ASBinaryExpression) fact.newExpression("1 * 2 * 2");
   Expression left = fact.newIntegerLiteral(1);
   expr.setLeftSubexpression(left);
 }
예제 #2
0
 public void testAdditive() {
   expr = (ASBinaryExpression) fact.newExpression("1 + 2 + 2");
   Expression left = fact.newIntegerLiteral(1);
   expr.setLeftSubexpression(left);
 }