
public class NewNode extends Node {

	private TypeRefNode typeRef;
	private ConsNode arguments;
	
	public NewNode(TypeRefNode typeRef, ConsNode arguments) {
		this.typeRef = typeRef;
		this.arguments = arguments;
	}

	public void setTypeRef(TypeRefNode typeRef) {
		this.typeRef = typeRef;
	}

	public TypeRefNode getTypeRef() {
		return typeRef;
	}

	public void setArguments(ConsNode arguments) {
		this.arguments = arguments;
	}

	public ConsNode getArguments() {
		return arguments;
	}

	@Override
	public String toIndentedString(int surroundingIndentation) {
		return String.format("new %s(%s)", typeRef.toString(), Node.toIndentedString(arguments, surroundingIndentation));
	}

}
