Examples of ExpressionContext


Examples of org.apache.myfaces.trinidadinternal.share.expl.ExpressionContext

            // however, we need to do this to maintain backwards compatibility:
            return ParseContextImpl.this.getNamespaceURI(prefix);
          }
        };

      _bindingContext= new ExpressionContext()
        {
          public PrefixMapper getPrefixMapper()
          {
            return mapper;
          }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.ExpressionContext

        {
          return getParserManager().getFunction(namespaceURI, name);
        }
      };

    _bindingContext = new ExpressionContext()
      {
        public NSFunctionMapper getFunctionMapper()
        {
          return fmapper;
        }
View Full Code Here

Examples of org.apache.xalan.extensions.ExpressionContext

    {
      // @todo
      // Do we need to do something with this ??
      //    m_Error != null || (m_FullErrors && m_Warning != null) )

      ExpressionContext ctx = m_LastSQLDocumentWithError.getExpressionContext();
      SQLWarning        warn = m_LastSQLDocumentWithError.checkWarnings();


      try
      {
View Full Code Here

Examples of org.apache.xalan.extensions.ExpressionContext

   *
   */
  public void setError(Exception excp, SQLDocument doc, SQLWarning warn)
  {

    ExpressionContext cont = doc.getExpressionContext();
    m_LastSQLDocumentWithError = doc;

    try
    {
      ErrorListener listen = cont.getErrorListener();
      if ( listen != null && excp != null )
      listen.warning(
        new TransformerException(excp.toString(),
        cont.getXPathContext().getSAXLocator(), excp));

      if ( listen != null && warn != null )
      {
        listen.warning(new TransformerException(
          warn.toString(), cont.getXPathContext().getSAXLocator(), warn));
      }

      // Assume there will be just one error, but perhaps multiple warnings.
      if ( excp != null m_Error = excp;

View Full Code Here

Examples of org.apache.xalan.extensions.ExpressionContext

    {
      // @todo
      // Do we need to do something with this ??
      //    m_Error != null || (m_FullErrors && m_Warning != null) )

      ExpressionContext ctx = m_LastSQLDocumentWithError.getExpressionContext();
      SQLWarning        warn = m_LastSQLDocumentWithError.checkWarnings();


      try
      {
View Full Code Here

Examples of org.apache.xalan.extensions.ExpressionContext

   *
   */
  public void setError(Exception excp, SQLDocument doc, SQLWarning warn)
  {

    ExpressionContext cont = doc.getExpressionContext();
    m_LastSQLDocumentWithError = doc;

    try
    {
      ErrorListener listen = cont.getErrorListener();
      if ( listen != null && excp != null )
      listen.warning(
        new TransformerException(excp.toString(),
        cont.getXPathContext().getSAXLocator(), excp));

      if ( listen != null && warn != null )
      {
        listen.warning(new TransformerException(
          warn.toString(), cont.getXPathContext().getSAXLocator(), warn));
      }

      // Assume there will be just one error, but perhaps multiple warnings.
      if ( excp != null m_Error = excp;

View Full Code Here

Examples of org.codehaus.aspectwerkz.definition.expression.ExpressionContext

        }
        return rhs;
    }

    public Object visit(NotNode node, Object data) {
        ExpressionContext ctx = (ExpressionContext)data;
        Boolean lhs = (Boolean)node.jjtGetChild(0).jjtAccept(this, data);
        if (lhs == null) {
            return Boolean.TRUE;//ignore the "NOT cflow(..)"
        }
        else if (lhs.booleanValue()) {
View Full Code Here

Examples of org.codehaus.aspectwerkz.expression.ExpressionContext

    // ============ constructor signature test =============
    public void testConstructor() throws Exception {
        assertTrue(
                new ExpressionInfo("call(test.expression.Target.new())", NAMESPACE).getExpression().match(
                        new ExpressionContext(PointcutType.CALL, constructorNoArgPublic, null)
                )
        );
        assertFalse(
                new ExpressionInfo("call(test.expression.Target.new(String))", NAMESPACE).getExpression().match(
                        new ExpressionContext(PointcutType.CALL, constructorNoArgPublic, null)
                )
        );
        assertTrue(
                new ExpressionInfo("call(test.expression.Target.new())", NAMESPACE).getExpression().match(
                        new ExpressionContext(PointcutType.CALL, constructorNoArgPublic, null)
                )
        );
        assertFalse(
                new ExpressionInfo("call(test.expression.Target.new(String))", NAMESPACE).getExpression().match(
                        new ExpressionContext(PointcutType.CALL, constructorNoArgPublic, null)
                )
        );
        //AW-112 below
        assertTrue(
                new ExpressionInfo("within(test.expression.Target) && execution(new())", NAMESPACE).getExpression()
                .match(new ExpressionContext(PointcutType.EXECUTION, constructorNoArgPublic, null))
        );
        assertTrue(
                new ExpressionInfo("within(test..*) && execution(*.expression.Target.new())", NAMESPACE).getExpression()
                .match(
                        new ExpressionContext(
                                PointcutType.EXECUTION,
                                constructorNoArgPublic,
                                constructorNoArgPublic.getDeclaringType()
                        )
                )
        );
        assertTrue(
                new ExpressionInfo("within(test..*.*) && execution(*.expression.Target.new())", NAMESPACE).getExpression()
                .match(
                        new ExpressionContext(
                                PointcutType.EXECUTION,
                                constructorNoArgPublic,
                                constructorNoArgPublic.getDeclaringType()
                        )
                )
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ExpressionContext

  }

  private boolean canBePolyExpression(Expression expr) {
    // when inferring compatibility against a right type, the check isPolyExpression
    // must assume that expr occurs in s.t. like an assignment context:
    ExpressionContext previousExpressionContext = expr.getExpressionContext();
    if (previousExpressionContext == ExpressionContext.VANILLA_CONTEXT)
      this.left.setExpressionContext(ExpressionContext.ASSIGNMENT_CONTEXT);
    try {
      return expr.isPolyExpression();
    } finally {
View Full Code Here

Examples of org.outerj.expression.ExpressionContext

    public boolean isSuitableFor(Datatype dataType) {
        return dataType.getTypeClass().isAssignableFrom(formula.getResultType());
    }

    public Object calculate(Form form, Widget parent, Datatype datatype) {
        ExpressionContext ctx = new ExpressionContextImpl(parent, true);
        try {
            return formula.evaluate(ctx);
        } catch (CannotYetResolveWarning w) {
            return null;
        } catch (ExpressionException e) {
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.