diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-05-03 17:38:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-05-03 17:38:30 +0000 |
commit | 1d249157debacc92bc2e4a833ed67dcdc8bad95c (patch) | |
tree | dcb6aa81dc9761490ac1e0062eedcc9264b7304d /src/main/javassist/CtClass.java | |
parent | b25388461bd32f33f3a4a188b5eeae957cbb080d (diff) | |
download | javassist-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.java | 10 |
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 |