Class ClassTool.MethodSub

    • Field Detail

      • method

        protected java.lang.reflect.Method method
    • Constructor Detail

      • MethodSub

        public MethodSub​(java.lang.reflect.Method method)
        Method inspector constructor
        Parameters:
        method - methodto inspect
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName()
        If this method can be treated as a bean property in Velocity (which does not exactly follow the javabean spec for such things) then it will return the "bean property" equivalent of the method name. (e.g. for getFoo(), isFoo() or setFoo(foo) it will return "foo")
        Returns:
        related property name, or null
      • isVoid

        public boolean isVoid()
        Returns true if the return type of this method is void.
        Returns:
        true if the inspected method returns null
      • getReturns

        public java.lang.Class getReturns()
        Returns:
        inspected method return type