Class Script

  • Direct Known Subclasses:
    Script.File, Script.Inline

    public abstract class Script
    extends java.lang.Object
    Bean shell script.
    Author:
    Kohsuke Kawaguchi
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Script.File
      Script where the script is stored in a file.
      static class  Script.Inline
      Script where the script is given as literal text.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getName()
      Name of the script.
      java.lang.String getSource()  
      abstract java.io.Reader read()
      Returns a new reader that reads the script.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Name of the script. This is intended to allow humans to find out which script this is.
      • read

        public abstract java.io.Reader read()
                                     throws java.io.IOException
        Returns a new reader that reads the script.
        Throws:
        java.io.IOException
      • getSource

        public java.lang.String getSource()