diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-14 05:01:05 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-14 05:01:05 +0000 |
commit | 4654e794323c05fcfabee95cb2bf334fb30a3873 (patch) | |
tree | bf1619873e76c17441a1423f1eaba6a4a64f054a /gcc/java/java-tree.def | |
parent | 86220f453c768a8deb58678e4010a892011a2cce (diff) | |
download | gcc-4654e794323c05fcfabee95cb2bf334fb30a3873.tar.gz |
Added Java 1.1 language features.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/java-tree.def')
-rw-r--r-- | gcc/java/java-tree.def | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/java/java-tree.def b/gcc/java/java-tree.def index ebc11f793fe..ea793227a09 100644 --- a/gcc/java/java-tree.def +++ b/gcc/java/java-tree.def @@ -22,6 +22,13 @@ DEFTREECODE (UNARY_PLUS_EXPR, "unary_plus_expr", '1', 1) Once patched, the node will bear the type of the created array. */ DEFTREECODE (NEW_ARRAY_EXPR, "new_array_expr", 'e', 3) +/* New anonymous array creation expression. + Operand 0 is the base type of the anonymous array. + Operand 1 is the signature of the dimensions this array contains. + Operand 2 is the anonymous array initializer. + Once patched, the node will bear the type of the created array. */ +DEFTREECODE (NEW_ANONYMOUS_ARRAY_EXPR, "new_anonymous_array", 'e', 3) + /* New class creation expression. Operand 0 is the name of the class to be created Operand 1 is the argument list used to select a constructor. @@ -75,3 +82,14 @@ DEFTREECODE (INSTANCEOF_EXPR, "instanceof", 'e', 2) when the node is created. Operand 1 is a CONSTRUCTOR node. */ DEFTREECODE (NEW_ARRAY_INIT, "new_array_init", '1', 1) + +/* Class literal. + Operand 0 is the name of the class we're trying to build a + reference from. */ +DEFTREECODE (CLASS_LITERAL, "class_litteral", '1', 1) + +/* Instance initializer. + Operand 0 contains the intance initializer statement. This tree node + is used for context detection, so that special rules can be + enforced. */ +DEFTREECODE (INSTANCE_INITIALIZERS_EXPR, "instance_initializers_expr", '1', 1) |