aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClass.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r--src/main/javassist/CtClass.java34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index 29512ace..78b40150 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -44,7 +44,7 @@ public abstract class CtClass {
/**
* The version number of this release.
*/
- public static final String version = "3.0 RC1";
+ public static final String version = "3.0";
/**
* Prints the version number and the copyright notice.
@@ -55,7 +55,7 @@ public abstract class CtClass {
*/
public static void main(String[] args) {
System.out.println("Javassist version " + CtClass.version);
- System.out.println("Copyright (C) 1999-2004 Shigeru Chiba."
+ System.out.println("Copyright (C) 1999-2005 Shigeru Chiba."
+ " All Rights Reserved.");
}
@@ -747,6 +747,16 @@ public abstract class CtClass {
}
/**
+ * Removes a constructor declared in this class.
+ *
+ * @param c removed constructor.
+ * @throws NotFoundException if the constructor is not found.
+ */
+ public void removeConstructor(CtConstructor c) throws NotFoundException {
+ checkModify();
+ }
+
+ /**
* Adds a method.
*/
public void addMethod(CtMethod m) throws CannotCompileException {
@@ -754,6 +764,16 @@ public abstract class CtClass {
}
/**
+ * Removes a method declared in this class.
+ *
+ * @param m removed method.
+ * @throws NotFoundException if the method is not found.
+ */
+ public void removeMethod(CtMethod m) throws NotFoundException {
+ checkModify();
+ }
+
+ /**
* Adds a field.
*
* <p>The <code>CtField</code> belonging to another
@@ -826,6 +846,16 @@ public abstract class CtClass {
}
/**
+ * Removes a field declared in this class.
+ *
+ * @param f removed field.
+ * @throws NotFoundException if the field is not found.
+ */
+ public void removeField(CtField f) throws NotFoundException {
+ checkModify();
+ }
+
+ /**
* Obtains an attribute with the given name.
* If that attribute is not found in the class file, this
* method returns null.