IntConstantExpr extends ConstantExpr { public String getValue() { return value; } IntConstantExpr(String text); @Override boolean hasChild(IAstNode child); String getValue(); int getNumericValue(); @Override void accept(IAstVisitor visitor); @Override IntConstantExpr clone();  }
@Test public void getValue() throws Exception { IntConstantExpr ec = new IntConstantExpr("-1"); assertEquals("-1", ec.getValue()); }