1 package spoon.reflect.code; 2 3 /** 4 * This code element defines an assignment. 5 * 6 * @param <T> type of assigned expression 7 * @param <A> type of expression to assign, it should extends <T> 8 */ 9 public interface CtAssignment<T,A extends T> extends CtStatement, CtExpression<T> { 10 11 /** 12 * Returns the assigned expression (a variable, an array access...). 13 */ 14 CtExpression<T> getAssigned(); 15 16 /** 17 * Returns the assignment that is set to the assigned expression. 18 */ 19 CtExpression<A> getAssignment(); 20 21 /** 22 * Sets the assigned expression. 23 */ 24 void setAssigned(CtExpression<T> assigned); 25 26 /** 27 * Sets the expression that is set to the assigned expression. 28 */ 29 void setAssignment(CtExpression<A> assignment); 30 31 } 32