/** * Returns the text matched by the current regular expression. */ public final String yytext() { return input.readText().toString(); }
/** * Returns the text matched by the current regular expression. */ public final String yytext() { return input.readText().toString(); }
/** * Returns the text matched by the current regular expression. */ public final String yytext() { return input.readText().toString(); }
/** * Returns the character at position <tt>pos</tt> from the matched text. * <p> * It is equivalent to yytext().charAt(pos), but faster * * @param pos the position of the character to fetch. A value from 0 to yylength()-1. * * @return the character at position pos */ public final char yycharat(int pos) { return input.readText().charAt(pos); }
public String toString () { return input.readText ().toString (); } }
public String getString (int from, int to) { return input.readText ().toString (); }
/** * Returns the character at position <tt>pos</tt> from the * matched text. * * It is equivalent to yytext().charAt(pos), but faster * * @param pos the position of the character to fetch. * A value from 0 to yylength()-1. * * @return the character at position pos */ public final char yycharat(int pos) { return input.readText().charAt(pos); }
/** * Returns the character at position <tt>pos</tt> from the * matched text. * * It is equivalent to yytext().charAt(pos), but faster * * @param pos the position of the character to fetch. * A value from 0 to yylength()-1. * * @return the character at position pos */ public final char yycharat(int pos) { return input.readText().charAt(pos); }
private Token<ELTokenId> token(ELTokenId tokenId) { if(LOG) { if(input.readLength() == 0) { LOGGER.log(Level.INFO, "[" + this.getClass().getSimpleName() + "] Found zero length token: "); //NOI18N } LOGGER.log(Level.INFO, "[" + this.getClass().getSimpleName() + "] token ('" + input.readText().toString() + "'; id=" + tokenId + ")\n"); //NOI18N } return tokenFactory.createToken(tokenId); }
private void checkToken(JspTokenId tokenId) { if(input.readLength() == 0) { LOGGER.log(Level.INFO, "Found zero length token: "); } LOGGER.log(Level.INFO, "[" + this.getClass().getSimpleName() + "] token ('" + input.readText().toString() + "'; id=" + tokenId + "; state=" + state() + ")\n"); }
@NonNull private Token<DockerfileTokenId> keywordOrIdentifier(final int currentState) { DockerfileTokenId id = filter(KW_TO_TKN.get(input.readText().toString().toUpperCase()), currentState); if (id == null) { id = DockerfileTokenId.IDENTIFIER; } return token(id); }
private CharSequence getPossibleTagName() { int actChar; int prev_read = input.readLength(); //remember the size of the read sequence int read = 0; while(true) { actChar = input.read(); read++; if(!(Character.isLetter(actChar) || Character.isDigit(actChar) || (actChar == '_') || (actChar == '-') || (actChar == ':') || (actChar == '.') || (actChar == '/')) || (actChar == EOF)) { // EOL or not alpha //end of tagname CharSequence tagName = input.readText().subSequence(prev_read, prev_read + read - 1); input.backup(read); //put the lookahead text back to the buffer return tagName; } } }
string = lexerInput.readText().toString(); int restLength = string.length()-1; if (restLength > 0) { string = lexerInput.readText().toString(); int restLength = string.length()-1; if (restLength > 0) { } else if (token == Token.REGEXP_ERROR) { assert stringMode == NO_LITERAL; string = lexerInput.readText().toString(); int restLength = string.length()-1; if (restLength > 0) { } else if (token == Token.STRING_ERROR) { assert stringMode == NO_LITERAL; string = lexerInput.readText().toString(); int restLength = string.length()-1; if (restLength > 0) {
text = input.readText(); textLength = text.length(); switch (state) {
public Token<ELTokenId> matchKeyword(LexerInput lexerInput) { int len = lexerInput.readLength(); char[] buffer = new char[len]; String read = lexerInput.readText().toString(); read.getChars(0, read.length(), buffer, 0); int offset = 0;
return token(ELTokenId.CHAR_LITERAL); default : char prevChar = input.readText().charAt(input.readLength() - 1); if (prevChar != '\'' && prevChar != '\\'){ lexerState = ISI_CHAR_STRING;
return token(RhtmlTokenId.DELIMITER); CharSequence cs = input.readText();
assert input.readLength() == 1 : "There is something more than '<' char in the read text: '" + input.readText() + "'"; //NOI18N input.backup(1); lexerState = INIT;