com.ibatis.sqlmap.client.lexer.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbatis Show documentation
Show all versions of jbatis Show documentation
The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.
The newest version!
/*-
* Copyright 2009-2017 Owl Group
* All rights reserved.
*/
package com.ibatis.sqlmap.client.lexer;
/**
* Token
*
* Date: 2018-01-02
*
* @author Song Sun
* @version 1.0
*/
public class Token {
public final TT type;
public final int offset;
public final String text;
protected Token(TT type, int offset) {
this.type = type;
this.offset = offset;
this.text = null;
}
public Token(TT type, int offset, String text) {
this.type = type;
this.offset = offset;
this.text = text;
}
@Override
public String toString() {
return type + ": " + text;
}
}