1 package test.wksp.eclipse;
2 
3 public class X24 {
4 
5 	/**
6 	 * Creates a new unparented expression statement node owned by this AST, for
7 	 * the given expression.
8 	 * <p>
9 	 * This method can be used to convert an expression
10 	 * (<code>Expression</code>) into a statement (<code>Type</code>) by
11 	 * wrapping it. Note, however, that the result is only legal for limited
12 	 * expression types, including method invocations, assignments, and
13 	 * increment/decrement operations.
14 	 * </p>
15 	 *
16 	 * @param expression
17 	 *            the expression
18 	 * @return a new unparented statement node
19 	 * @exception IllegalArgumentException
20 	 *                if:
21 	 *                <ul>
22 	 *                <li>the node belongs to a different AST</li>
23 	 *                <li>the node already has a parent</li>
24 	 *                <li>a cycle in would be created</li>
25 	 *                </ul>
26 	 */
foo()27 	void foo() {
28 	}
29 }
30