diff options
author | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
commit | c2952b018a1baf25b12c339f2b96518425164295 (patch) | |
tree | bf1619873e76c17441a1423f1eaba6a4a64f054a /gcc/java/java-tree.def | |
parent | e4476d1cbd567593c068dba421b5e089f7ccbcd5 (diff) | |
download | gcc-c2952b018a1baf25b12c339f2b96518425164295.zip gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.gz gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.bz2 |
Added Java 1.1 language features.
From-SVN: r32517
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 ebc11f7..ea79322 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) |