PageRenderTime 332ms CodeModel.GetById 181ms app.highlight 2ms RepoModel.GetById 148ms app.codeStats 1ms

/src/org/ooc/frontend/model/Add.java

http://github.com/nddrylliog/ooc
Java | 29 lines | 21 code | 8 blank | 0 comment | 0 complexity | b5f5610daf3271c641a1a408652ca8ab MD5 | raw file
 1package org.ooc.frontend.model;
 2
 3import java.io.IOException;
 4
 5import org.ooc.frontend.Visitor;
 6import org.ooc.frontend.model.OpDecl.OpType;
 7import org.ooc.frontend.model.tokens.Token;
 8
 9public class Add extends BinaryOperation {
10
11	public Add(Expression left, Expression right, Token startToken) {
12		super(left, right, startToken);
13	}
14
15	public void accept(Visitor visitor) throws IOException {
16		visitor.visit(this);
17	}
18	
19	@Override
20	public OpType getOpType() {
21		return OpType.ADD;
22	}
23
24	@Override
25	public int getPriority() {
26		return 20;
27	}
28	
29}