Class ASTMethod.MethodCacheKey

java.lang.Object
org.apache.velocity.runtime.parser.node.ASTMethod.MethodCacheKey
Enclosing class:
ASTMethod

public static class ASTMethod.MethodCacheKey extends 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
    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 final String
    method name
    private final Class<?>[]
    parameters classes
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

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

    • methodName

      private final String methodName
      method name
    • params

      private final 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 Details

    • MethodCacheKey

      public MethodCacheKey(String methodName, Class<?>[] params, boolean classObject)
  • Method Details