Class JvmInvokeTaintSink.Builder
- java.lang.Object
-
- proguard.analysis.cpa.jvm.domain.taint.JvmInvokeTaintSink.Builder
-
- Enclosing class:
- JvmInvokeTaintSink
public static class JvmInvokeTaintSink.Builder extends java.lang.Object
Builder forJvmInvokeTaintSink
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Predicate<Call>
callMatcher
protected java.util.function.Predicate<TaintSource>
isValidForSource
protected Signature
signature
protected java.util.Set<java.lang.Integer>
takesArgs
protected java.util.Set<java.lang.String>
takesGlobals
protected boolean
takesInstance
-
Constructor Summary
Constructors Constructor Description Builder(Signature signature)
Create a new builder forJvmInvokeTaintSink
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JvmInvokeTaintSink
build()
Build aJvmInvokeTaintSink
.JvmInvokeTaintSink.Builder
setCallMatcher(java.util.function.Predicate<Call> callMatcher)
JvmInvokeTaintSink.Builder
setIsValidForSource(java.util.function.Predicate<TaintSource> isValidForSource)
JvmInvokeTaintSink.Builder
setTakesArgs(java.util.Set<java.lang.Integer> takesArgs)
JvmInvokeTaintSink.Builder
setTakesGlobals(java.util.Set<java.lang.String> takesGlobals)
JvmInvokeTaintSink.Builder
setTakesInstance(boolean takesInstance)
-
-
-
Field Detail
-
isValidForSource
protected java.util.function.Predicate<TaintSource> isValidForSource
-
callMatcher
protected java.util.function.Predicate<Call> callMatcher
-
takesInstance
protected boolean takesInstance
-
takesArgs
protected java.util.Set<java.lang.Integer> takesArgs
-
takesGlobals
protected java.util.Set<java.lang.String> takesGlobals
-
signature
protected final Signature signature
-
-
Constructor Detail
-
Builder
public Builder(Signature signature)
Create a new builder forJvmInvokeTaintSink
.- Parameters:
signature
-signature
- the signature of a sink method
-
-
Method Detail
-
build
public JvmInvokeTaintSink build()
Build aJvmInvokeTaintSink
.
-
setIsValidForSource
public JvmInvokeTaintSink.Builder setIsValidForSource(java.util.function.Predicate<TaintSource> isValidForSource)
- Parameters:
isValidForSource
- predicate on whether the sink is valid for a given source
-
setTakesInstance
public JvmInvokeTaintSink.Builder setTakesInstance(boolean takesInstance)
- Parameters:
takesInstance
- whether the sink is sensitive to the calling instance
-
setTakesArgs
public JvmInvokeTaintSink.Builder setTakesArgs(java.util.Set<java.lang.Integer> takesArgs)
- Parameters:
takesArgs
- a set of sensitive arguments
-
setTakesGlobals
public JvmInvokeTaintSink.Builder setTakesGlobals(java.util.Set<java.lang.String> takesGlobals)
- Parameters:
takesGlobals
- a set of sensitive global variables
-
setCallMatcher
public JvmInvokeTaintSink.Builder setCallMatcher(java.util.function.Predicate<Call> callMatcher)
- Parameters:
callMatcher
- predicate on whether a call matches this taint sink
-
-