All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.gauge.refactor.JavaRefactoringElement Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
/*----------------------------------------------------------------
 *  Copyright (c) ThoughtWorks, Inc.
 *  Licensed under the Apache License, Version 2.0
 *  See LICENSE.txt in the project root for license information.
 *----------------------------------------------------------------*/
package com.thoughtworks.gauge.refactor;

import java.io.File;
import java.util.ArrayList;

public class JavaRefactoringElement {
    private final ArrayList diffs;
    private String text;
    private File file;

    public JavaRefactoringElement(String text, File file) {
        this.text = text;
        this.file = file;
        this.diffs = new ArrayList<>();
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public String getText() {
        return text;
    }

    public ArrayList getDiffs() {
        return diffs;
    }

    public void addDiffs(Diff diff) {
        this.diffs.add(diff);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy