All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bsh.commands.importObject.bsh Maven / Gradle / Ivy

The newest version!
/**
    Import an instance object into this namespace
    (analogous to static class imports).
    You can import the methods and fields of a Java object instance into
    a BeanShell namespace.  e.g.

    
        Map map = new HashMap();
        importObject( map );
        put("foo", "bar");
        print( get("foo") ); // "bar"
    
@method void importObject( Object object ) */ bsh.help.importObject = "usage: importObject( Object )"; importObject( Object object ) { this.caller.namespace.importObject( object ); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy