Class JavaMethodInvoker


  • public class JavaMethodInvoker
    extends java.lang.Object
    Invokes a method on a Java Object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Map<java.lang.String,​java.lang.Class<?>> primitiveTypes  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Class<?> getClassOrPrimitiveClass​(java.lang.String type)  
      java.lang.Object invokeJavaMethod​(java.lang.String typeOfValueToSet, java.lang.Object valueToSetObjectWith, java.lang.Object objectToInvokeJavaMethodOn, java.lang.String operator, java.lang.String operatorParameterClassName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • primitiveTypes

        protected static java.util.Map<java.lang.String,​java.lang.Class<?>> primitiveTypes
    • Constructor Detail

      • JavaMethodInvoker

        public JavaMethodInvoker()
    • Method Detail

      • getClassOrPrimitiveClass

        protected java.lang.Class<?> getClassOrPrimitiveClass​(java.lang.String type)
                                                       throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • invokeJavaMethod

        public java.lang.Object invokeJavaMethod​(java.lang.String typeOfValueToSet,
                                                 java.lang.Object valueToSetObjectWith,
                                                 java.lang.Object objectToInvokeJavaMethodOn,
                                                 java.lang.String operator,
                                                 java.lang.String operatorParameterClassName)
                                          throws java.lang.ClassNotFoundException,
                                                 java.lang.NoSuchMethodException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.IllegalArgumentException,
                                                 java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.IllegalArgumentException
        java.lang.reflect.InvocationTargetException