public static class JvmTaintMemoryLocationBamCpaRun.Builder
extends java.lang.Object
JvmTaintMemoryLocationBamCpaRun
. It assumes either the best performing
parameters or the most basic one, if there is no absolute benefit.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JvmTaintMemoryLocationBamCpaRun |
build()
Returns the
JvmTaintMemoryLocationBamCpaRun for given parameters. |
JvmTaintMemoryLocationBamCpaRun.Builder |
setAbortOperator(AbortOperator abortOperator)
Sets the abort operator for premature CPA algorithm termination.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setCfa(JvmCfa cfa)
Sets the control flow automaton.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setFollowerHeapMapAbstractStateFactory(MapAbstractStateFactory<Reference,HeapNode<SetAbstractState<JvmTaintSource>>> followerHeapMapAbstractStateFactory)
Sets the map abstract state factory used for constructing the mapping from references to
objects in the follower heap model.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setFollowerHeapNodeMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<JvmTaintSource>> followerHeapNodeMapAbstractStateFactory)
Sets the map abstract state factory used for constructing the mapping from fields to values
in the follower heap model.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setHeapModel(HeapModel heapModel)
Sets the heap model.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setMainSignature(MethodSignature mainSignature)
Sets the signature of the method the analysis starts from.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setMaxCallStackDepth(int maxCallStackDepth)
Sets the call stack limit for the interprocedural analysis.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setMemoryLocationAbortOperator(AbortOperator memoryLocationAbortOperator)
Sets the abort operator for premature trace reconstruction termination.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setPrincipalHeapMapAbstractStateFactory(MapAbstractStateFactory<Reference,HeapNode<SetAbstractState<Reference>>> principalHeapMapAbstractStateFactory)
Sets the map abstract state factory used for constructing the mapping from references to
objects in the principal heap model.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setPrincipalHeapNodeMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<Reference>> principalHeapNodeMapAbstractStateFactory)
Sets the map abstract state factory used for constructing the mapping from fields to values
in the principal heap model.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setReduceHeap(boolean reduceHeap)
Sets whether the heap should be reduced before method calls.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setStaticFieldMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<JvmTaintSource>> staticFieldMapAbstractStateFactory)
Sets the static field map abstract state factory.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setTaintSinks(java.util.Collection<? extends JvmTaintSink> taintSinks)
Sets the taint sinks.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setTaintSources(java.util.Set<? extends JvmTaintSource> taintSources)
Sets the taint sources.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setTaintTransformers(java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)
Set a mapping from method signature to a transformer object applied to the taint state when
that method is invoked.
|
JvmTaintMemoryLocationBamCpaRun.Builder |
setThreshold(SetAbstractState<JvmTaintSource> threshold)
Sets the trace reconstruction threshold.
|
public JvmTaintMemoryLocationBamCpaRun build()
JvmTaintMemoryLocationBamCpaRun
for given parameters.public JvmTaintMemoryLocationBamCpaRun.Builder setCfa(JvmCfa cfa)
public JvmTaintMemoryLocationBamCpaRun.Builder setTaintSources(java.util.Set<? extends JvmTaintSource> taintSources)
public JvmTaintMemoryLocationBamCpaRun.Builder setMainSignature(MethodSignature mainSignature)
public JvmTaintMemoryLocationBamCpaRun.Builder setMaxCallStackDepth(int maxCallStackDepth)
public JvmTaintMemoryLocationBamCpaRun.Builder setHeapModel(HeapModel heapModel)
public JvmTaintMemoryLocationBamCpaRun.Builder setThreshold(SetAbstractState<JvmTaintSource> threshold)
public JvmTaintMemoryLocationBamCpaRun.Builder setTaintSinks(java.util.Collection<? extends JvmTaintSink> taintSinks)
public JvmTaintMemoryLocationBamCpaRun.Builder setAbortOperator(AbortOperator abortOperator)
public JvmTaintMemoryLocationBamCpaRun.Builder setMemoryLocationAbortOperator(AbortOperator memoryLocationAbortOperator)
public JvmTaintMemoryLocationBamCpaRun.Builder setReduceHeap(boolean reduceHeap)
public JvmTaintMemoryLocationBamCpaRun.Builder setStaticFieldMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<JvmTaintSource>> staticFieldMapAbstractStateFactory)
public JvmTaintMemoryLocationBamCpaRun.Builder setPrincipalHeapMapAbstractStateFactory(MapAbstractStateFactory<Reference,HeapNode<SetAbstractState<Reference>>> principalHeapMapAbstractStateFactory)
public JvmTaintMemoryLocationBamCpaRun.Builder setPrincipalHeapNodeMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<Reference>> principalHeapNodeMapAbstractStateFactory)
public JvmTaintMemoryLocationBamCpaRun.Builder setFollowerHeapMapAbstractStateFactory(MapAbstractStateFactory<Reference,HeapNode<SetAbstractState<JvmTaintSource>>> followerHeapMapAbstractStateFactory)
public JvmTaintMemoryLocationBamCpaRun.Builder setFollowerHeapNodeMapAbstractStateFactory(MapAbstractStateFactory<java.lang.String,SetAbstractState<JvmTaintSource>> followerHeapNodeMapAbstractStateFactory)
public JvmTaintMemoryLocationBamCpaRun.Builder setTaintTransformers(java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)