@Nullable private Object resolveImplicitVariable(String name) throws AccessException { if (this.variableResolver == null) { return null; } try { return this.variableResolver.resolveVariable(name); } catch (Exception ex) { throw new AccessException( "Unexpected exception occurred accessing '" + name + "' as an implicit variable", ex); } } }
@Nullable private Object resolveImplicitVariable(String name) throws AccessException { if (this.variableResolver == null) { return null; } try { return this.variableResolver.resolveVariable(name); } catch (Exception ex) { throw new AccessException( "Unexpected exception occurred accessing '" + name + "' as an implicit variable", ex); } } }
/** * * Evaluates by looking up the name in the VariableResolver **/ public Object evaluate (VariableResolver pResolver, FunctionMapper functions, Logger pLogger) throws ELException { if (pResolver == null) { return null; } else { return pResolver.resolveVariable (mName); } }
public Object resolveVariable(String arg0) throws XelException { try { return vr.resolveVariable(arg0); } catch (ELException e) { throw new XelException(e); } } };//end of class...
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) { if (base == null && property instanceof String) { if (context != null) context.setPropertyResolved(true); try { return _resolver.resolveVariable((String) property); } catch (Exception e) { throw new ELException(e); } } else return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
private Object resolveImplicitVariable(String name) throws AccessException { if (this.variableResolver == null) { return null; } try { return this.variableResolver.resolveVariable(name); } catch (Exception ex) { throw new AccessException( "Unexpected exception occurred accessing '" + name + "' as an implicit variable", ex); } } }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object getValue(ELContext context, Object base, Object property) throws javax.el.ELException { if (base == null) { context.setPropertyResolved(true); try { return vResolver.resolveVariable(property.toString()); } catch (ELException ex) { throw new javax.el.ELException(ex); } } return null; }
public Object resolveVariable(String name) throws ELException { Object ans = innerResolver.resolveVariable(name); if(ans ==null){ ans = context.getVariableResolver().resolveVariable(name); } return ans; } };
/** * Get the value of the given variable in this Context. * * @param name The name of the variable * @return The value (or null) * @see org.apache.commons.scxml.Context#get(java.lang.String) */ public Object get(final String name) { Object value = super.get(name); if (value == null) { try { value = variableResolver.resolveVariable(name); } catch (ELException ele) { getLog().error(ele.getMessage(), ele); } } return value; }
@Override public Class<?> getType(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base == null) { context.setPropertyResolved(base, property); if (property != null) { try { Object obj = this.variableResolver.resolveVariable(property .toString()); return (obj != null) ? obj.getClass() : null; } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(e.getMessage(), e.getCause()); } } } if (!context.isPropertyResolved()) { return elResolver.getType(context, base, property); } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base == null) { context.setPropertyResolved(base, property); if (property != null) { try { return this.variableResolver.resolveVariable(property .toString()); } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(e.getMessage(), e.getCause()); } } } if (!context.isPropertyResolved()) { return elResolver.getValue(context, base, property); } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base == null) { context.setPropertyResolved(base, property); if (property != null) { try { return this.variableResolver.resolveVariable(property .toString()); } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(MESSAGES.errorResolvingVariable (property.toString(), e.getMessage()), e.getCause()); } } } if (!context.isPropertyResolved()) { return elResolver.getValue(context, base, property); } return null; }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base == null) { context.setPropertyResolved(true); if (property != null) { try { return this.variableResolver.resolveVariable(property .toString()); } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(e.getMessage(), e.getCause()); } } } if (!context.isPropertyResolved()) { return getDefaultResolver().getValue(context, base, property); } return null; }