Package net.sourceforge.pmd.lang.metrics
Interface ProjectMemoizer<T extends QualifiableNode,O extends QualifiableNode>
-
- Type Parameters:
T
- Type of type declaration nodes of the languageO
- 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 descriptionObject 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, seeBasicProjectMemoizer
.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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MetricMemoizer<T>
getClassMemoizer(QualifiedName qname)
Deprecated.Gets the class metric memoizer corresponding to the qualified name.MetricMemoizer<O>
getOperationMemoizer(QualifiedName qname)
Deprecated.Gets the operation metric memoizer corresponding to the qualified name.
-
-
-
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
-
-