TraceConcrete.java

35 lines | 838 B Blame History Raw Download
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrgs.inf.prosoft.trace;

import java.util.List;

/**
 *
 * @author romulo
 */
public class TraceConcrete extends Trace {

    private final Return r;
    private final List<Parameter> p;

    public TraceConcrete(String instance, List<String> modifiers, Return returnValue, String name, List<Parameter> parameters, long startTime, long endTime) {
        super(instance, modifiers, name, startTime, endTime);
        this.r = returnValue;
        this.p = parameters;
    }

    @Override
    public Return getReturn() {
        return this.r;
    }

    @Override
    public List<Parameter> getParameters() {
        return this.p;
    }
}