mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-12 23:08:52 +01:00
33 lines
607 B
Java
33 lines
607 B
Java
|
package processing.app.preproc;
|
||
|
|
||
|
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 ;
|
||
|
}
|
||
|
}
|