Class AccessPathStore<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>>
java.lang.Object
com.google.errorprone.dataflow.AccessPathStore<V>
- All Implemented Interfaces:
AccessPathValues<V>
,org.checkerframework.errorprone.dataflow.analysis.Store<AccessPathStore<V>>
public abstract class AccessPathStore<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>>
extends Object
implements org.checkerframework.errorprone.dataflow.analysis.Store<AccessPathStore<V>>, AccessPathValues<V>
Immutable map from local variables or heap access paths to their
AbstractValue
To derive a new instance, create a builder from an old instance. To
start from scratch, call empty()
.
- Author:
- bennostein@google.com (Benno Stein)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
AccessPathStore.Builder<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>>
Builder forAccessPathStore
instances.Nested classes/interfaces inherited from interface org.checkerframework.errorprone.dataflow.analysis.Store
org.checkerframework.errorprone.dataflow.analysis.Store.FlowRule, org.checkerframework.errorprone.dataflow.analysis.Store.Kind
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAlias
(org.checkerframework.errorprone.dataflow.expression.JavaExpression a, org.checkerframework.errorprone.dataflow.expression.JavaExpression b) copy()
static <V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>>
AccessPathStore<V> empty()
abstract com.google.common.collect.ImmutableMap
<AccessPath, V> heap()
leastUpperBound
(AccessPathStore<V> other) valueOfAccessPath
(AccessPath path, V defaultValue) visualize
(org.checkerframework.errorprone.dataflow.cfg.visualize.CFGVisualizer<?, AccessPathStore<V>, ?> cfgVisualizer) widenedUpperBound
(AccessPathStore<V> vAccessPathStore) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.checkerframework.errorprone.dataflow.analysis.Store
equals
-
Constructor Details
-
AccessPathStore
public AccessPathStore()
-
-
Method Details
-
heap
-
empty
public static <V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>> AccessPathStore<V> empty() -
toBuilder
-
valueOfAccessPath
- Specified by:
valueOfAccessPath
in interfaceAccessPathValues<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>>
-
copy
-
leastUpperBound
-
widenedUpperBound
-
canAlias
public boolean canAlias(org.checkerframework.errorprone.dataflow.expression.JavaExpression a, org.checkerframework.errorprone.dataflow.expression.JavaExpression b) -
visualize
public String visualize(org.checkerframework.errorprone.dataflow.cfg.visualize.CFGVisualizer<?, AccessPathStore<V>, ?> cfgVisualizer)
-