Package javax.el

Examples of javax.el.VariableMapper


    public AstClosure(int id) {
        super(id);
    }
   
    public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        boolean result = false;
        try {
            result = this.children[0].isReadOnly(ctx);
        } finally {
View Full Code Here


        }
        return result;
    }
   
    public Object getValue(Object base, EvaluationContext ctx) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        Object result = null;
        try {
            result = this.children[0].getValue(ctx);
        } finally {
View Full Code Here

        }
        return result;
    }
   
    public Class getType(Object base, EvaluationContext ctx) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        Class result = null;
        try {
            result = this.children[0].getType(ctx);
        } finally {
View Full Code Here

    public Object getTarget(Object base, EvaluationContext ctx) throws ELException {
        return null;
    }
   
    public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        MethodInfo result = null;
        try {
            result = this.children[0].getMethodInfo(ctx, paramTypes);
        } finally {
View Full Code Here

        }
        return result;
    }
   
    public Object invoke(Object base, EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        Object result = null;
        try {
            result = this.children[0].invoke(ctx, paramTypes, paramValues);
        } finally {
View Full Code Here

        }
        return result;
    }
   
    public void setValue(Object base, EvaluationContext ctx, Object value) throws ELException {
        VariableMapper orig = ctx.getVariableMapper();
        ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base));
        try {
            this.children[0].setValue(ctx, value);
        } finally {
            ctx.setVariableMapper(orig);
View Full Code Here

  public ExpressionBuilder(String expression, ELContext ctx)
      throws ELException {
    this.expression = expression;

    FunctionMapper ctxFn = ctx.getFunctionMapper();
    VariableMapper ctxVar = ctx.getVariableMapper();

    if (ctxFn != null) {
      this.fnMapper = new FunctionMapperFactory(ctxFn);
    }
    if (ctxVar != null) {
View Full Code Here

    public AstIdentifier(int id) {
        super(id);
    }

    public Class getType(EvaluationContext ctx) throws ELException {
        VariableMapper varMapper = ctx.getVariableMapper();
        if (varMapper != null) {
            ValueExpression expr = varMapper.resolveVariable(this.image);
            if (expr != null) {
                return expr.getType(ctx.getELContext());
            }
        }
        ctx.setPropertyResolved(false);
View Full Code Here

        }
        return result;
    }

    public Object getValue(EvaluationContext ctx) throws ELException {
        VariableMapper varMapper = ctx.getVariableMapper();
        if (varMapper != null) {
            ValueExpression expr = varMapper.resolveVariable(this.image);
            if (expr != null) {
                return expr.getValue(ctx.getELContext());
            }
        }
        ctx.setPropertyResolved(false);
View Full Code Here

        }
        return result;
    }

    public boolean isReadOnly(EvaluationContext ctx) throws ELException {
        VariableMapper varMapper = ctx.getVariableMapper();
        if (varMapper != null) {
            ValueExpression expr = varMapper.resolveVariable(this.image);
            if (expr != null) {
                return expr.isReadOnly(ctx.getELContext());
            }
        }
        ctx.setPropertyResolved(false);
View Full Code Here

TOP

Related Classes of javax.el.VariableMapper

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.