View Javadoc

    1   /*
    2    * Copyright (c) 2001-2003 The XDoclet team
    3    * All rights reserved.
    4    */
    5   package xjavadoc;
    6
    7   import java.util.List;
    8
    9   /***
    10   * Describe what this class does
    11   *
    12   * @author    Aslak Hellesøy
    13   * @created   18. januar 2002
    14   */
    15  final class ConstructorImpl extends AbstractExecutableMember implements XConstructor
    16  {
    17  	public static int  instanceCount = 0;
    18
    19  	public ConstructorImpl( AbstractClass containingClass, XTagFactory tagFactory  )
    20  	{
    21  		super( containingClass, tagFactory );
    22  		instanceCount++;
    23  	}
    24
    25  	public final boolean isConstructor()
    26  	{
    27  		return true;
    28  	}
    29
    30  	public XProgramElement getSuperElement()
    31  	{
    32  		return getSuperElement( false );
    33  	}
    34
    35  	public List getAllSuperElements()
    36  	{
    37  		return null;
    38  	}
    39
    40  	public String getName()
    41  	{
    42  		return getContainingClass().getName();
    43  	}
    44
    45  	public final void setName( String name )
    46  	{
    47  		throw new UnsupportedOperationException( "Can't set name for constructors" );
    48  	}
    49
    50  	protected String buildStringId()
    51  	{
    52  		StringBuffer sb = new StringBuffer();
    53
    54  		sb = new StringBuffer();
    55  		sb.append( getModifiers() );
    56  		sb.append( ' ' );
    57  		sb.append( getNameWithSignature( false ) );
    58  		return sb.toString();
    59  	}
    60  }