From 7c44f9c3399751dd022279ec0b914d96fbfd1af8 Mon Sep 17 00:00:00 2001 From: chiba Date: Fri, 15 Jul 2005 10:50:52 +0000 Subject: [PATCH] Added javassist.expr.ConstructorCall git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@190 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial2.html | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html index b869307b..910123b9 100644 --- a/tutorial/tutorial2.html +++ b/tutorial/tutorial2.html @@ -789,6 +789,70 @@ is ignored. syntax. It must be followed by an argument list surrounded by parentheses ( ). +

javassist.expr.ConstructorCall

+ +

A ConstructorCall object represents a constructor call +such as this() and super included in a constructor +body. +The method replace() in +ConstructorCall substitutes a statement or +a block for the constructor call. +It receives source text representing the substituted statement or +block, in which the identifiers starting with $ +have special meaning as in the source text passed to +insertBefore(). + +

+ +

Here the constructor call means the one represented by the +ConstructorCall object. + +

The other identifiers such as $w, +$args and $$ +are also available. + +

Since any constructor must call either a constructor of the super +class or another constructor of the same class, +the substituted statement must include a constructor call, +normally a call to $proceed(). + +

$proceed is not a String value but special +syntax. It must be followed by an argument list surrounded by parentheses +( ). +

javassist.expr.FieldAccess

A FieldAccess object represents field access. -- 2.39.5