org.mvel2
Class PropertyAccessor

java.lang.Object
  extended by org.mvel2.PropertyAccessor

public class PropertyAccessor
extends java.lang.Object


Constructor Summary
PropertyAccessor(char[] property, int offset, int end, java.lang.Object ctx, VariableResolverFactory resolver)
           
PropertyAccessor(char[] property, java.lang.Object ctx)
           
PropertyAccessor(char[] property, java.lang.Object ctx, java.lang.Object thisRef, VariableResolverFactory resolver, java.lang.Object thisReference)
           
PropertyAccessor(char[] property, java.lang.Object ctx, VariableResolverFactory resolver, java.lang.Object thisReference)
           
PropertyAccessor(java.lang.String property, java.lang.Object ctx)
           
PropertyAccessor(VariableResolverFactory resolver, java.lang.Object thisReference)
           
 
Method Summary
static java.lang.Class[] checkParmTypesCache(java.lang.reflect.Method member)
           
static void clearPropertyResolverCache()
           
static java.lang.Object get(char[] property, int offset, int end, java.lang.Object ctx, VariableResolverFactory resolver)
           
static java.lang.Object get(char[] property, java.lang.Object ctx, VariableResolverFactory resolver, java.lang.Object thisReference)
           
static java.lang.Object get(java.lang.String property, java.lang.Object ctx)
           
static java.lang.Object get(java.lang.String property, java.lang.Object ctx, VariableResolverFactory resolver, java.lang.Object thisReference)
           
 int getCursorPosition()
           
static void reportCacheSizes()
           
static void set(java.lang.Object ctx, java.lang.String property, java.lang.Object value)
           
static void set(java.lang.Object ctx, VariableResolverFactory resolver, java.lang.String property, java.lang.Object value)
           
protected  int trimLeft(int pos)
           
protected  java.lang.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
 

Constructor Detail

PropertyAccessor

public PropertyAccessor(char[] property,
                        java.lang.Object ctx)

PropertyAccessor

public PropertyAccessor(char[] property,
                        java.lang.Object ctx,
                        VariableResolverFactory resolver,
                        java.lang.Object thisReference)

PropertyAccessor

public PropertyAccessor(char[] property,
                        java.lang.Object ctx,
                        java.lang.Object thisRef,
                        VariableResolverFactory resolver,
                        java.lang.Object thisReference)

PropertyAccessor

public PropertyAccessor(VariableResolverFactory resolver,
                        java.lang.Object thisReference)

PropertyAccessor

public PropertyAccessor(char[] property,
                        int offset,
                        int end,
                        java.lang.Object ctx,
                        VariableResolverFactory resolver)

PropertyAccessor

public PropertyAccessor(java.lang.String property,
                        java.lang.Object ctx)
Method Detail

get

public static java.lang.Object get(java.lang.String property,
                                   java.lang.Object ctx)

get

public static java.lang.Object get(char[] property,
                                   java.lang.Object ctx,
                                   VariableResolverFactory resolver,
                                   java.lang.Object thisReference)

get

public static java.lang.Object get(char[] property,
                                   int offset,
                                   int end,
                                   java.lang.Object ctx,
                                   VariableResolverFactory resolver)

get

public static java.lang.Object get(java.lang.String property,
                                   java.lang.Object ctx,
                                   VariableResolverFactory resolver,
                                   java.lang.Object thisReference)

set

public static void set(java.lang.Object ctx,
                       java.lang.String property,
                       java.lang.Object value)

set

public static void set(java.lang.Object ctx,
                       VariableResolverFactory resolver,
                       java.lang.String property,
                       java.lang.Object value)

trimLeft

protected int trimLeft(int pos)

clearPropertyResolverCache

public static void clearPropertyResolverCache()

reportCacheSizes

public static void reportCacheSizes()

checkParmTypesCache

public static java.lang.Class[] checkParmTypesCache(java.lang.reflect.Method member)

getCursorPosition

public int getCursorPosition()

tryStaticAccess

protected java.lang.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 © 2010. All Rights Reserved.