summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClass.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-05-03 17:38:30 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-05-03 17:38:30 +0000
commit1d249157debacc92bc2e4a833ed67dcdc8bad95c (patch)
treedcb6aa81dc9761490ac1e0062eedcc9264b7304d /src/main/javassist/CtClass.java
parentb25388461bd32f33f3a4a188b5eeae957cbb080d (diff)
downloadjavassist-1d249157debacc92bc2e4a833ed67dcdc8bad95c.tar.gz
javassist-1d249157debacc92bc2e4a833ed67dcdc8bad95c.zip
added CtClass#getDeclaringClass()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@96 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r--src/main/javassist/CtClass.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index c5c86ba5..f3e8963e 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -481,6 +481,16 @@ public abstract class CtClass {
}
/**
+ * If this class is a member class or interface of another class,
+ * then the class enclosing this class is returned.
+ *
+ * @return null if this class is a top-level class.
+ */
+ public CtClass getDeclaringClass() throws NotFoundException {
+ return null;
+ }
+
+ /**
* Returns an array containing <code>CtField</code> objects
* representing all the public fields of the class.
* That array includes public fields inherited from the