Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

B.16 Pseudo variables

B.16 Pseudo variables

JavaFX Script is host to a handful of handy predefined global variables, for accessing environment and script/class details, as shown in table B.5.

Table B.5. Pseudo variables
VariablePurpose
__DIR__Returns the location of the current class file as a URL, as a directory if the class is a regular bytecode file, or as a JAR file if the class is inside a Java archive.
__FILE__Returns the full filename and path of the current class file as a URL.
__PROFILE__Returns browser, desktop, or mobile, depending on the runtime environment.



  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint