1 package spoon.reflect.code;2 3 /**4 * This code element defines a <code>synchronized</code> statement.5 */6 public interface CtSynchronized extends CtStatement {7 /**8 * Gets the expression that defines the monitored object if any.9 * 10 * @return the monitored object if defined, null otherwise11 */12 CtExpression<?> getExpression();13 14 /**15 * Sets the expression that defines the monitored.16 */17 void setExpression(CtExpression<?> expression);18 19 /**20 * Gets the synchronized block.21 */22 CtBlock getBlock();23 24 /**25 * Sets the synchronized block.26 */27 void setBlock(CtBlock block);28 }29