class UnknownSource {

    private UnknownSourceType sourceType;

    private int    parameterIndex  = -1;
    private String signatureMethod = "";
    private String signatureField  = "";
    private final Taint.State state;

    public UnknownSource(UnknownSourceType sourceType, Taint.State state) {
        this.sourceType = sourceType;
        this.state      = state;
    }
    /** Auto-generate getter and setter with the template Builder **/

    public Taint.State getState() {
        return state;
    }

    public UnknownSourceType getSourceType() {
        return sourceType;
    }

    public UnknownSource setSourceType(UnknownSourceType sourceType) {
        this.sourceType = sourceType;
        return this;
    }

    public int getParameterIndex() {
        return parameterIndex;
    }

    public UnknownSource setParameterIndex(int parameterIndex) {
        this.parameterIndex = parameterIndex;
        return this;
    }

    public String getSignatureMethod() {
        return signatureMethod;
    }

    public UnknownSource setSignatureMethod(String signatureMethod) {
        this.signatureMethod = signatureMethod;
        return this;
    }

    public String getSignatureField() {
        return signatureField;
    }

    public UnknownSource setSignatureField(String signatureField) {
        this.signatureField = signatureField;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UnknownSource that = (UnknownSource) o;

        if (parameterIndex != that.parameterIndex) return false;
        if (sourceType != that.sourceType) return false;
        if (!signatureMethod.equals(that.signatureMethod)) return false;
        return signatureField.equals(that.signatureField);
    }

    @Override
    public int hashCode() {<FILL_FUNCTION_BODY>}

    @Override
    public String toString() {
        if(parameterIndex != -1) {
            return "Parameter (index=" + parameterIndex + ")";
        }
        else if(!signatureMethod.equals("")) {
            return "Method "+signatureMethod;
        }
        else { //Field
            return "Field "+signatureField;
        }
    }
}

        int result = sourceType.hashCode();
        result = 31 * result + parameterIndex;
        result = 31 * result + signatureMethod.hashCode();
        result = 31 * result + signatureField.hashCode();
        return result;
    
<no_super_class>