Examples of parseExpression()


Examples of javax.servlet.jsp.el.ExpressionEvaluator.parseExpression()

      StringBuffer s = new StringBuffer();
      s.append("${");
      s.append(relax);
      s.append("}");
      try {
        relaxExpression = evaluator.parseExpression(s.toString(), Boolean.class, this);
      } catch (Exception e) {
        throw new ConfigException("Parse error in '" + relax + "'", e);
      }
    }
    if (ignore != null) {
View Full Code Here

Examples of javax.servlet.jsp.el.ExpressionEvaluator.parseExpression()

      StringBuffer s = new StringBuffer();
      s.append("${");
      s.append(ignore);
      s.append("}");
      try {
        ignoreExpression = evaluator.parseExpression(s.toString(), Boolean.class, this);
      } catch (Exception e) {
        throw new ConfigException("Parse error in '" + ignore + "'", e);
      }
    }
  }
View Full Code Here

Examples of lombok.ast.grammar.Source.parseExpression()

    return process(s, "statement", Statement.class);
  }
 
  public static Expression parseExpression(String source) throws AstException {
    Source s = new Source(source, "expressionSnippet");
    s.parseExpression();
    return process(s, "expression", Expression.class);
  }
 
  /**
   * NB: Do not simply pass the result of {@code parseX} to this method; parsing is extremely slow. Instead, parse a template once,
View Full Code Here

Examples of mondrian.parser.MdxParserValidator.parseExpression()

        }
        final Statement statement = getInternalStatement();
        try {
            MdxParserValidator parser = createParser();
            final FunTable funTable = getSchema().getFunTable();
            return parser.parseExpression(statement, expr, debug, funTable);
        } catch (Throwable exception) {
            throw MondrianResource.instance().FailedToParseQuery.ex(
                expr,
                exception);
        }
View Full Code Here

Examples of net.mitza.rel.parser.Parser.parseExpression()

    if (expression == null) {
      return "";
    }

    Parser parser = new Parser(context);
    ExpressionNode expressionNode = parser.parseExpression(expression);
    return expressionNode.getValue();
  }
}
View Full Code Here

Examples of org.apache.beehive.netui.script.ExpressionEvaluator.parseExpression()

                            if (!requestHasPopulated)
                                ee.update(expr, updateValue, variableResolver, true);
                            // must check the expression to make sure pageFlow. and globalApp. don't get executed more than once
                            else
                            {
                                Expression pe = ee.parseExpression(expr);
                                String contextName = pe.getContext();
                                if (!contextName.equals(PAGE_FLOW_CONTEXT) && !contextName.equals(GLOBAL_APP_CONTEXT))
                                    ee.update(expr, updateValue, variableResolver, true);
                            }
                        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.CodeSnippetParsingUtil.parseExpression()

        rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation, data);
        ast.setDefaultNodeFlag(0);
        ast.setOriginalModificationCount(ast.modificationCount());
        return block;
      case K_EXPRESSION :
        org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression expression = codeSnippetParsingUtil.parseExpression(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true);
        recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation;
        comments = recordedParsingInformation.commentPositions;
        if (comments != null) {
          converter.buildCommentsTable(compilationUnit, comments);
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.parser.Parser.parseExpression()

  public void generateImplicitLambda(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
   
    final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
    final char[] source = this.compilationResult.getCompilationUnit().getContents();
    ReferenceExpression copy =  (ReferenceExpression) parser.parseExpression(source, this.sourceStart, this.sourceEnd - this.sourceStart + 1,
                    this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
   
    int argc = this.descriptor.parameters.length;
   
    LambdaExpression implicitLambda = new LambdaExpression(this.compilationResult, false);
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.CodeSnippetParsingUtil.parseExpression()

        rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation, data);
        ast.setDefaultNodeFlag(0);
        ast.setOriginalModificationCount(ast.modificationCount());
        return block;
      case K_EXPRESSION :
        org.eclipse.jdt.internal.compiler.ast.Expression expression = codeSnippetParsingUtil.parseExpression(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true);
        recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation;
        comments = recordedParsingInformation.commentPositions;
        if (comments != null) {
          converter.buildCommentsTable(compilationUnit, comments);
        }
View Full Code Here

Examples of org.eigenbase.sql.parser.SqlParser.parseExpression()

    {
        // Parse the specific name of the UDX.
        SqlIdentifier udxId;
        try {
            SqlParser parser = new SqlParser(udxSpecificName);
            SqlNode parsedId = parser.parseExpression();
            udxId = (SqlIdentifier) parsedId;
        } catch (Exception ex) {
            throw FarragoResource.instance().MedInvalidUdxId.ex(
                udxSpecificName,
                ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.