de.unibremen.informatik.st.libvcs4j.LineChange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libvcs4j-api Show documentation
Show all versions of libvcs4j-api Show documentation
A Java Library for Repository Mining (API)
package de.unibremen.informatik.st.libvcs4j;
/**
* Represents a change of a single line of text.
*/
public interface LineChange extends VCSModelElement {
/**
* The type of a {@link LineChange}.
*/
enum Type {
/**
* The {@link LineChange} is an insertion.
*/
INSERT,
/**
* The {@link LineChange} is a deletion.
*/
DELETE
}
/**
* Returns the {@link Type} of this line change.
*
* @return
* The {@link Type} of this line change.
*/
Type getType();
/**
* Returns the changed line (1 origin).
*
* @return
* The changed line (1 origin).
*/
int getLine();
/**
* Returns the content of the changed line.
*
* @return
* The content of the changed line.
*/
String getContent();
/**
* Returns the file this line change belongs to.
*
* @return
* The file this line change belongs to
*/
VCSFile getFile();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy