summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-09-30 15:33:14 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-09-30 15:33:14 +0000
commit8968f3341ba2f46f78f22a0b4853cb4820d44f11 (patch)
treebee085f5a88fce195768d46c5028af3d91735f03
parent77defc29735ffe992458fdf091d69b5cd6f1d1e7 (diff)
downloadjavassist-8968f3341ba2f46f78f22a0b4853cb4820d44f11.tar.gz
javassist-8968f3341ba2f46f78f22a0b4853cb4820d44f11.zip
added Expr#getEnclosingClass()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@409 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--Readme.html2
-rw-r--r--src/main/META-INF/MANIFEST.MF2
-rw-r--r--src/main/javassist/CtClass.java2
-rw-r--r--src/main/javassist/expr/Expr.java8
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.
<h2>Changes</h2>
+<p>-version 3.7
+
<p>-version 3.6.0 on September 13, 2007
<p>-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();
}