org.mvel2
Class PropertyAccessor
java.lang.Object
org.mvel2.PropertyAccessor
public class PropertyAccessor
- extends Object
|
Constructor Summary |
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 |
static Class[] |
checkParmTypesCache(Method member)
|
static void |
clearPropertyResolverCache()
|
static Object |
get(char[] property,
int offset,
int end,
Object ctx,
VariableResolverFactory resolver,
Object thisReferece,
ParserContext pCtx)
|
static Object |
get(String property,
Object ctx)
|
static Object |
get(String property,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx)
|
static void |
reportCacheSizes()
|
static void |
set(Object ctx,
String property,
Object value)
|
static void |
set(Object ctx,
VariableResolverFactory resolver,
String property,
Object value,
ParserContext pCtx)
|
protected int |
trimLeft(int pos)
|
protected Object |
tryStaticAccess()
Try static access of the property, and return an instance of the Field, Method of Class if successful. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyAccessor
public PropertyAccessor(String property,
Object ctx)
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)
get
public static Object get(String property,
Object ctx)
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,
String property,
Object value)
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
public static Class[] checkParmTypesCache(Method member)
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.
Copyright © 2014. All Rights Reserved.