KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > declaration > CtConstructor


1 package spoon.reflect.declaration;
2
3 import spoon.reflect.reference.CtTypeReference;
4
5 /**
6  * This element defines a constructor declaration.
7  */

8 public interface CtConstructor<T> extends CtExecutable<T> {
9
10     /**
11      * This operation is not allowed.
12      */

13     void setSimpleName(String JavaDoc simpleName);
14
15     /**
16      * Always returns "&lt;init&gt;".
17      */

18     String JavaDoc getSimpleName();
19
20     /**
21      * Returns the declaring type of this constructor (always the same as the
22      * constructor's type).
23      */

24     CtType<T> getDeclaringType();
25
26     /**
27      * This method has not effect for the constructor since its type is always
28      * the declaring type.
29      */

30     void setType(CtTypeReference<T> type);
31
32     /**
33      * Returns true if this constructor is the implicit constructor
34      * automatically added by the Java compiler.
35      */

36     boolean isImplicitDefault();
37
38 }
Popular Tags