Home | History | Annotate | Download | only in cls
      1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
      2  *
      3  * This program and the accompanying materials are made available under
      4  * the terms of the Common Public License v1.0 which accompanies this distribution,
      5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
      6  *
      7  * $Id: ElementFactory.java,v 1.1.1.1 2004/05/09 16:57:45 vlad_r Exp $
      8  */
      9 package com.vladium.jcd.cls;
     10 
     11 // ----------------------------------------------------------------------------
     12 /**
     13  * @author Vlad Roubtsov, (C) 2003
     14  */
     15 public
     16 abstract class ElementFactory
     17 {
     18     // public: ................................................................
     19 
     20 
     21     public static IAttributeCollection newAttributeCollection (final int capacity)
     22     {
     23         return new AttributeCollection (capacity);
     24     }
     25 
     26     public static IConstantCollection newConstantCollection (final int capacity)
     27     {
     28         return new ConstantCollection (capacity);
     29     }
     30 
     31     public static IFieldCollection newFieldCollection (final int capacity)
     32     {
     33         return new FieldCollection (capacity);
     34     }
     35 
     36     public static IInterfaceCollection newInterfaceCollection (final int capacity)
     37     {
     38         return new InterfaceCollection (capacity);
     39     }
     40 
     41     public static IMethodCollection newMethodCollection (final int capacity)
     42     {
     43         return new MethodCollection (capacity);
     44     }
     45 
     46     // protected: .............................................................
     47 
     48     // package: ...............................................................
     49 
     50     // private: ...............................................................
     51 
     52 } // end of class
     53 // ----------------------------------------------------------------------------
     54