Class TaintSource.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ownerPattern

        public TaintSource.Builder ownerPattern​(String ownerPattern)
        Parameters:
        ownerPattern - regex matched in full against the internal owner name
        Returns:
        this builder
      • methodPattern

        public TaintSource.Builder methodPattern​(String methodPattern)
        Parameters:
        methodPattern - regex matched in full against the method name
        Returns:
        this builder
      • descriptorPattern

        public TaintSource.Builder descriptorPattern​(String descriptorPattern)
        Parameters:
        descriptorPattern - regex matched in full against the method descriptor
        Returns:
        this builder
      • taintedArgumentIndex

        public TaintSource.Builder taintedArgumentIndex​(int taintedArgumentIndex)
        Parameters:
        taintedArgumentIndex - zero-based argument the call taints
        Returns:
        this builder
      • taintsReturnValue

        public TaintSource.Builder taintsReturnValue​(boolean taintsReturnValue)
        Parameters:
        taintsReturnValue - whether the call taints its return value
        Returns:
        this builder
      • taintType

        public TaintSource.Builder taintType​(TaintType taintType)
        Parameters:
        taintType - taint kind the source introduces
        Returns:
        this builder
      • build

        public TaintSource build()
        Returns:
        a source holding the accumulated fields