diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-05-13 18:46:43 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-05-13 18:46:43 +0000 |
commit | b40a895c9147eef545ea92741802df05eca9e6c2 (patch) | |
tree | f9b49925883fcc1109d3c474b2144034e14c9b7b /src/main/javassist/CtNewNestedClass.java | |
parent | b9a444340522ce97bd830ab392f6c79038fda3cc (diff) | |
download | javassist-b40a895c9147eef545ea92741802df05eca9e6c2.tar.gz javassist-b40a895c9147eef545ea92741802df05eca9e6c2.zip |
CtClass.makeNestedClass() has been added.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@103 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtNewNestedClass.java')
-rw-r--r-- | src/main/javassist/CtNewNestedClass.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/javassist/CtNewNestedClass.java b/src/main/javassist/CtNewNestedClass.java new file mode 100644 index 00000000..d79485cd --- /dev/null +++ b/src/main/javassist/CtNewNestedClass.java @@ -0,0 +1,31 @@ +/* + * Javassist, a Java-bytecode translator toolkit. + * Copyright (C) 1999-2004 Shigeru Chiba. All Rights Reserved. + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. Alternatively, the contents of this file may be used under + * the terms of the GNU Lesser General Public License Version 2.1 or later. + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + */ + +package javassist; + +/** + * A newly created nested class. + */ +class CtNewNestedClass extends CtNewClass { + CtNewNestedClass(String realName, ClassPool cp, boolean isInterface, + CtClass superclass) { + super(realName, cp, isInterface, superclass); + } + + public void setModifiers(int mod) { + super.setModifiers(Modifier.clear(mod, + Modifier.STATIC | Modifier.PRIVATE)); + } +} |