CtClass object. Javassist can automatically prune a CtClass object when toBytecode() (or toClass(), writeFile()) is called. Since a ClassPool holds all instances of CtClass even after toBytecode() (or toClass(), writeFile()) is called, pruning may significantly save memory consumption.
If ClassPool.doPruning is true, the automatic pruning is on by default. Otherwise, it is off. The default value of ClassPool.doPruning is false.
@param stop disallow pruning if true. Otherwise, allow.
@return the previous status of pruning. true if pruning is already stopped.
@see #detach()
@see #prune()
@see ClassPool#doPruning
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |