Java IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Token.java 607B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.dmdirc.addons.calc;
  6. /**
  7. *
  8. * @author chris
  9. */
  10. public class Token {
  11. private final TokenType type;
  12. private String content;
  13. public Token(TokenType type, String content) {
  14. this.type = type;
  15. this.content = content;
  16. }
  17. public String getContent() {
  18. return content;
  19. }
  20. public TokenType getType() {
  21. return type;
  22. }
  23. @Override
  24. public String toString() {
  25. return "[type: " + type + "; content: " + content + "]";
  26. }
  27. }