GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
CToken.java
Go to the documentation of this file.
1package com.jogamp.gluegen.cgram;
2
3public class CToken extends antlr.CommonToken {
4 String source = "";
5 int tokenNumber;
6
7 public String getSource()
8 {
9 return source;
10 }
11
12 public void setSource(final String src)
13 {
14 source = src;
15 }
16
17 public int getTokenNumber()
18 {
19 return tokenNumber;
20 }
21
22 public void setTokenNumber(final int i)
23 {
24 tokenNumber = i;
25 }
26
27 @Override
28 public String toString() {
29 return "CToken:" +"(" + hashCode() + ")" + "[" + getType() + "] "+ getText() + " line:" + getLine() + " source:" + source ;
30 }
31}
void setTokenNumber(final int i)
Definition: CToken.java:22
void setSource(final String src)
Definition: CToken.java:12