Class PropertyTools

java.lang.Object
org.mvel2.util.PropertyTools

public class PropertyTools extends Object
  • Constructor Details

    • PropertyTools

      public PropertyTools()
  • Method Details

    • isEmpty

      public static boolean isEmpty(Object o)
    • getSetter

      public static Method getSetter(Class clazz, String property)
    • getSetter

      public static Method getSetter(Class clazz, String property, Class type)
    • hasGetter

      public static boolean hasGetter(Field field)
    • hasSetter

      public static boolean hasSetter(Field field)
    • getGetter

      public static Method getGetter(Class clazz, String property)
    • isPreferredGetter

      private static boolean isPreferredGetter(Method oldMethod, Method newMethod, Map<String,Integer> getterPriorityMap)
    • getReturnType

      public static Class getReturnType(Class clazz, String property, ParserContext ctx)
    • getFieldOrAccessor

      public static Member getFieldOrAccessor(Class clazz, String property)
    • getFieldOrWriteAccessor

      public static Member getFieldOrWriteAccessor(Class clazz, String property)
    • getFieldOrWriteAccessor

      public static Member getFieldOrWriteAccessor(Class clazz, String property, Class type)
    • contains

      public static boolean contains(Object toCompare, Object testValue)
    • getPrimitiveInitialValue

      public static Object getPrimitiveInitialValue(Class type)
    • isAssignable

      public static boolean isAssignable(Class to, Class from)
    • getJavaVersion

      public static String getJavaVersion()
      Get the JVM version
      Returns:
      first mvel.java.version, then java.version