1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package com.dmdirc.addons.calc;
-
- /**
- *
- * @author chris
- */
- public class Token {
-
- private final TokenType type;
- private String content;
-
- public Token(TokenType type, String content) {
- this.type = type;
- this.content = content;
- }
-
- public String getContent() {
- return content;
- }
-
- public TokenType getType() {
- return type;
- }
-
- @Override
- public String toString() {
- return "[type: " + type + "; content: " + content + "]";
- }
-
- }
|