@flags -clean -check -showcp ...
Flags set in this operation will override flags given on the command line.
-stdin, -version, -showapi, -java and -help does nothing here.
Default imports are:
Use -noimport to turn this off.
com.crazedout.jgazm.*;
java.util.*;
java.io.*;
java.net.*
static java.util.Arrays.*;
@class
public class MyClass(){
public MyClass(){
}
public String getName(){
return this.class.toString();
}
}
@method
public String getHello(){
return "HelloWorld";
}
@catch{
Integer.parseInt("Ringo");
}
equivs to:
try{
Integer.parseInt("Ringo");
}catch(Exception ex){
onException(ex);
}
Mostly used inside methods otherwise not worth while...
@thread {
String html = sendGet("http://www.google.com");
out(html);
}
@string(name="myString") {
Hello. This is a message from jGazm string util.
The directory of this runnable is $System.getProperty("user.dir")$.
The End.
}
alert(myString);
@exception {
alert("An Exception of type " + ex.getClass() + " was thrown...");
}
This can also be handled like this:
@method
public void onException(Excepetion ex){
alert("An Exception of type " + ex.getClass() + " was thrown...");
}