public abstract boolean isModifiableClass (Class<?> theClass)

Determines whether a class is modifiable by retransformation or redefinition. If a class is modifiable then this method returns true. If a class is not modifiable then this method returns false.

For a class to be retransformed, isRetransformClassesSupported must also be true. But the value of isRetransformClassesSupported() does not influence the value returned by this function. For a class to be redefined, isRedefineClassesSupported must also be true. But the value of isRedefineClassesSupported() does not influence the value returned by this function.

Primitive classes (for example, java.lang.Integer.TYPE) and array classes are never modifiable.

Parameters:
theClass    the class to check for being modifiable

Returns:  whether or not the argument class is modifiable

Exceptions:
java.lang.NullPointerException    if the specified class is null.

See also:
retransformClasses, isRetransformClassesSupported, redefineClasses, isRedefineClassesSupported

Since:  1.6