edu.rice.cs.drjava.config
Interface Begin
- public interface Begin
Java doesn't have Scheme-like begin blocks as a language construct.
this is used so that you can create an anonymous class that
acts like a begin block. For example, if you wanted to create
a series of statements and the final result evaluates to a String
then you do the following
String result = (new Begin<String>() {
public String evaluate() {
// series of many statements
return result of statements;
}
}).evaluate();
- Version:
- $Id: Begin.java,v 1.1 2002/04/02 20:51:54 theoyaung Exp $
evaluate
public Object evaluate()