aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/tutorial2.html
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/tutorial2.html')
-rw-r--r--tutorial/tutorial2.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html
index 778f44ee..7ef1fedb 100644
--- a/tutorial/tutorial2.html
+++ b/tutorial/tutorial2.html
@@ -1359,6 +1359,16 @@ value. This source text can be any Java expression if the result type
of the expression matches the type of the field. Note that an expression
does not end with a semi colon (<code>;</code>).
+<p>Furthermore, the above code can be rewritten into the following
+simple code:
+
+<ul><pre>
+CtClass point = ClassPool.getDefault().get("Point");
+CtField f = CtField.make("public int z = 0;", point);
+point.addField(f);
+</pre></ul>
+
+
<p><br>
<a name="runtime">
@@ -1395,8 +1405,6 @@ supported.
<p><li>Inner classes or anonymous classes are not supported.
-<p><li><code>synchronized</code> statements are not supported yet.
-
<p><li>Labeled <code>continue</code> and <code>break</code> statements
are not supported.
#n7'>7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36