PageRenderTime 263ms CodeModel.GetById 121ms app.highlight 3ms RepoModel.GetById 138ms app.codeStats 0ms

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

http://github.com/nddrylliog/ooc
Java | 37 lines | 24 code | 12 blank | 1 comment | 0 complexity | 8937e46df000120b6f93fd9dcbfe0ad4 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
 8
 9public class NullLiteral extends Literal {
10
11	public static Type type = new Type("Pointer", Token.defaultToken);
12	
13	public NullLiteral(Token startToken) {
14		super(startToken);
15		// blahbedi blah, blahbidi blah, eeky eeky, ooogoozooooooooo :(
16	}
17	
18	public Type getType() {
19		return type;
20	}
21	
22	public void accept(Visitor visitor) throws IOException {
23		visitor.visit(this);
24	}
25	
26	public boolean hasChildren() {
27		return false;
28	}
29	
30	public void acceptChildren(Visitor visitor) throws IOException {}
31	
32	@Override
33	public boolean replace(Node oldie, Node kiddo) {
34		return false;
35	}
36
37}