src/main/java/org/mvel2/compiler/AbstractParser.java
protected void captureIdentifier() {
    boolean captured = false;
    if (cursor == end) throw new CompileException("unexpected end of statement: EOF", expr, cursor);
    while (cursor != end) {
      switch (expr[cursor]) {
        case ';':
          return;

        default: {
          if (!isIdentifierPart(expr[cursor])) {
            if (captured) return;
            throw new CompileException("unexpected symbol (was expecting an identifier): " + expr[cursor],
                expr, cursor);
          }
          else {
            captured = true;
          }
        }
      }
      cursor++;
    }
  }
/**
   * Capture to the end of the current identifier under the cursor.
   */
Capture to the end of the current identifier under the cursor.
Capture to the end of the current identifier under the cursor .
protected void captureIdentifier() {
    boolean captured = false;
    if (cursor == end) throw new CompileException("unexpected end of statement: EOF", expr, cursor);
    while (cursor != end) {
      switch (expr[cursor]) {
        case ';':
          return;
        default: {
          if (!isIdentifierPart(expr[cursor])) {
            if (captured) return;
            throw new CompileException("unexpected symbol (was expecting an identifier): " + expr[cursor],
                expr, cursor);
          }
          else {
            captured = true;
          }
        }
      }
      cursor++;
    }
  }
protected void captureIdentifier ( ) { boolean captured = false ; if ( cursor == end ) throw new CompileException ( "unexpected end of statement: EOF" , expr , cursor ) ; while ( cursor != end ) { switch ( expr [ cursor ] ) { case ';' : return ; default : { if ( ! isIdentifierPart ( expr [ cursor ] ) ) { if ( captured ) return ; throw new CompileException ( "unexpected symbol (was expecting an identifier): " + expr [ cursor ] , expr , cursor ) ; } else { captured = true ; } } } cursor ++ ; } }
Capture to the end of the current identifier under the cursor.
Capture to the end of the current identifier under the cursor .