Package org.eclipse.jst.jsp.core.internal.java.jspel

Examples of org.eclipse.jst.jsp.core.internal.java.jspel.Token


      elParser.Expression();
    }
    catch (ParseException e) {
      int sev = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_EL_SYNTAX);
      if (sev != ValidationMessage.IGNORE) {
        Token curTok = e.currentToken;
        int problemStartOffset = contentDocStart + curTok.beginColumn;
        Message message = new LocalizedMessage(sev, JSPCoreMessages.JSPEL_Syntax);
        message.setOffset(problemStartOffset);
        message.setLength(curTok.endColumn - curTok.beginColumn + 1);
        message.setTargetObject(file);
View Full Code Here


                final Diagnostic diagnostic = operator.validate(curType, secondType);

                if (diagnostic.getSeverity() != Diagnostic.OK)
                {
                    final Token firstToken = node.getFirstToken();
                    final int offset = _context.getDocumentPosition() + firstToken.beginColumn - 1;
                    final int length = node.getLastToken().endColumn - firstToken.beginColumn+1;
                    _reporter.report(diagnostic, offset, length);
                }
View Full Code Here

      elParser.Expression();
    }
    catch (ParseException e) {
      int sev = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_EL_SYNTAX);
      if (sev != ValidationMessage.IGNORE) {
        Token curTok = e.currentToken;
        int problemStartOffset = contentStart + curTok.beginColumn;
        Message message = new LocalizedMessage(sev, JSPCoreMessages.JSPEL_Syntax);
        message.setOffset(problemStartOffset);
        message.setLength(curTok.endColumn - curTok.beginColumn + 1);
        message.setTargetObject(file);
View Full Code Here

            }
           
            return expr;
        }
        catch (ParseException e) {
            Token curTok = e.currentToken;
            int offset = _context.getDocumentPosition() + curTok.beginColumn;
            int length = curTok.endColumn - curTok.beginColumn + 1;
            final Diagnostic diagnostic = _diagnosticFactory.create_GENERAL_SYNTAX_ERROR();
            _reporter.report(diagnostic, offset, length);
            return null;
View Full Code Here

  }

  protected String getPrefix(int relativePosition, String elText) {
    java.io.StringReader reader = new java.io.StringReader(elText);
    JSPELParserTokenManager scanner = new JSPELParserTokenManager(new SimpleCharStream(reader, 1, 1));
    Token curToken = null, lastIdentifier = null;
    while (JSPELParserConstants.EOF != (curToken = scanner.getNextToken()).kind) {
      if (JSPELParserConstants.COLON == curToken.kind && curToken.endColumn == relativePosition && null != lastIdentifier) {
        return (lastIdentifier.image);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.java.jspel.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.