Class MathIntrospection


  • public class MathIntrospection
    extends java.lang.Object
    This class contains the default filters and invokers to create the static introspection of Math class
    Author:
    javaito.
    • Method Summary

      Modifier and Type Method Description
      static java.util.Set<java.lang.String> getMethodsSet()
      Returns all the methods cached fot the Math class
      static <R> R invoke​(java.lang.String functionName, java.lang.Object... parameter)
      This method invokes the specific method of the Math class using the internal introspection cache.
      • Methods inherited from class java.lang.Object

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

      • MathIntrospection

        public MathIntrospection()
    • Method Detail

      • invoke

        public static <R> R invoke​(java.lang.String functionName,
                                   java.lang.Object... parameter)
        This method invokes the specific method of the Math class using the internal introspection cache.
        Type Parameters:
        R - Expected return data type.
        Parameters:
        functionName - Name of the math function.
        parameter - Function's parameters.
        Returns:
        Math function result.
      • getMethodsSet

        public static java.util.Set<java.lang.String> getMethodsSet()
        Returns all the methods cached fot the Math class
        Returns:
        Methods set.