1 package spoon.support.reflect.code; 2 3 import spoon.reflect.code.CtAssert; 4 import spoon.reflect.code.CtExpression; 5 import spoon.reflect.visitor.CtVisitor; 6 7 public class CtAssertImpl<T> extends CtStatementImpl implements CtAssert<T> { 8 private static final long serialVersionUID = 1L; 9 10 public CtExpression<Boolean > getAssertExpression() { 11 return asserted; 12 } 13 14 CtExpression<Boolean > asserted; 15 16 CtExpression<T> value; 17 18 public void setAssertExpression(CtExpression<Boolean > asserted) { 19 this.asserted = asserted; 20 } 21 22 public void accept(CtVisitor visitor) { 23 visitor.visitCtAssert(this); 24 } 25 26 public CtExpression<T> getExpression() { 27 return value; 28 } 29 30 public void setExpression(CtExpression<T> value) { 31 this.value = value; 32 } 33 34 } 35 | Popular Tags |