File: MyToken.java

package info (click to toggle)
javacc 5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 3,452 kB
  • ctags: 3,011
  • sloc: java: 21,299; xml: 2,024; sh: 120; makefile: 24
file content (22 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class MyToken extends Token
{
  /**
   * Constructs a new token for the specified Image and Kind.
   */
  public MyToken(int kind, String image)
  {
     this.kind = kind;
     this.image = image;
  }

  int realKind = JavaParserConstants.GT;

  /**
   * Returns a new Token object.
  */

  public static final Token newToken(int ofKind, String tokenImage)
  {
    return new MyToken(ofKind, tokenImage);
  }
}