PageRenderTime 128ms CodeModel.GetById 123ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/XML/sidekick/ecmascript/parser/ASTOperator.java

#
Java | 39 lines | 26 code | 10 blank | 3 comment | 0 complexity | d0062dc5f2d8ada5a3f87f1c4b6c445c MD5 | raw file
 1/* Generated By:JJTree: Do not edit this line. ASTOperator.java */
 2
 3package sidekick.ecmascript.parser;
 4
 5import sidekick.ecmascript.parser.EcmaScript;
 6import sidekick.ecmascript.parser.EcmaScriptVisitor;
 7
 8public class ASTOperator extends SimpleNode {
 9    private int operatorCode = EOF;
10
11    public ASTOperator(int id) {
12        super(id);
13    }
14
15    public ASTOperator(EcmaScript p, int id) {
16        super(p, id);
17    }
18
19    /** Accept the visitor. * */
20    @Override
21    public Object jjtAccept(EcmaScriptVisitor visitor, Object data) {
22        return visitor.visit(this, data);
23    }
24
25    // JMCL
26    public void setOperator(int operatorCode) {
27        this.operatorCode = operatorCode;
28    }
29
30    public int getOperator() {
31        return operatorCode;
32    }
33
34    @Override
35    public String toString() {
36        return "Operator[" + tokenImage[operatorCode] + "]";
37    }
38
39}