Class ReflectionImpl

  • All Implemented Interfaces:
    com.intergral.deep.agent.api.reflection.IReflection

    public class ReflectionImpl
    extends Object
    implements com.intergral.deep.agent.api.reflection.IReflection
    The version of reflection used before modules where added.
    • Constructor Detail

      • ReflectionImpl

        public ReflectionImpl()
    • Method Detail

      • setAccessible

        public boolean setAccessible​(Class<?> clazz,
                                     Field field)
        Specified by:
        setAccessible in interface com.intergral.deep.agent.api.reflection.IReflection
      • setAccessible

        public boolean setAccessible​(Class<?> clazz,
                                     Method method)
        Specified by:
        setAccessible in interface com.intergral.deep.agent.api.reflection.IReflection
      • setAccessible

        public boolean setAccessible​(Class<?> clazz,
                                     Constructor<?> constructor)
        Specified by:
        setAccessible in interface com.intergral.deep.agent.api.reflection.IReflection
      • callMethod

        public <T> T callMethod​(Object target,
                                String methodName,
                                Object... args)
        Specified by:
        callMethod in interface com.intergral.deep.agent.api.reflection.IReflection
      • findMethod

        public Method findMethod​(Class<?> originalClazz,
                                 String methodName,
                                 Class<?>... argTypes)
        Specified by:
        findMethod in interface com.intergral.deep.agent.api.reflection.IReflection
      • getField

        public Field getField​(Object obj,
                              String fieldName)
        Specified by:
        getField in interface com.intergral.deep.agent.api.reflection.IReflection
      • getFieldValue

        public <T> T getFieldValue​(Object target,
                                   String fieldName)
        Specified by:
        getFieldValue in interface com.intergral.deep.agent.api.reflection.IReflection
      • getFieldIterator

        public Iterator<Field> getFieldIterator​(Class<?> clazz)
        Specified by:
        getFieldIterator in interface com.intergral.deep.agent.api.reflection.IReflection
      • callField

        public <T> T callField​(Object target,
                               Field field)
        Specified by:
        callField in interface com.intergral.deep.agent.api.reflection.IReflection
      • getModifiers

        public Set<String> getModifiers​(Field field)
        Specified by:
        getModifiers in interface com.intergral.deep.agent.api.reflection.IReflection
      • findConstructor

        public Constructor<?> findConstructor​(Class<?> clazz,
                                              Class<?>... args)
        Specified by:
        findConstructor in interface com.intergral.deep.agent.api.reflection.IReflection
      • callConstructor

        public <T> T callConstructor​(Constructor<?> constructor,
                                     Object... args)
        Specified by:
        callConstructor in interface com.intergral.deep.agent.api.reflection.IReflection