Package org.mvel2
Class PropertyAccessor
- java.lang.Object
-
- org.mvel2.PropertyAccessor
-
public class PropertyAccessor extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessor(char[] property, int start, int offset, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)PropertyAccessor(char[] property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)PropertyAccessor(String property, Object ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Class[]checkParmTypesCache(Method member)static voidclearPropertyResolverCache()static Objectget(char[] property, int offset, int end, Object ctx, VariableResolverFactory resolver, Object thisReferece, ParserContext pCtx)static Objectget(String property, Object ctx)static Objectget(String property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)static voidreportCacheSizes()static voidset(Object ctx, String property, Object value)static voidset(Object ctx, VariableResolverFactory resolver, String property, Object value, ParserContext pCtx)protected inttrimLeft(int pos)protected ObjecttryStaticAccess()Try static access of the property, and return an instance of the Field, Method of Class if successful.
-
-
-
Constructor Detail
-
PropertyAccessor
public PropertyAccessor(char[] property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)
-
PropertyAccessor
public PropertyAccessor(char[] property, int start, int offset, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)
-
-
Method Detail
-
get
public static Object get(char[] property, int offset, int end, Object ctx, VariableResolverFactory resolver, Object thisReferece, ParserContext pCtx)
-
get
public static Object get(String property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)
-
set
public static void set(Object ctx, VariableResolverFactory resolver, String property, Object value, ParserContext pCtx)
-
trimLeft
protected int trimLeft(int pos)
-
clearPropertyResolverCache
public static void clearPropertyResolverCache()
-
reportCacheSizes
public static void reportCacheSizes()
-
tryStaticAccess
protected Object tryStaticAccess()
Try static access of the property, and return an instance of the Field, Method of Class if successful.- Returns:
- - Field, Method or Class instance.
-
-