aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/ast/CondExpr.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/compiler/ast/CondExpr.java')
-rw-r--r--src/main/javassist/compiler/ast/CondExpr.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/ast/CondExpr.java b/src/main/javassist/compiler/ast/CondExpr.java
index 9cb821a5..9cfde8ad 100644
--- a/src/main/javassist/compiler/ast/CondExpr.java
+++ b/src/main/javassist/compiler/ast/CondExpr.java
@@ -29,8 +29,12 @@ public class CondExpr extends ASTList {
public ASTree thenExpr() { return tail().head(); }
+ public void setThen(ASTree t) { tail().setHead(t); }
+
public ASTree elseExpr() { return tail().tail().head(); }
+ public void setElse(ASTree t) { tail().tail().setHead(t); }
+
public String getTag() { return "?:"; }
public void accept(Visitor v) throws CompileError { v.atCondExpr(this); }