io.github.danielnaczo.python3parser.model.expr.atoms.JoinedStr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of python3parser Show documentation
Show all versions of python3parser Show documentation
A Java-based Python3-Parser.
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