public class HibernateToken
extends org.antlr.runtime.CommonToken
Constructor and Description |
---|
HibernateToken(org.antlr.runtime.CharStream input,
int type,
int channel,
int start,
int stop) |
HibernateToken(int type) |
HibernateToken(int type,
String text) |
HibernateToken(org.antlr.runtime.Token oldToken)
Constructor that preserves the char offset
|
HibernateToken(org.antlr.runtime.Token oldToken,
int type,
String text)
Constructor form used to track origination position information via the passed
'oldToken' param, but to utilize a new token type and text.
|
getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getType, setChannel, setCharPositionInLine, setInputStream, setLine, setStartIndex, setStopIndex, setText, setTokenIndex, setType, toString
public HibernateToken(int type)
public HibernateToken(org.antlr.runtime.CharStream input, int type, int channel, int start, int stop)
public HibernateToken(int type, String text)
public HibernateToken(org.antlr.runtime.Token oldToken)
oldToken
- A token to use to template the creation of this new one.public HibernateToken(org.antlr.runtime.Token oldToken, int type, String text)
oldToken
- The original token type (used for position tracking info).type
- The type of the new (this) tokentext
- The test of the new (this) token.Copyright © 2013. All rights reserved.