/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

  1. package org.ooc.frontend.model;
  2. import java.io.IOException;
  3. import org.ooc.frontend.Visitor;
  4. import org.ooc.frontend.model.tokens.Token;
  5. public class NullLiteral extends Literal {
  6. public static Type type = new Type("Pointer", Token.defaultToken);
  7. public NullLiteral(Token startToken) {
  8. super(startToken);
  9. // blahbedi blah, blahbidi blah, eeky eeky, ooogoozooooooooo :(
  10. }
  11. public Type getType() {
  12. return type;
  13. }
  14. public void accept(Visitor visitor) throws IOException {
  15. visitor.visit(this);
  16. }
  17. public boolean hasChildren() {
  18. return false;
  19. }
  20. public void acceptChildren(Visitor visitor) throws IOException {}
  21. @Override
  22. public boolean replace(Node oldie, Node kiddo) {
  23. return false;
  24. }
  25. }