<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>ScriptEngine on curious Q&#39;s</title>
    <link>https://quriemoon.github.io/tags/scriptengine/</link>
    <description>Recent content in ScriptEngine on curious Q&#39;s</description>
    <generator>Hugo</generator>
    <language>ko-KR</language>
    <lastBuildDate>Sun, 07 Feb 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://quriemoon.github.io/tags/scriptengine/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ScriptEngine(Nashorn) 내 javascript var 변수 사용 시, 유의점</title>
      <link>https://quriemoon.github.io/posts/2021-02-07-scriptengine-nashorn-part-1/</link>
      <pubDate>Sun, 07 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://quriemoon.github.io/posts/2021-02-07-scriptengine-nashorn-part-1/</guid>
      <description>&lt;p&gt;java application에서 javascript 코드 실행 시, 사용하는 &lt;code&gt;ScriptEngine(Nashorn)&lt;/code&gt; 에 대한 간단한 소개와 함께,  &lt;code&gt;ScriptEngine&lt;/code&gt; 사용 중 발견한 &lt;strong&gt;javascript &lt;code&gt;var&lt;/code&gt; 변수 scope 문제&lt;/strong&gt;를 다뤄보려고 한다.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;scriptenginenashorn-이란&#34;&gt;ScriptEngine(Nashorn) 이란&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;ScriptEngine&lt;/code&gt; 은 &lt;code&gt;javax.script&lt;/code&gt; 패키지 내 있는 인터페이스로, scripting language 사용을 위한 기본적인 인터페이스이다.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ScriptEngine&lt;/code&gt; 을 이해하기에 앞서, &lt;code&gt;javax.script&lt;/code&gt; 패키지부터 알아보자. 이 패키지는 Java SE 6에 추가된 패키지로, 다양한 scripting language를 java application에서 쉽게 사용할 수 있게 도와준다. 또한, 스크립트에서 java object에 접근할 수 있게 해준다.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
