org.apache.commons.ognl.test
Class CompilingPropertyAccessor
java.lang.Object
org.apache.commons.ognl.ObjectPropertyAccessor
org.apache.commons.ognl.test.CompilingPropertyAccessor
- All Implemented Interfaces:
- PropertyAccessor
public class CompilingPropertyAccessor
- extends ObjectPropertyAccessor
Implementation of PropertyAccessor that uses Javassist to compile a property accessor specifically tailored to the
property.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompilingPropertyAccessor
public CompilingPropertyAccessor()
getPrimitiveWrapperClass
public static Class getPrimitiveWrapperClass(Class primitiveClass)
generateGetter
public static CompilingPropertyAccessor.Getter generateGetter(OgnlContext context,
String code)
throws OgnlException
- Throws:
OgnlException
getPossibleProperty
public Object getPossibleProperty(Map context,
Object target,
String name)
throws OgnlException
- Returns OgnlRuntime.NotFound if the property does not exist.
- Overrides:
getPossibleProperty
in class ObjectPropertyAccessor
- Throws:
OgnlException
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.