package st.gravel.support.compiler.ast;
/*
This file is automatically generated from typed smalltalk source. Do not edit by hand.
(C) AG5.com
*/
import java.math.BigInteger;
import st.gravel.support.jvm.NonLocalReturn;
import st.gravel.support.compiler.ast.TypeNode;
import st.gravel.support.compiler.ast.TypeNode.TypeNode_Factory;
import st.gravel.support.compiler.ast.NodeVisitor;
import st.gravel.support.compiler.ast.Node;
import st.gravel.support.compiler.ast.SourcePrinter;
import st.gravel.support.compiler.ast.SourcePosition;
public class BottomTypeNode extends TypeNode implements Cloneable {
public static BottomTypeNode_Factory factory = new BottomTypeNode_Factory();
public static class BottomTypeNode_Factory extends TypeNode_Factory {
public BottomTypeNode basicNew() {
BottomTypeNode newInstance = new BottomTypeNode();
newInstance.initialize();
return newInstance;
}
}
@Override
public TypeNode $pipe$(final TypeNode _aTypeNode) {
return _aTypeNode;
}
@Override
public <X> X accept_(final NodeVisitor<X> _visitor) {
return _visitor.visitBottomTypeNode_(this);
}
@Override
public BottomTypeNode allNodesDo_(final st.gravel.support.jvm.Block1<Object, Node> _aBlock) {
this.nodesDo_(new st.gravel.support.jvm.Block1<Object, Node>() {
@Override
public Object value_(final Node _each) {
return _each.withAllNodesDo_(_aBlock);
}
});
return this;
}
@Override
public BottomTypeNode allNodesDo_pruneWhere_(final st.gravel.support.jvm.Block1<Object, Node> _aBlock, final st.gravel.support.jvm.Block1<Boolean, Node> _pruneBlock) {
this.nodesDo_(new st.gravel.support.jvm.Block1<Object, Node>() {
@Override
public Object value_(final Node _each) {
if (!_pruneBlock.value_(_each)) {
return _each.withAllNodesDo_pruneWhere_(_aBlock, _pruneBlock);
}
return BottomTypeNode.this;
}
});
return this;
}
public BottomTypeNode copy() {
try {
BottomTypeNode _temp1 = (BottomTypeNode) this.clone();
_temp1.postCopy();
return _temp1;
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
}
public BottomTypeNode_Factory factory() {
return factory;
}
@Override
public BottomTypeNode innerSourceOn_(final StringBuilder _aStream) {
_aStream.append("Bottom");
return this;
}
@Override
public boolean isBottomTypeNode() {
return true;
}
@Override
public BottomTypeNode localVarNamesDo_(final st.gravel.support.jvm.Block1<Object, String> _aBlock) {
return this;
}
@Override
public BottomTypeNode prettySourceOn_(final StringBuilder _aStream) {
SourcePrinter.factory.on_(_aStream).visit_(this);
return this;
}
@Override
public BottomTypeNode printOn_(final StringBuilder _aStream) {
final String _title;
_title = this.factory().toString();
_aStream.append(st.gravel.support.jvm.CharacterExtensions.isVowel(_title.charAt(0)) ? "an " : "a ");
_aStream.append(_title);
_aStream.append('[');
this.sourceOn_(_aStream);
_aStream.append(']');
return this;
}
@Override
public BottomTypeNode pvtSetSourcePosition_(final SourcePosition _aSourcePosition) {
_sourcePosition = _aSourcePosition;
return this;
}
@Override
public BottomTypeNode sourceOn_(final StringBuilder _aStream) {
this.innerSourceOn_(_aStream);
return this;
}
@Override
public BottomTypeNode typeDefsDo_(final st.gravel.support.jvm.Block1<Object, TypeNode> _aBlock) {
return this;
}
@Override
public BottomTypeNode withAllNodesDo_(final st.gravel.support.jvm.Block1<Object, Node> _aBlock) {
_aBlock.value_(this);
this.allNodesDo_(_aBlock);
return this;
}
@Override
public BottomTypeNode withAllNodesDo_pruneWhere_(final st.gravel.support.jvm.Block1<Object, Node> _aBlock, final st.gravel.support.jvm.Block1<Boolean, Node> _pruneBlock) {
_aBlock.value_(this);
this.allNodesDo_pruneWhere_(_aBlock, _pruneBlock);
return this;
}
@Override
public BottomTypeNode withSourcePosition_(final SourcePosition _aSourcePosition) {
if (_sourcePosition == _aSourcePosition) {
return BottomTypeNode.this;
}
return this.copy().pvtSetSourcePosition_(_aSourcePosition);
}
}