Source code: javax/ide/model/java/source/tree/NewArrayExpressionT.java
1 /*
2 * @(#)NewArrayExpressionT.java
3 */
4
5 package javax.ide.model.java.source.tree;
6
7 /**
8 * An expression creating a new array. Array creators come in
9 * two flavors: normal and (explicitly) initialized. <p/>
10 *
11 * TODO: Explain what array dimensions are returned.
12 *
13 * @author Andy Yu
14 * */
15 public interface NewArrayExpressionT
16 extends ExpressionT
17 {
18 /**
19 * Gets the type reference for this element.
20 *
21 * @return This element's type reference.
22 */
23 public TypeReferenceT getType();
24
25 /**
26 * Unlinks the current source type and links the input element.
27 *
28 * @param type The new type reference.
29 *
30 * @throws IllegalStateException if the input type is already linked.
31 */
32 public void setType( TypeReferenceT type );
33
34 }