diff options
Diffstat (limited to 'sample/reflect/VerboseMetaobj.java')
-rw-r--r-- | sample/reflect/VerboseMetaobj.java | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sample/reflect/VerboseMetaobj.java b/sample/reflect/VerboseMetaobj.java index a9f75dd1..91dba579 100644 --- a/sample/reflect/VerboseMetaobj.java +++ b/sample/reflect/VerboseMetaobj.java @@ -1,29 +1,27 @@ package sample.reflect;
-import javassist.*;
import javassist.reflect.*;
public class VerboseMetaobj extends Metaobject {
public VerboseMetaobj(Object self, Object[] args) {
- super(self, args);
- System.out.println("** constructed: " + self.getClass().getName());
+ super(self, args);
+ System.out.println("** constructed: " + self.getClass().getName());
}
public Object trapFieldRead(String name) {
- System.out.println("** field read: " + name);
- return super.trapFieldRead(name);
+ System.out.println("** field read: " + name);
+ return super.trapFieldRead(name);
}
public void trapFieldWrite(String name, Object value) {
- System.out.println("** field write: " + name);
- super.trapFieldWrite(name, value);
+ System.out.println("** field write: " + name);
+ super.trapFieldWrite(name, value);
}
public Object trapMethodcall(int identifier, Object[] args)
- throws Throwable
- {
- System.out.println("** trap: " + getMethodName(identifier)
- + "() in " + getClassMetaobject().getName());
- return super.trapMethodcall(identifier, args);
+ throws Throwable {
+ System.out.println("** trap: " + getMethodName(identifier) + "() in "
+ + getClassMetaobject().getName());
+ return super.trapMethodcall(identifier, args);
}
}
|