---
schema_version: "1"
id: 39be553e94759a20ad83450fd10c29656f9a5800629fffd072f68256123a92f3
title: asExpressionString
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-tree-functions-asexpressionstring.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-tree-functions-asexpressionstring
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 52346eced536798df15eaa134a06661d95f3893a23dbc6cdd4cdf431ab199623
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# asExpressionString

## [](#asexpressionstring1)asExpressionString(path: Path): String

`Path`​ 値をパスの文字列表現に変換します。

_DataWeave バージョン 2.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">​<code>path</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>String</code>​ 値に変換する ​<code>Path</code>​ 値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、​`Path`​ 値をオブジェクトの属性のセレクターの ​`String`​ 表現に変換します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::util::Tree
output application/json
---
asExpressionString([
        {kind: OBJECT_TYPE, selector: "user", namespace: null},
        {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}
    ])
```

#### [](#出力)出力

```Json
".user.@name"
```