1 24 25 package org.aspectj.compiler.base.parser; 26 27 import org.aspectj.compiler.base.JavaCompiler; 28 import org.aspectj.compiler.base.ast.*; 29 30 public class Token implements JavaConstants { 31 public Token(int _kind, String _image, boolean _isIdentifier) { 32 kind = _kind; 33 image = _image; 34 isIdentifier = _isIdentifier; 35 } 36 37 public int kind; 38 boolean isIdentifier; 40 41 public int startPosition, endPosition; 42 public String image; 43 44 public boolean isIdentifier() { 45 return isIdentifier; 46 } 47 48 public Expr getExpr(SourceLocation source) { 49 return null; 50 } 51 52 public Expr getNegativeExpr(SourceLocation source) { 53 return null; 54 } 55 56 public Token specialToken; 57 58 public String toString() { 59 if (specialToken != null) { 60 return "Token("+image+", " + specialToken + ")"; 61 } else { 62 return "Token("+image+")"; 63 } 64 } 65 } 66 | Popular Tags |