From 8968f3341ba2f46f78f22a0b4853cb4820d44f11 Mon Sep 17 00:00:00 2001 From: chiba Date: Sun, 30 Sep 2007 15:33:14 +0000 Subject: [PATCH] added Expr#getEnclosingClass() git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@409 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- Readme.html | 2 ++ src/main/META-INF/MANIFEST.MF | 2 +- src/main/javassist/CtClass.java | 2 +- src/main/javassist/expr/Expr.java | 8 ++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Readme.html b/Readme.html index ded7b0c3..22e6d736 100644 --- a/Readme.html +++ b/Readme.html @@ -281,6 +281,8 @@ see javassist.Dump.

Changes

+

-version 3.7 +

-version 3.6.0 on September 13, 2007

-version 3.6.0.CR1 on July 27, 2007 diff --git a/src/main/META-INF/MANIFEST.MF b/src/main/META-INF/MANIFEST.MF index cbdef9fe..4789d0fc 100644 --- a/src/main/META-INF/MANIFEST.MF +++ b/src/main/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.1 Specification-Title: Javassist Created-By: Shigeru Chiba, Tokyo Institute of Technology Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology -Specification-Version: 3.6.0.GA +Specification-Version: 3.7 Main-Class: javassist.CtClass Name: javassist/ diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index dfd402be..e7aafc26 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -52,7 +52,7 @@ public abstract class CtClass { /** * The version number of this release. */ - public static final String version = "3.6.0.GA"; + public static final String version = "3.7.0.beta"; /** * Prints the version number and the copyright notice. diff --git a/src/main/javassist/expr/Expr.java b/src/main/javassist/expr/Expr.java index e21d148d..0092cc21 100644 --- a/src/main/javassist/expr/Expr.java +++ b/src/main/javassist/expr/Expr.java @@ -61,6 +61,14 @@ public abstract class Expr implements Opcode { thisMethod = m; } + /** + * Returns the class that declares the method enclosing + * this expression. + * + * @since 3.7 + */ + public CtClass getEnclosingClass() { return thisClass; } + protected final ConstPool getConstPool() { return thisMethod.getConstPool(); } -- 2.39.5