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

org.openprovenance.prov.template.emitter.minilanguage.Symbol Maven / Gradle / Ivy

The newest version!
package org.openprovenance.prov.template.emitter.minilanguage;

import org.openprovenance.prov.template.emitter.Element;
import org.openprovenance.prov.template.emitter.minilanguage.emitters.Python;

import java.util.List;

import static org.openprovenance.prov.template.emitter.minilanguage.MethodCall.convertName;

public class Symbol extends Expression {
    public final String symbol;

    public Symbol(String symbol, List elements) {
        super(elements);
        this.symbol = symbol;
    }

    @Override
    public String toString() {
        return "Symbol{" +
                "symbol='" + symbol + '\'' +
                '}';
    }

    public void emit(Python emitter, boolean continueLine, List classVariables, List instanceVariables) {
        emitter.emitLine(convertName(symbol,classVariables, instanceVariables),continueLine);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy