PageRenderTime 292ms CodeModel.GetById 80ms app.highlight 2ms RepoModel.GetById 129ms app.codeStats 0ms

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

http://github.com/nddrylliog/ooc
Java | 31 lines | 22 code | 9 blank | 0 comment | 0 complexity | 1d884a51a2c4d662f601b589ce0a236f MD5 | raw file
 1package org.ooc.frontend.model;
 2
 3import java.io.IOException;
 4
 5import org.ooc.frontend.Visitor;
 6import org.ooc.frontend.model.tokens.Token;
 7
 8public class Else extends ControlStatement {
 9
10	public Else(Token startToken) {
11		super(startToken);
12	}
13
14	@Override
15	public boolean replace(Node oldie, Node kiddo) {
16		return false;
17	}
18
19	public void accept(Visitor visitor) throws IOException {
20		visitor.visit(this);
21	}
22
23	public void acceptChildren(Visitor visitor) throws IOException {
24		body.accept(visitor);
25	}
26
27	public boolean hasChildren() {
28		return !body.isEmpty();
29	}
30
31}