org.nasdanika.models.coverage.Line Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.coverage;
import org.eclipse.emf.ecore.EObject;
import org.jacoco.core.analysis.ILine;
/**
*
* A representation of the model object 'Line'.
*
*
*
* The following features are supported:
*
*
* - {@link org.nasdanika.models.coverage.Line#getNumber Number}
* - {@link org.nasdanika.models.coverage.Line#getInstructionCounter Instruction Counter}
* - {@link org.nasdanika.models.coverage.Line#getBranchCounter Branch Counter}
*
*
* @see org.nasdanika.models.coverage.CoveragePackage#getLine()
* @model
* @generated
*/
public interface Line extends EObject {
/**
* Returns the value of the 'Number' attribute.
*
*
* @return the value of the 'Number' attribute.
* @see #setNumber(int)
* @see org.nasdanika.models.coverage.CoveragePackage#getLine_Number()
* @model
* @generated
*/
int getNumber();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Line#getNumber Number}' attribute.
*
*
* @param value the new value of the 'Number' attribute.
* @see #getNumber()
* @generated
*/
void setNumber(int value);
/**
* Returns the value of the 'Instruction Counter' containment reference.
*
*
* @return the value of the 'Instruction Counter' containment reference.
* @see #setInstructionCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getLine_InstructionCounter()
* @model containment="true"
* @generated
*/
Counter getInstructionCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Line#getInstructionCounter Instruction Counter}' containment reference.
*
*
* @param value the new value of the 'Instruction Counter' containment reference.
* @see #getInstructionCounter()
* @generated
*/
void setInstructionCounter(Counter value);
/**
* Returns the value of the 'Branch Counter' containment reference.
*
*
* @return the value of the 'Branch Counter' containment reference.
* @see #setBranchCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getLine_BranchCounter()
* @model containment="true"
* @generated
*/
Counter getBranchCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Line#getBranchCounter Branch Counter}' containment reference.
*
*
* @param value the new value of the 'Branch Counter' containment reference.
* @see #getBranchCounter()
* @generated
*/
void setBranchCounter(Counter value);
static Line load(ILine line, int i) {
Line ret = CoverageFactory.eINSTANCE.createLine();
ret.setBranchCounter(Counter.load(line.getBranchCounter()));
ret.setInstructionCounter(Counter.load(line.getInstructionCounter()));
ret.setNumber(i);
return ret;
}
} // Line