Uses of Interface
net.sourceforge.pmd.util.DataMap.DataKey
-
Packages that use DataMap.DataKey Package Description net.sourceforge.pmd.lang.ast net.sourceforge.pmd.lang.ast.impl net.sourceforge.pmd.lang.ast.impl.antlr4 net.sourceforge.pmd.lang.metrics Language-independent framework to represent code metrics.net.sourceforge.pmd.util -
-
Uses of DataMap.DataKey in net.sourceforge.pmd.lang.ast
Methods in net.sourceforge.pmd.lang.ast that return types with arguments of type DataMap.DataKey Modifier and Type Method Description DataMap<DataMap.DataKey<?,?>>
Node. getUserMap()
Returns a data map used to store additional information on this node. -
Uses of DataMap.DataKey in net.sourceforge.pmd.lang.ast.impl
Methods in net.sourceforge.pmd.lang.ast.impl that return types with arguments of type DataMap.DataKey Modifier and Type Method Description DataMap<DataMap.DataKey<?,?>>
AbstractNode. getUserMap()
-
Uses of DataMap.DataKey in net.sourceforge.pmd.lang.ast.impl.antlr4
Methods in net.sourceforge.pmd.lang.ast.impl.antlr4 that return types with arguments of type DataMap.DataKey Modifier and Type Method Description DataMap<DataMap.DataKey<?,?>>
BaseAntlrNode. getUserMap()
-
Uses of DataMap.DataKey in net.sourceforge.pmd.lang.metrics
Subinterfaces of DataMap.DataKey in net.sourceforge.pmd.lang.metrics Modifier and Type Interface Description interface
Metric<N extends Node,R extends Number>
A named computation that can be carried out on some nodes. -
Uses of DataMap.DataKey in net.sourceforge.pmd.util
Classes in net.sourceforge.pmd.util with type parameters of type DataMap.DataKey Modifier and Type Interface Description static interface
DataMap.DataKey<K extends DataMap.DataKey<K,T>,T>
A key for type-safe access into aDataMap
.Classes in net.sourceforge.pmd.util that implement DataMap.DataKey Modifier and Type Class Description static class
DataMap.SimpleDataKey<T>
Methods in net.sourceforge.pmd.util with parameters of type DataMap.DataKey Modifier and Type Method Description <T> T
DataMap. compute(DataMap.DataKey<? extends K,T> key, Function<? super @Nullable T,? extends T> function)
Create or replace a mapping with a value computed from the current value (or null if missing).<T> T
DataMap. computeIfAbsent(DataMap.DataKey<? extends K,T> key, Supplier<? extends T> supplier)
Retrieve the value, or compute it if it is missing.<T> @Nullable T
DataMap. get(DataMap.DataKey<? extends K,? extends T> key)
Retrieves the data currently mapped to the key.<T> T
DataMap. getOrDefault(DataMap.DataKey<? extends K,? extends T> key, T defaultValue)
boolean
DataMap. isSet(DataMap.DataKey<? extends K,?> key)
Returns true if the given key has a non-null value in the map.<T> @Nullable T
DataMap. set(DataMap.DataKey<? extends K,? super T> key, T data)
Set the mapping to the given data.
-