Java 类org.antlr.runtime.ClassicToken 实例源码

项目:ASLanPPConnector    文件:LocationInfo.java   
private static Token fakeTokenForLocation(RecognitionException e) {
    ClassicToken t = new ClassicToken(Token.INVALID_TOKEN_TYPE);
    t.setLine(e.line);
    t.setCharPositionInLine(e.charPositionInLine);
    t.setText(""); // dummy text determining next col; TODO improve
    return t;
}
项目:mclab-core    文件:TokenStreamFragment.java   
public static TokenStreamFragment fromSingleToken(String token) {
  return fromTokens(Arrays.asList((Token) new ClassicToken(1, token)));
}
项目:usergrid    文件:StringLiteral.java   
public StringLiteral( String value ) {
    super( new ClassicToken( 1, value ) );
    parseValue( value );
}
项目:usergrid    文件:UUIDLiteral.java   
public UUIDLiteral( UUID value ) {
    super( new ClassicToken( 0, String.valueOf( value ) ) );
    this.value = value;
}
项目:usergrid    文件:Equal.java   
public Equal() {
    super( new ClassicToken( 0, "=" ) );
}
项目:usergrid    文件:LongLiteral.java   
/**
 *
 * @param value
 */
public LongLiteral( long value ) {
    super( new ClassicToken( 0, String.valueOf( value ) ) );
    this.value = value;
}
项目:usergrid    文件:FloatLiteral.java   
public FloatLiteral( float f ) {
    super( new ClassicToken( 0, String.valueOf( f ) ) );
    value = f;
}
项目:usergrid    文件:Property.java   
public Property( String property ) {
    this( new ClassicToken( 1, property ) );
}
项目:usergrid    文件:BooleanLiteral.java   
/** The boolean literal */
public BooleanLiteral( boolean value ) {
    super( new ClassicToken( 0, String.valueOf( value ) ) );
    this.value = value;
}
项目:usergrid    文件:ContainsProperty.java   
public ContainsProperty( String property ) {
    this( new ClassicToken( 0, property ) );
}
项目:usergrid    文件:WithinProperty.java   
public WithinProperty( String property ) {
    this( new ClassicToken( 0, property ) );
}