Class ASTMethod.MethodCacheKey

  • Enclosing class:
    ASTMethod

    public static class ASTMethod.MethodCacheKey
    extends java.lang.Object
    Internal class used as key for method cache. Combines ASTMethod fields with array of parameter classes. Has public access (and complete constructor) for unit test purposes.
    Since:
    1.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean classObject
      whether the target object is of Class type (meaning we're searching either for methods of Class, or for static methods of the class this Class objects refers to)
      private java.lang.String methodName
      method name
      private java.lang.Class<?>[] params
      parameters classes
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodCacheKey​(java.lang.String methodName, java.lang.Class<?>[] params, boolean classObject)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • methodName

        private final java.lang.String methodName
        method name
      • params

        private final java.lang.Class<?>[] params
        parameters classes
      • classObject

        private boolean classObject
        whether the target object is of Class type (meaning we're searching either for methods of Class, or for static methods of the class this Class objects refers to)
        Since:
        2.2
    • Constructor Detail

      • MethodCacheKey

        public MethodCacheKey​(java.lang.String methodName,
                              java.lang.Class<?>[] params,
                              boolean classObject)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()