CToken.java :  » Linux » joal-linux-amd64 » com » sun » gluegen » cgram » Java Open Source

Java Open Source » Linux » joal linux amd64 
joal linux amd64 » com » sun » gluegen » cgram » CToken.java
package com.sun.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 ;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.