diff options
Diffstat (limited to 'src/main/javassist/compiler/ast/Variable.java')
-rw-r--r-- | src/main/javassist/compiler/ast/Variable.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/ast/Variable.java b/src/main/javassist/compiler/ast/Variable.java index 88a31daa..c9224a7a 100644 --- a/src/main/javassist/compiler/ast/Variable.java +++ b/src/main/javassist/compiler/ast/Variable.java @@ -22,6 +22,8 @@ import javassist.compiler.CompileError; * Variable. */ public class Variable extends Symbol { + /** default serialVersionUID */ + private static final long serialVersionUID = 1L; protected Declarator declarator; public Variable(String sym, Declarator d) { @@ -31,9 +33,11 @@ public class Variable extends Symbol { public Declarator getDeclarator() { return declarator; } + @Override public String toString() { return identifier + ":" + declarator.getType(); } + @Override public void accept(Visitor v) throws CompileError { v.atVariable(this); } } |