Source code: javax/ide/model/java/source/tree/TypeExpressionT.java
1 /*
2 * @(#)TypeExpressionT.java
3 */
4
5 package javax.ide.model.java.source.tree;
6
7 /**
8 * An expression wrapping a type reference. The following operators
9 * all have type operands (which are type expressions): instanceof,
10 * typecast, class literal, and qualified this literal. <p/>
11 *
12 * Type expressions have no operands.
13 *
14 * @author Andy Yu
15 * */
16 public interface TypeExpressionT
17 extends ExpressionT
18 {
19 // ----------------------------------------------------------------------
20
21 /**
22 * Gets the type reference for this element.
23 *
24 * @return This element's type reference.
25 */
26 public TypeReferenceT getType();
27
28
29 /**
30 * Unlinks the current source type and links the input element.
31 *
32 * @param type The new type reference.
33 *
34 * @throws IllegalStateException if the input type is already linked.
35 */
36 public void setType( TypeReferenceT type );
37
38 }