Specification-Title: Javassist
Specification-Vendor: Shigeru Chiba, www.javassist.org
-Specification-Version: 3.24-GA
+Specification-Version: 3.24.0-RC
Main-Class: javassist.CtClass
Automatic-Module-Name: org.javassist
* work with a security manager or a signed jar file because a
* protection domain is not specified.</p>
*
- * @see #toCalss(CtClass,Class)
+ * @see #toClass(CtClass,Class)
* @see #toClass(CtClass,Class,java.lang.ClassLoader,ProtectionDomain)
* @see #getClassLoader()
*/
*
* <p>If your program is for only Java 9 or later, don't use this method.
* Use {@link #toClass(CtClass,Class)} or
- * {@link #toClass(CtClass)CtClass,java.lang.invoke.MethodHandles.Lookup)}.
+ * {@link #toClass(CtClass,java.lang.invoke.MethodHandles.Lookup)}.
* </p>
*
* @param ct the class converted into {@code java.lang.Class}.
/**
* The version number of this release.
*/
- public static final String version = "3.24-GA";
+ public static final String version = "3.24.0-RC";
/**
* Prints the version number and the copyright notice.
* class.
*
* <p><b>Warning:</b> In Java 11 or later, the call to this method will
- * print a warning message:
+ * print a warning message:</p>
* <blockquote><pre>
* WARNING: An illegal reflective access operation has occurred
* WARNING: Illegal reflective access by javassist.util.proxy.SecurityActions$3 ...
* WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
* WARNING: All illegal access operations will be denied in a future release
* </pre></blockquote>
- * To avoid this message, use {@link #toClass(Class)}
+ * <p>To avoid this message, use {@link #toClass(Class)}
* or {@link #toClass(java.lang.invoke.MethodHandles.Lookup)}.
* {@link #toClass()} will be unavailable in a future release.
* </p>
* @param neighbor A class belonging to the same package that this
* class belongs to. It is used to load the class.
* @see ClassPool#toClass(CtClass,Class)
- * @see #CtClass(java.lang.invoke.MethodHandles.Lookup)
+ * @see #toClass(java.lang.invoke.MethodHandles.Lookup)
* @since 3.24
*/
public Class<?> toClass(Class<?> neighbor) throws CannotCompileException
public static final int ENUM = AccessFlag.ENUM;
/**
- * Returns true if the modifiers include the <tt>public</tt>
+ * Returns true if the modifiers include the <code>public</code>
* modifier.
*/
public static boolean isPublic(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>private</tt>
+ * Returns true if the modifiers include the <code>private</code>
* modifier.
*/
public static boolean isPrivate(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>protected</tt>
+ * Returns true if the modifiers include the <code>protected</code>
* modifier.
*/
public static boolean isProtected(int mod) {
/**
* Returns true if the modifiers do not include either
- * <tt>public</tt>, <tt>protected</tt>, or <tt>private</tt>.
+ * <code>public</code>, <code>protected</code>, or <code>private</code>.
*/
public static boolean isPackage(int mod) {
return (mod & (PUBLIC | PRIVATE | PROTECTED)) == 0;
}
/**
- * Returns true if the modifiers include the <tt>static</tt>
+ * Returns true if the modifiers include the <code>static</code>
* modifier.
*/
public static boolean isStatic(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>final</tt>
+ * Returns true if the modifiers include the <code>final</code>
* modifier.
*/
public static boolean isFinal(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>synchronized</tt>
+ * Returns true if the modifiers include the <code>synchronized</code>
* modifier.
*/
public static boolean isSynchronized(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>volatile</tt>
+ * Returns true if the modifiers include the <code>volatile</code>
* modifier.
*/
public static boolean isVolatile(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>transient</tt>
+ * Returns true if the modifiers include the <code>transient</code>
* modifier.
*/
public static boolean isTransient(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>native</tt>
+ * Returns true if the modifiers include the <code>native</code>
* modifier.
*/
public static boolean isNative(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>interface</tt>
+ * Returns true if the modifiers include the <code>interface</code>
* modifier.
*/
public static boolean isInterface(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>annotation</tt>
+ * Returns true if the modifiers include the <code>annotation</code>
* modifier.
*
* @since 3.2
}
/**
- * Returns true if the modifiers include the <tt>enum</tt>
+ * Returns true if the modifiers include the <code>enum</code>
* modifier.
*
* @since 3.2
}
/**
- * Returns true if the modifiers include the <tt>abstract</tt>
+ * Returns true if the modifiers include the <code>abstract</code>
* modifier.
*/
public static boolean isAbstract(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>strictfp</tt>
+ * Returns true if the modifiers include the <code>strictfp</code>
* modifier.
*/
public static boolean isStrict(int mod) {
}
/**
- * Returns true if the modifiers include the <tt>varargs</tt>
+ * Returns true if the modifiers include the <code>varargs</code>
* (variable number of arguments) modifier.
*/
public static boolean isVarArgs(int mod) {
* <p>If <code>instrument()</code> is called in
* <code>CtMethod</code>, the method body is scanned from the beginning
* to the end.
- * Whenever an expression, such as a method call and a <tt>new</tt>
+ * Whenever an expression, such as a method call and a <code>new</code>
* expression (object creation),
* is found, <code>edit()</code> is called in <code>ExprEdit</code>.
* <code>edit()</code> can inspect and modify the given expression.
}
/**
- * Edits a <tt>new</tt> expression (overridable).
+ * Edits a <code>new</code> expression (overridable).
* The default implementation performs nothing.
*
- * @param e the <tt>new</tt> expression creating an object.
+ * @param e the <code>new</code> expression creating an object.
*/
public void edit(NewExpr e) throws CannotCompileException {}
* Edits an expression for array creation (overridable).
* The default implementation performs nothing.
*
- * @param a the <tt>new</tt> expression for creating an array.
+ * @param a the <code>new</code> expression for creating an array.
* @throws CannotCompileException
*/
public void edit(NewArray a) throws CannotCompileException {}
/**
* Returns the type of array components. If the created array is
- * a two-dimensional array of <tt>int</tt>,
+ * a two-dimensional array of <code>int</code>,
* the type returned by this method is
- * not <tt>int[]</tt> but <tt>int</tt>.
+ * not <code>int[]</code> but <code>int</code>.
*/
public CtClass getComponentType() throws NotFoundException {
if (opcode == Opcode.NEWARRAY) {
import javassist.compiler.ast.ASTList;
/**
- * Object creation (<tt>new</tt> expression).
+ * Object creation (<code>new</code> expression).
*/
public class NewExpr extends Expr {
String newTypeName;
} */
/**
- * Returns the method or constructor containing the <tt>new</tt>
+ * Returns the method or constructor containing the <code>new</code>
* expression represented by this object.
*/
@Override
/**
* Returns the line number of the source line containing the
- * <tt>new</tt> expression.
+ * <code>new</code> expression.
*
* @return -1 if this information is not available.
*/
}
/**
- * Returns the source file containing the <tt>new</tt> expression.
+ * Returns the source file containing the <code>new</code> expression.
*
* @return null if this information is not available.
*/
}
/**
- * Replaces the <tt>new</tt> expression with the bytecode derived from
+ * Replaces the <code>new</code> expression with the bytecode derived from
* the given source text.
*
* <p>$0 is available but the value is null.
* @param loader the class loader. It can be null if {@code neighbor} is not null
* and the JVM is Java 11 or later.
* @param domain if it is null, a default domain is used.
- * @parma bcode the bytecode for the loaded class.
+ * @param bcode the bytecode for the loaded class.
* @since 3.22
*/
public static Class<?> toClass(String className, Class<?> neighbor, ClassLoader loader,
*
* <p>The default value is {@code false}.</p>
*
- * @see DefineClassHelper#toClass(String, Class<?>, ClassLoader, ProtectionDomain, byte[])
+ * @see DefineClassHelper#toClass(String, Class, ClassLoader, ProtectionDomain, byte[])
* @since 3.22
*/
public static boolean onlyPublicMethods = false;