protected void setValueBody(OgnlContext context, Object target, Object value) throws OgnlException { context.setCurrentObject(value); }
protected void setValueBody(OgnlContext context, Object target, Object value) throws OgnlException { context.setCurrentObject(value); }
protected void setValueBody( OgnlContext context, Object target, Object value ) throws OgnlException { context.setCurrentObject( value ); }
protected void evaluateSetValueBody(OgnlContext context, Object target, Object value) throws OgnlException { context.setCurrentObject(target); context.setCurrentNode(this); setValueBody(context, target, value); }
protected void evaluateSetValueBody( OgnlContext context, Object target, Object value ) throws OgnlException { context.setCurrentObject(target); context.setCurrentNode(this); setValueBody(context, target, value); }
protected void evaluateSetValueBody(OgnlContext context, Object target, Object value) throws OgnlException { context.setCurrentObject(target); context.setCurrentNode(this); setValueBody(context, target, value); }
public void clear() { _values.clear(); _typeStack.clear(); _accessorStack.clear(); _localReferenceCounter = 0; if (_localReferenceMap != null) { _localReferenceMap.clear(); } setRoot(null); setCurrentObject(null); setRootEvaluation(null); setCurrentEvaluation(null); setLastEvaluation(null); setCurrentNode(null); }
public void clear() { _values.clear(); _typeStack.clear(); _accessorStack.clear(); _localReferenceCounter = 0; if (_localReferenceMap != null) { _localReferenceMap.clear(); } setRoot(null); setCurrentObject(null); setRootEvaluation(null); setCurrentEvaluation(null); setLastEvaluation(null); setCurrentNode(null); }
public String toSetSourceString(OgnlContext context, Object target) { try { Object obj = OgnlRuntime.getStaticField(context, className, fieldName); context.setCurrentObject(obj); _getterClass = getFieldClass(context); context.setCurrentType(_getterClass); } catch (Throwable t) { throw OgnlOps.castToRuntime(t); } return className + "." + fieldName; } }
public String toGetSourceString(OgnlContext context, Object target) { try { Object obj = OgnlRuntime.getStaticField(context, className, fieldName); context.setCurrentObject(obj); _getterClass = getFieldClass(context); context.setCurrentType(_getterClass); } catch (Throwable t) { throw OgnlOps.castToRuntime(t); } return className + "." + fieldName; }
protected Object evaluateGetValueBody( OgnlContext context, Object source ) throws OgnlException { Object result; context.setCurrentObject(source); context.setCurrentNode(this); if (!constantValueCalculated) { constantValueCalculated = true; hasConstantValue = isConstant(context); if (hasConstantValue) { constantValue = getValueBody(context, source); } } return hasConstantValue ? constantValue : getValueBody(context, source); }
public String toGetSourceString(OgnlContext context, Object target) { try { Object obj = OgnlRuntime.getStaticField(context, className, fieldName); context.setCurrentObject(obj); _getterClass = getFieldClass(context); context.setCurrentType(_getterClass); } catch (Throwable t) { throw OgnlOps.castToRuntime(t); } return className + "." + fieldName; }
public String toSetSourceString(OgnlContext context, Object target) { try { Object obj = OgnlRuntime.getStaticField(context, className, fieldName); context.setCurrentObject(obj); _getterClass = getFieldClass(context); context.setCurrentType(_getterClass); } catch (Throwable t) { throw OgnlOps.castToRuntime(t); } return className + "." + fieldName; } }
protected Object evaluateGetValueBody(OgnlContext context, Object source) throws OgnlException { context.setCurrentObject(source); context.setCurrentNode(this); if (!_constantValueCalculated) { _constantValueCalculated = true; boolean constant = isConstant(context); if (constant) { _constantValue = getValueBody(context, source); } _hasConstantValue = constant; } return _hasConstantValue ? _constantValue : getValueBody(context, source); }
protected Object evaluateGetValueBody(OgnlContext context, Object source) throws OgnlException { context.setCurrentObject(source); context.setCurrentNode(this); if (!_constantValueCalculated) { _constantValueCalculated = true; boolean constant = isConstant(context); if (constant) { _constantValue = getValueBody(context, source); } _hasConstantValue = constant; } return _hasConstantValue ? _constantValue : getValueBody(context, source); }
context.setCurrentAccessor(context.getClass()); context.setCurrentObject(value);
public void clear() { values.clear(); setRoot(null); setCurrentObject(null); setRootEvaluation(null); setCurrentEvaluation(null); setLastEvaluation(null); setCurrentNode(null); setClassResolver(DEFAULT_CLASS_RESOLVER); setTypeConverter(DEFAULT_TYPE_CONVERTER); setMemberAccess(DEFAULT_MEMBER_ACCESS); }
public void write(Object target, ExpressionAccessor expression, Object value) { OgnlContext context = null; try { context = (OgnlContext)_contextPool.borrowObject(); // setup context context.setRoot(target); context.setCurrentObject(target); expression.set(context, target, value); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.unableToWriteExpression(ImplMessages .parsedExpression(), target, value, ex), target, null, ex); } finally { try { if (context != null) _contextPool.returnObject(context); } catch (Exception e) {} } }
context.setCurrentObject(getValueBody(context, target));
context.setCurrentObject(getValueBody(context, target));