aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/cgram/CToken.java
blob: f6bbf51c597ab3ecda88d7f5d9b29a55870cc379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.jogamp.gluegen.cgram;

import antlr.CommonToken;

public class CToken extends antlr.CommonToken {
  String source = "";
  int tokenNumber;

  public String getSource() 
  { 
    return source;
  }

  public void setSource(String src) 
  {
    source = src;
  }

  public int getTokenNumber() 
  { 
    return tokenNumber;
  }

  public void setTokenNumber(int i) 
  {
    tokenNumber = i;
  }

    public String toString() {
        return "CToken:" +"(" + hashCode() + ")" + "[" + getType() + "] "+ getText() + " line:" + getLine() + " source:" + source ;
    }
}