Script CLASS

The information about a script file.

Parent Class

All Members


TypeNameSignature
methodgetModulepublic Module getModule()
methodgetPathpublic String getPath()

Methods


public Module getModule()

Get the module this script belongs to. Note a module consists of one or more scripts, but a script can only be part of a single module. For loose scripts which do not have a module declaration, this method still returns a module object that represents the statically unreferenceable default module.

Returns

  • The module this script belongs to.

public String getPath()

Get the absolute path to this script.

Returns

  • The absolute path to this script. Null if the script is not loaded from file system.