Class ClassTool.CallableSub<T extends ClassTool.CallableSub>

    • Field Detail

      • uniqueName

        protected java.lang.String uniqueName
      • javadocRef

        protected java.lang.String javadocRef
      • signature

        protected java.lang.String signature
    • Constructor Detail

      • CallableSub

        public CallableSub()
    • Method Detail

      • getParameters

        public abstract java.lang.Class[] getParameters()
      • isVarArgs

        public abstract boolean isVarArgs()
      • takesParameters

        public boolean takesParameters()
      • getParameterCount

        public int getParameterCount()
        Returns the number of expected parameters. If this method or constructor is declared with varargs, the vararg only counts as one.
      • getUniqueName

        public java.lang.String getUniqueName()
        Build a unique method/ctor name by appending the simple names of the expected parameter types, thereby distinguishing constructors and overloaded methods with a useful name that would still be a valid method name. This is particularly useful for generating JUnit test method names.
        Specified by:
        getUniqueName in class ClassTool.Sub<T extends ClassTool.CallableSub>
      • getSignature

        public java.lang.String getSignature()
      • signature

        protected java.lang.String signature​(boolean fullNames)