public boolean is(int type,String lexeme){
  return this.type == type && textCount == lexeme.length() && lexeme.equals(getLexeme());
}

public boolean is ( int type , String lexeme ) { return this . type == type && textCount == lexeme . length ( ) && lexeme . equals ( getLexeme ( ) ) ; }
returns whether this token is of the specified type , with the specified lexeme .
