aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/ast/Stmnt.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/compiler/ast/Stmnt.java')
-rw-r--r--src/main/javassist/compiler/ast/Stmnt.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/javassist/compiler/ast/Stmnt.java b/src/main/javassist/compiler/ast/Stmnt.java
index 251f66c3..c5aa5df3 100644
--- a/src/main/javassist/compiler/ast/Stmnt.java
+++ b/src/main/javassist/compiler/ast/Stmnt.java
@@ -16,13 +16,15 @@
package javassist.compiler.ast;
-import javassist.compiler.TokenId;
import javassist.compiler.CompileError;
+import javassist.compiler.TokenId;
/**
* Statement.
*/
public class Stmnt extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int operatorId;
public Stmnt(int op, ASTree _head, ASTList _tail) {
@@ -47,14 +49,15 @@ public class Stmnt extends ASTList implements TokenId {
return new Stmnt(op, op1, new ASTList(op2, new ASTList(op3)));
}
+ @Override
public void accept(Visitor v) throws CompileError { v.atStmnt(this); }
public int getOperator() { return operatorId; }
+ @Override
protected String getTag() {
if (operatorId < 128)
return "stmnt:" + (char)operatorId;
- else
- return "stmnt:" + operatorId;
+ return "stmnt:" + operatorId;
}
}