JavaScript is disabled on your browser.
Package: groovy.lang

[Java] Class GroovyShell


  • public class GroovyShell
    extends GroovyObjectSupport 

    Represents a groovy shell capable of running arbitrary groovy scripts

    • Field Detail

      • public static final String DEFAULT_CODE_BASE

    • Method Detail

      • public static void main(String[] args)

      • public void resetLoadedClasses()

      • public Object run(File scriptFile, List<String> list)

        A helper method which runs the given script file with the given command line arguments

        Parameters:
        scriptFile - the file of the script to run
        list - the command line arguments to pass in

      • public Object run(String scriptText, String fileName, List<String> list)

        A helper method which runs the given cl script with the given command line arguments

        Parameters:
        scriptText - is the text content of the script
        fileName - is the logical file name of the script (which is used to create the class name of the script)
        list - the command line arguments to pass in

      • public Object run(File scriptFile, String[] args)

        Runs the given script file name with the given command line arguments

        Parameters:
        scriptFile - the file name of the script to run
        args - the command line arguments to pass in

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /