diff options
Diffstat (limited to 'src/main/javassist/compiler/ast/Pair.java')
-rw-r--r-- | src/main/javassist/compiler/ast/Pair.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/ast/Pair.java b/src/main/javassist/compiler/ast/Pair.java index b050dd28..840c1145 100644 --- a/src/main/javassist/compiler/ast/Pair.java +++ b/src/main/javassist/compiler/ast/Pair.java @@ -23,6 +23,8 @@ import javassist.compiler.CompileError; * overriding abstract methods in ASTree. */ public class Pair extends ASTree { + /** default serialVersionUID */ + private static final long serialVersionUID = 1L; protected ASTree left, right; public Pair(ASTree _left, ASTree _right) { @@ -30,8 +32,10 @@ public class Pair extends ASTree { right = _right; } + @Override public void accept(Visitor v) throws CompileError { v.atPair(this); } + @Override public String toString() { StringBuffer sbuf = new StringBuffer(); sbuf.append("(<Pair> "); @@ -42,11 +46,15 @@ public class Pair extends ASTree { return sbuf.toString(); } + @Override public ASTree getLeft() { return left; } + @Override public ASTree getRight() { return right; } + @Override public void setLeft(ASTree _left) { left = _left; } + @Override public void setRight(ASTree _right) { right = _right; } } |