KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > source > tree > NewClassTree


1 /*
2  * @(#)NewClassTree.java 1.3 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  *
7  * Use and Distribution is subject to the Java Research License available
8  * at <http://wwws.sun.com/software/communitysource/jrl.html>.
9  */

10
11 package com.sun.source.tree;
12
13 import java.util.List JavaDoc;
14
15 /**
16  * A tree node to declare a new instance of a class.
17  *
18  * For example:
19  * <pre>
20  * new <em>identifier</em> ( )
21  *
22  * new <em>identifier</em> ( <em>arguments</em> )
23  *
24  * new <em>typeArguments</em> <em>identifier</em> ( <em>arguments</em> )
25  * <em>classBody</em>
26  *
27  * <em>enclosingExpression</em>.new <em>identifier</em> ( <em>arguments</em> )
28  * </pre>
29  *
30  * @see "The Java Language Specification, 3rd ed, section 15.9"
31  *
32  * @author Peter von der Ah&eacute;
33  * @author Jonathan Gibbons
34  * @since 1.6
35  */

36 public interface NewClassTree extends ExpressionTree {
37     ExpressionTree getEnclosingExpression();
38     List JavaDoc<? extends Tree> getTypeArguments();
39     ExpressionTree getIdentifier();
40     List JavaDoc<? extends ExpressionTree> getArguments();
41     ClassTree getClassBody();
42 }
43
Popular Tags