demandConstructor

Returns the (i+1)'th constructor of the given type declaration, in textual order. The constructor that appears first has the index 0, the second one the index 1, and so on.

Return

The desired ConstructorDeclaration if it was found, else an exception is thrown.

Parameters

td

The type declaration to search in. Note that only classes and enums have constructors.

index

The index of the desired constructor.