/plugins/PHPParser/trunk/src/net/sourceforge/phpdt/internal/compiler/ast/NullLiteral.java

# · Java · 32 lines · 19 code · 5 blank · 8 comment · 0 complexity · f5f0163fbc4ffa7ef58ffbcf4d6d9b61 MD5 · raw file

  1. package net.sourceforge.phpdt.internal.compiler.ast;
  2. import gatchan.phpparser.parser.Token;
  3. import gatchan.phpparser.parser.PHPParser;
  4. /**
  5. * @author Matthieu Casanova
  6. */
  7. public class NullLiteral extends MagicLiteral
  8. {
  9. public NullLiteral(Token token)
  10. {
  11. super(Type.NULL, token.sourceStart, token.sourceEnd, token.beginLine, token.endLine, token.beginColumn, token.endColumn);
  12. }
  13. /**
  14. * Return the expression as String.
  15. *
  16. * @return the expression
  17. */
  18. @Override
  19. public String toStringExpression()
  20. {
  21. return "null";
  22. }
  23. @Override
  24. public void analyzeCode(PHPParser parser)
  25. {
  26. }
  27. }