** NOTE : This feature is still pretty experimental so regular crashes are to be expected**
The lazy coder helper (LCH, not to be confunded with the LHC) is a small command line tool that speeds up your .scn file creation by letting you :
You can get access to this help section from the program itself by typing 'help'.
~~~~~~~~~
help
shows this help text
load "jar_location"
if jar_location points to a jar file : loads the jar pointed by jar_location in the class loader
if jar_location points to a directory: loads all the jars contained in the jar_location into the class loader
show stub "class_name"
shows a declaration skeleton for an object of the type class_name.
If the structure is recursive, then the recursion will stop after 1 level.
show methods "class_name"
shows the signature of all the method declared in class_name (and its parents)
~~~~~~~~~~
As you'll see in the examples, you should always begin with one or more 'load' operations in order to make your classes available to the LCH
::bash
java -jar Lazy-coder-help-standalone.jar
############################################################################
# ScenarLang Copyright (C) 2012 X. GILLARD #
# This program comes with ABSOLUTELY NO WARRANTY; #
# #
# Type 'help' if you want to see a notice about the usage of this program. #
############################################################################
load "/home/xavier/jars/UT_DSL_TEST_DUMMY_CLASSES-1.1.3.jar"
'/home/xavier/jars/UT_DSL_TEST_DUMMY_CLASSES-1.1.3.jar' loaded.
show stub "xgi.ut.dsl.dummy.BrolA"
$STUB = {
floatpt : 0,
integer : 0,
string : "",
abstString : "",
bool : false,
date : {} as "java.util.Date" ,
brol : !!! REQUIRES A CONCRETE TYPE !!!
} as "xgi.ut.dsl.dummy.BrolA" ;
I actually don't know if this feature is really useful because it's something your IDE can already do for you. But, it was easy to implement and I told myself... well who knows, one day or the orther it could maybe be handy... so I left it there (but you're not forced to use it)
::bash
java -jar Lazy-coder-help-standalone.jar
############################################################################
# ScenarLang Copyright (C) 2012 X. GILLARD #
# This program comes with ABSOLUTELY NO WARRANTY; #
# #
# Type 'help' if you want to see a notice about the usage of this program. #
############################################################################
load "/home/xavier/jars/UT_DSL_TEST_DUMMY_CLASSES-1.1.3.jar"
'/home/xavier/jars/UT_DSL_TEST_DUMMY_CLASSES-1.1.3.jar' loaded.
show methods "xgi.ut.dsl.dummy.BrolA"
show methods "xgi.ut.dsl.dummy.BrolA"
public final native java.lang.Class java.lang.Object.getClass()
protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException
private static native void java.lang.Object.registerNatives()
public double xgi.ut.dsl.dummy.BrolA.getDouble()
public java.lang.String xgi.ut.dsl.dummy.BrolA.getParameter(double)
public boolean java.lang.Object.equals(java.lang.Object)
public int xgi.ut.dsl.dummy.BrolA.getInt()
public java.lang.String xgi.ut.dsl.dummy.BrolA.getParameterString(java.lang.String)
public native int java.lang.Object.hashCode()
public boolean xgi.ut.dsl.dummy.BrolA.getBool()
public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
public final void java.lang.Object.wait() throws java.lang.InterruptedException
public xgi.ut.dsl.dummy.IBrol xgi.ut.dsl.dummy.BrolA.getBrol()
public java.util.Date xgi.ut.dsl.dummy.BrolA.getDate()
public java.lang.String xgi.ut.dsl.dummy.AbstractBrol.getAbstract()
public final native void java.lang.Object.notify()
protected void java.lang.Object.finalize() throws java.lang.Throwable
public java.lang.String java.lang.Object.toString()
public java.lang.String xgi.ut.dsl.dummy.BrolA.getString()
public final native void java.lang.Object.notifyAll()