uvascript
Class Script

java.lang.Object
  extended byuvascript.Script

public abstract class Script
extends java.lang.Object

Program script.

Here is a sample program:


Field Summary
 Shell shell
          The shell object representing the current working directory.
 
Constructor Summary
Script()
          Constructs a Script object with a new Shell object.
Script(Shell s)
          Constructs a Script object.
 
Method Summary
 boolean find(java.lang.String pattern)
          Finds files and directories matching the given pattern and invokes the run method for every found file or directory.
abstract  void run(java.io.File f)
          Is a method invoked for every file or directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shell

public final Shell shell
The shell object representing the current working directory.

Constructor Detail

Script

public Script()
Constructs a Script object with a new Shell object.


Script

public Script(Shell s)
Constructs a Script object.

Method Detail

find

public boolean find(java.lang.String pattern)
Finds files and directories matching the given pattern and invokes the run method for every found file or directory.

Parameters:
pattern - the path name including wild cards.
Returns:
false if an exception was thrown by the run method.

run

public abstract void run(java.io.File f)
                  throws java.lang.Exception
Is a method invoked for every file or directory.

Parameters:
f - the found file or directory.
Throws:
java.lang.Exception


UvaScript. Copyright (C) 2004 Shigeru Chiba. All Rights Reserved.