---
schema_version: "1"
id: bca45e491e2d47bf9266e612b8846849dd78328e9388e40fa3a15e11cd7fa5ee
title: Tree (dw::util::Tree)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-tree.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 38a04448bdf2d7b8ef71aa30cd4f226ce97f001378b565712fe61187254f0a61
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# Tree (dw::util::Tree)

このユーティリティモジュールが提供する関数を使用すると、値をツリーデータ構造のように処理できます。

このモジュールは Mule Runtime に含まれています。使用するには、DataWeave コードにインポートする必要があります。たとえば、スクリプトのヘッダーに行 ​`import * from dw::util::Tree`​ を追加します。

_DataWeave 2.2.2 で導入されました。Mule 4.2.2 以降でサポートされます。_​

## [](#関数)関数

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-functions-asexpressionstring" class="xref page">asExpressionString</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">パスを文字列表現に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-functions-mapleafvalues" class="xref page">mapLeafValues</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ツリー内のターミナル (リーフ) ノードをマップします。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-functions-nodeexists" class="xref page">nodeExists</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ツリー内のいずれかのノードが、指定された条件に対して検証された場合、​<code>true</code>​ を返します。</p></td>
</tr>
</tbody>
</table>

## [](#変数)変数

- [Tree 変数](https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-variables)

## [](#型)型

- [Tree 型](https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-types)