Class Script

java.lang.Object
tv.phantombot.script.Script

public class Script extends Object
  • Field Details

    • global

      public static final org.mozilla.javascript.NativeObject global
  • Constructor Details

    • Script

      public Script(File file, String fileName)
  • Method Details

    • callMethod

      public static String callMethod(String method, String arg)
    • reload

      public void reload() throws IOException
      Throws:
      IOException
    • reload

      public void reload(boolean silent) throws IOException
      Throws:
      IOException
    • load

      public void load()
    • destroyables

      public List<ScriptDestroyable<?>> destroyables()
    • doDestroyables

      public void doDestroyables()
    • getFile

      public File getFile()
    • getLastModified

      public long getLastModified()
    • setLastModified

      public void setLastModified(long lastModified)
    • getPath

      public String getPath()
    • getRealFileName

      public String getRealFileName()
    • getContext

      public org.mozilla.javascript.Context getContext()
    • isKilled

      public boolean isKilled()
    • kill

      public void kill()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object