prompto.python.PythonItemExpression Maven / Gradle / Ivy
The newest version!
package prompto.python;
import prompto.utils.CodeWriter;
public class PythonItemExpression extends PythonSelectorExpression {
PythonExpression item;
public PythonItemExpression(PythonExpression item) {
this.item = item;
}
@Override
public String toString() {
return parent.toString() + "[" + item.toString() + "]";
}
@Override
public void toDialect(CodeWriter writer) {
parent.toDialect(writer);
writer.append('[');
item.toDialect(writer);
writer.append(']');
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy