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

io.github.danielnaczo.python3parser.model.expr.atoms.JoinedStr Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package io.github.danielnaczo.python3parser.model.expr.atoms;

import java.util.List;
import java.util.Objects;

import io.github.danielnaczo.python3parser.model.expr.Expression;
import io.github.danielnaczo.python3parser.visitors.basic.Python3ASTVisitor;

public class JoinedStr extends Expression {
	static int PRECEDENCE = 190;

	public int getPrecedence() {
		return PRECEDENCE;
	}
	
	List values;

	public JoinedStr(List values) {
		this.values = values;
	}

	public List getValues() {
		return values;
	}

	public void setValues(List values) {
		this.values = values;
	}
	
	public  R accept(Python3ASTVisitor visitor, P param) {
		return visitor.visitJoinedStr(this, param);
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		JoinedStr joinedStr = (JoinedStr) o;
		return Objects.equals(values, joinedStr.values);
	}

	@Override
	public int hashCode() {
		return Objects.hash(values);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy