Interface ProjectMemoizer<T extends QualifiableNode,​O extends QualifiableNode>

  • Type Parameters:
    T - Type of type declaration nodes of the language
    O - Type of operation declaration nodes of the language
    All Known Implementing Classes:
    BasicProjectMemoizer

    @Deprecated
    public interface ProjectMemoizer<T extends QualifiableNode,​O extends QualifiableNode>
    Deprecated.
    See package description
    Object storing the memoizers of the analysed project. This object should ideally be kept separate from the SignatureMatcher if there is one. A base implementation is available, see BasicProjectMemoizer.

    Memoizers need not be all kept, in fact, only those who refer to operations or classes defined in the analysed file are still relevant.

    Since:
    6.0.0
    Author:
    Clément Fournier
    • Method Detail

      • getOperationMemoizer

        MetricMemoizer<O> getOperationMemoizer​(QualifiedName qname)
        Deprecated.
        Gets the operation metric memoizer corresponding to the qualified name.
        Parameters:
        qname - The qualified name of the operation to fetch
        Returns:
        The correct memoizer, or null if it wasn't found
      • getClassMemoizer

        MetricMemoizer<T> getClassMemoizer​(QualifiedName qname)
        Deprecated.
        Gets the class metric memoizer corresponding to the qualified name.
        Parameters:
        qname - The qualified name of the class to fetch
        Returns:
        The correct memoizer, or null if it wasn't found