Package org.mvel2
Class PropertyAccessor
java.lang.Object
org.mvel2.PropertyAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyAccessor(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
Modifier and TypeMethodDescriptionstatic Class[]checkParmTypesCache(Method member) static voidstatic Objectget(char[] property, int offset, int end, Object ctx, VariableResolverFactory resolver, Object thisReferece, ParserContext pCtx) static Objectstatic Objectget(String property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx) static voidstatic voidstatic voidset(Object ctx, VariableResolverFactory resolver, String property, Object value, ParserContext pCtx) protected inttrimLeft(int pos) protected ObjectTry static access of the property, and return an instance of the Field, Method of Class if successful.
-
Constructor Details
-
PropertyAccessor
-
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 Details
-
get
-
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
-
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() -
checkParmTypesCache
-
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.
-