/usr/share/doc/javacc/examples/JavaGrammars/1.5/MyToken.java is in javacc-doc 5.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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);
}
}
|