org.codehaus.metaclass.tools.packer
Class ClassDescriptorPacker

java.lang.Object
  extended byorg.codehaus.metaclass.tools.packer.ClassDescriptorPacker

public class ClassDescriptorPacker
extends java.lang.Object

Utility class to shrink ClassDescriptor by field and method descriptors without any attributes. If keepEmptyMethods is true the packer will retain any methods with no attributes. This option is useful if you want to retain access to the names of the parameters in methods and constructors.

Version:
$Revision: 1.2 $ $Date: 2003/11/27 08:09:54 $
Author:
Peter Donald

Constructor Summary
ClassDescriptorPacker(boolean keepEmptyMethods)
          Create packer.
 
Method Summary
 ClassDescriptor pack(ClassDescriptor descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDescriptorPacker

public ClassDescriptorPacker(boolean keepEmptyMethods)
Create packer.

Parameters:
keepEmptyMethods - flag to keep empty methods
Method Detail

pack

public ClassDescriptor pack(ClassDescriptor descriptor)


Copyright © 2003-2004 Codehaus. All Rights Reserved.