GlueGen: src/java/com/jogamp/gluegen/cgram/CToken.java Source File

GlueGen v2.6.0-rc-20250822 GlueGen, Native Binding Generator for Java™ (public API).

CToken.java
Go to the documentation of this file.
1package com.jogamp.gluegen.cgram;
2
3 public 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}
com.jogamp.gluegen.cgram.CToken
Definition: CToken.java:3
com.jogamp.gluegen.cgram.CToken.getTokenNumber
int getTokenNumber()
Definition: CToken.java:17
com.jogamp.gluegen.cgram.CToken.setTokenNumber
void setTokenNumber(final int i)
Definition: CToken.java:22
com.jogamp.gluegen.cgram.CToken.toString
String toString()
Definition: CToken.java:28
com.jogamp.gluegen.cgram.CToken.getSource
String getSource()
Definition: CToken.java:7
com.jogamp.gluegen.cgram.CToken.setSource
void setSource(final String src)
Definition: CToken.java:12