home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public class CastExpression extends UnaryExpression {
- public static final String TARGET_TYPE = "targetType";
- private Type targetType;
-
- public Type getTargetType() {
- return this.targetType;
- }
-
- public void setTargetType(Type var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("t == null");
- } else {
- ((Node)this).firePropertyChange("targetType", this.targetType, this.targetType = var1);
- }
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- public CastExpression(Type var1, Expression var2) {
- this(var1, var2, (String)null, 0, 0, 0, 0);
- }
-
- public CastExpression(Type var1, Expression var2, String var3, int var4, int var5, int var6, int var7) {
- super(var2, var3, var4, var5, var6, var7);
- if (var1 == null) {
- throw new IllegalArgumentException("tt == null");
- } else {
- this.targetType = var1;
- }
- }
- }
-