Class GetMethodAction

  • All Implemented Interfaces:
    java.security.PrivilegedAction<java.lang.reflect.Method>

    @Enhance
    public class GetMethodAction
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.lang.reflect.Method>
    Resolves a public method for a given type or returns null if the type or method are not available or if a resolution is not possible.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The name of the method.
      private java.lang.Class<?>[] parameter
      The parameter types of the method.
      private java.lang.String type
      The name of the type.
    • Constructor Summary

      Constructors 
      Constructor Description
      GetMethodAction​(java.lang.String type, java.lang.String name, java.lang.Class<?>... parameter)
      Creates a new privileged action for resolving a Method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method run()
      • Methods inherited from class java.lang.Object

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

      • type

        private final java.lang.String type
        The name of the type.
      • name

        private final java.lang.String name
        The name of the method.
      • parameter

        private final java.lang.Class<?>[] parameter
        The parameter types of the method.
    • Constructor Detail

      • GetMethodAction

        public GetMethodAction​(java.lang.String type,
                               java.lang.String name,
                               java.lang.Class<?>... parameter)
        Creates a new privileged action for resolving a Method.
        Parameters:
        type - The name of the type.
        name - The name of the method.
        parameter - The parameter types of the method.
    • Method Detail

      • run

        @MaybeNull
        public java.lang.reflect.Method run()
        Specified by:
        run in interface java.security.PrivilegedAction<java.lang.reflect.Method>