Skip to content

Commit 7b186e8

Browse files
author
moez
committed
Ooops again! Forgot to CVS add files. Check comment for prev commit :)
git-svn-id: file:///tmp/test-svn/trunk@2545 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 3760804 commit 7b186e8

File tree

5 files changed

+431
-2
lines changed

5 files changed

+431
-2
lines changed

dynamicjava/src/koala/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* This file is copied to Version.java by the build process, which also
5454
* fills in the right values of the date and time.
5555
*
56-
* This javadoc corresponds to build drjava-20040802-0120;
56+
* This javadoc corresponds to build drjava-20040802-0126;
5757
*
5858
* @version $Id$
5959
*/
@@ -62,7 +62,7 @@ public abstract class Version {
6262
* This string will be automatically expanded upon "ant commit".
6363
* Do not edit it by hand!
6464
*/
65-
private static final String BUILD_TIME_STRING = "20040802-0120";
65+
private static final String BUILD_TIME_STRING = "20040802-0126";
6666

6767
/** A {@link Date} version of the build time. */
6868
private static final Date BUILD_TIME = _getBuildDate();
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* DynamicJava - Copyright (C) 1999-2001
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files
6+
* (the "Software"), to deal in the Software without restriction, including
7+
* without limitation the rights to use, copy, modify, merge, publish,
8+
* distribute, sublicense, and/or sell copies of the Software, and to permit
9+
* persons to whom the Software is furnished to do so, subject to the
10+
* following conditions:
11+
* The above copyright notice and this permission notice shall be included
12+
* in all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
* IN NO EVENT SHALL DYADE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
* DEALINGS IN THE SOFTWARE.
21+
*
22+
* Except as contained in this notice, the name of Dyade shall not be
23+
* used in advertising or otherwise to promote the sale, use or other
24+
* dealings in this Software without prior written authorization from
25+
* Dyade.
26+
*
27+
*/
28+
29+
package koala.dynamicjava.tree.tiger.generic;
30+
31+
import koala.dynamicjava.tree.*;
32+
33+
import java.util.*;
34+
35+
import koala.dynamicjava.tree.visitor.*;
36+
37+
/**
38+
* This class represents the *anonymous* class allocation nodes of the syntax tree
39+
*
40+
* @author Stephane Hillion
41+
* @version 1.0 - 1999/04/25
42+
*/
43+
44+
public class PolymorphicClassAllocation extends ClassAllocation {
45+
/**
46+
* The type arguments to pass to the constructor
47+
*/
48+
private List<Type> _typeArguments;
49+
50+
/**
51+
* Initializes the expression
52+
* @param tp the type prefix
53+
* @param args the arguments of the constructor. Can be null.
54+
* @param memb the members of the class
55+
* @param targs the type arguments of the constructor
56+
* @exception IllegalArgumentException if tp is null or memb is null
57+
*/
58+
public PolymorphicClassAllocation(Type tp, List<Expression> args, List<Node> memb, List<Type> targs) {
59+
this(tp, args, memb, targs, null, 0, 0, 0, 0);
60+
}
61+
62+
/**
63+
* Initializes the expression
64+
* @param tp the type prefix
65+
* @param args the arguments of the constructor. null if no arguments.
66+
* @param memb the members of the class
67+
* @param targs the type arguments of the constructor
68+
* @param fn the filename
69+
* @param bl the begin line
70+
* @param bc the begin column
71+
* @param el the end line
72+
* @param ec the end column
73+
* @exception IllegalArgumentException if tp is null or memb is null
74+
*/
75+
public PolymorphicClassAllocation(Type tp, List<Expression> args, List<Node> memb, List<Type> targs,
76+
String fn, int bl, int bc, int el, int ec) {
77+
super(tp, args, memb, fn, bl, bc, el, ec);
78+
79+
_typeArguments = targs;
80+
}
81+
82+
/**
83+
* Returns the constructor type arguments
84+
*/
85+
public List<Type> getTypeArguments() {
86+
return _typeArguments;
87+
}
88+
89+
// /**
90+
// * Sets the constructor arguments
91+
// */
92+
// public void setArguments(List<Expression> l) {
93+
// firePropertyChange(ARGUMENTS, arguments, arguments = l);
94+
// }
95+
96+
/**
97+
* Allows a visitor to traverse the tree
98+
* @param visitor the visitor to accept
99+
*/
100+
public <T> T acceptVisitor(Visitor<T> visitor) {
101+
return visitor.visit(this);
102+
}
103+
/**
104+
* Implementation of toString for use in unit testing
105+
*/
106+
public String toString() {
107+
return "("+getClass().getName()+": "+getCreationType()+" "+getArguments()+" "+getMembers()+" "+getTypeArguments()+")";
108+
}
109+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/*
2+
* DynamicJava - Copyright (C) 1999-2001
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files
6+
* (the "Software"), to deal in the Software without restriction, including
7+
* without limitation the rights to use, copy, modify, merge, publish,
8+
* distribute, sublicense, and/or sell copies of the Software, and to permit
9+
* persons to whom the Software is furnished to do so, subject to the
10+
* following conditions:
11+
* The above copyright notice and this permission notice shall be included
12+
* in all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
* IN NO EVENT SHALL DYADE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
* DEALINGS IN THE SOFTWARE.
21+
*
22+
* Except as contained in this notice, the name of Dyade shall not be
23+
* used in advertising or otherwise to promote the sale, use or other
24+
* dealings in this Software without prior written authorization from
25+
* Dyade.
26+
*
27+
*/
28+
29+
package koala.dynamicjava.tree.tiger.generic;
30+
31+
import koala.dynamicjava.tree.*;
32+
33+
import java.util.*;
34+
35+
import koala.dynamicjava.tree.visitor.*;
36+
37+
/**
38+
* This class represents the *inner class* allocation nodes of the syntax tree
39+
*
40+
* @author Stephane Hillion
41+
* @version 1.0 - 1999/04/25
42+
*/
43+
44+
public class PolymorphicInnerAllocation extends InnerAllocation {
45+
/**
46+
* The type arguments to pass to the constructor
47+
*/
48+
private List<Type> _typeArguments;
49+
50+
/**
51+
* Initializes the expression
52+
* @param exp the outer object
53+
* @param tp the type prefix
54+
* @param args the arguments of the constructor. null if no arguments.
55+
* @param targs the type arguments of the constructor
56+
* @exception IllegalArgumentException if exp is null or tp is null
57+
*/
58+
public PolymorphicInnerAllocation(Expression exp, Type tp, List<Expression> args, List<Type> targs) {
59+
this(exp, tp, args, targs, null, 0, 0, 0, 0);
60+
}
61+
62+
/**
63+
* Initializes the expression
64+
* @param exp the outer object
65+
* @param tp the type prefix
66+
* @param args the arguments of the constructor. null if no arguments.
67+
* @param targs the type arguments of the constructor
68+
* @param fn the filename
69+
* @param bl the begin line
70+
* @param bc the begin column
71+
* @param el the end line
72+
* @param ec the end column
73+
* @exception IllegalArgumentException if exp is null or tp is null
74+
*/
75+
public PolymorphicInnerAllocation(Expression exp, Type tp, List<Expression> args, List<Type> targs,
76+
String fn, int bl, int bc, int el, int ec) {
77+
super(exp, tp, args, fn, bl, bc, el, ec);
78+
79+
_typeArguments = targs;
80+
}
81+
82+
/**
83+
* Returns the constructor type arguments.
84+
*/
85+
public List<Type> getTypeArguments() {
86+
return _typeArguments;
87+
}
88+
89+
/**
90+
* Allows a visitor to traverse the tree
91+
* @param visitor the visitor to accept
92+
*/
93+
public <T> T acceptVisitor(Visitor<T> visitor) {
94+
return visitor.visit(this);
95+
}
96+
/**
97+
* Implementation of toString for use in unit testing
98+
*/
99+
public String toString() {
100+
return "("+getClass().getName()+": "+getCreationType()+" "+getExpression()+" "+getArguments()+" "+getTypeArguments()+")";
101+
}
102+
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/*
2+
* DynamicJava - Copyright (C) 1999-2001
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files
6+
* (the "Software"), to deal in the Software without restriction, including
7+
* without limitation the rights to use, copy, modify, merge, publish,
8+
* distribute, sublicense, and/or sell copies of the Software, and to permit
9+
* persons to whom the Software is furnished to do so, subject to the
10+
* following conditions:
11+
* The above copyright notice and this permission notice shall be included
12+
* in all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
* IN NO EVENT SHALL DYADE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
* DEALINGS IN THE SOFTWARE.
21+
*
22+
* Except as contained in this notice, the name of Dyade shall not be
23+
* used in advertising or otherwise to promote the sale, use or other
24+
* dealings in this Software without prior written authorization from
25+
* Dyade.
26+
*
27+
*/
28+
29+
package koala.dynamicjava.tree.tiger.generic;
30+
31+
import koala.dynamicjava.tree.*;
32+
33+
import java.util.*;
34+
35+
import koala.dynamicjava.tree.visitor.*;
36+
37+
/**
38+
* This class represents the *anonymous* inner class allocation nodes
39+
* of the syntax tree
40+
*
41+
* @author Stephane Hillion
42+
* @version 1.0 - 1999/05/25
43+
*/
44+
45+
public class PolymorphicInnerClassAllocation extends InnerClassAllocation {
46+
/**
47+
* The type arguments of the anonymous class
48+
*/
49+
private List<Type> _typeArguments;
50+
51+
/**
52+
* Initializes the expression
53+
* @param exp the outer object
54+
* @param tp the type prefix
55+
* @param args the arguments of the constructor. Can be null.
56+
* @param memb the members of the class
57+
* @param targs the type arguments of the class
58+
* @exception IllegalArgumentException if exp is null or memb is null or
59+
* tp is null
60+
*/
61+
public PolymorphicInnerClassAllocation(Expression exp, Type tp, List<Expression> args, List<Node> memb, List<Type> targs) {
62+
this(exp, tp, args, memb, targs, null, 0, 0, 0, 0);
63+
}
64+
65+
/**
66+
* Initializes the expression
67+
* @param exp the outer object
68+
* @param tp the type prefix
69+
* @param args the arguments of the constructor. Can be null.
70+
* @param memb the members of the class
71+
* @param targs the type arguments of the class
72+
* @param fn the filename
73+
* @param bl the begin line
74+
* @param bc the begin column
75+
* @param el the end line
76+
* @param ec the end column
77+
* @exception IllegalArgumentException if exp is null or memb is null or
78+
* tp is null
79+
*/
80+
public PolymorphicInnerClassAllocation(Expression exp, Type tp, List<Expression> args, List<Node> memb, List<Type> targs,
81+
String fn, int bl, int bc, int el, int ec) {
82+
super(exp, tp, args, memb, fn, bl, bc, el, ec);
83+
84+
_typeArguments = targs;
85+
}
86+
87+
/** Returns the type arguments of the anonymous class */
88+
public List<Type> getTypeArguments() { return _typeArguments; }
89+
90+
// /**
91+
// * Sets the members of the anonymous class
92+
// * @exception IllegalArgumentException if l is null
93+
// */
94+
// public void setMembers(List<Node> l) {
95+
// if (l == null) throw new IllegalArgumentException("l == null");
96+
//
97+
// firePropertyChange(MEMBERS, members, members = l);
98+
// }
99+
100+
/**
101+
* Allows a visitor to traverse the tree
102+
* @param visitor the visitor to accept
103+
*/
104+
public <T> T acceptVisitor(Visitor<T> visitor) {
105+
return visitor.visit(this);
106+
}
107+
/**
108+
* Implementation of toString for use in unit testing
109+
*/
110+
public String toString() {
111+
return "("+getClass().getName()+": "+getCreationType()+" "+getExpression()+" "+getArguments()+" "+getMembers()+" "+getTypeArguments()+")";
112+
}
113+
}

0 commit comments

Comments
 (0)