Module jakarta.el
Package jakarta.el

Class MethodInfo

java.lang.Object
jakarta.el.MethodInfo

public class MethodInfo extends Object
Holds information about a method that a MethodExpression evaluated to. Two MethodInfo instances are considered to be equal if they reference methods with the same name, return types and parameter types.
Since:
Jakarta Server Pages 2.1
  • Constructor Details

    • MethodInfo

      public MethodInfo(String name, Class<?> returnType, Class<?>[] paramTypes)
      Creates a new instance of MethodInfo with the given information.
      Parameters:
      name - The name of the method
      returnType - The return type of the method
      paramTypes - The types of each of the method's parameters
  • Method Details

    • getName

      public String getName()
      Returns the name of the method
      Returns:
      the name of the method
    • getReturnType

      public Class<?> getReturnType()
      Returns the return type of the method
      Returns:
      the return type of the method
    • getParamTypes

      public Class<?>[] getParamTypes()
      Returns the parameter types of the method
      Returns:
      the parameter types of the method
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object