def installed() {
// This is a standard debug statement in Groovy
//log.debug "Installed with settings: ${settings}"
- int x = 5;
- int y = 6;
- int result = x + y;
- return result;
+ //int x = 5;
+ //int y = 6;
+ //int result = x + y;
+ //return result;
+ println "installed() is called!"
//initialize()
}
// This function is where you initialize callbacks for event listeners
- //def initialize() {
+ def initialize() {
// The subscribe function takes a input, a state, and a callback method
//subscribe(contact, "contact.open", openHandler)
//subscribe(contact, "contact.closed", closedHandler)
- //}
+ println "initialize() is called!"
+ }
static void main(String[] args) {
//Empty emp = new Empty();
//int result = emp.installed();
//println result;
- println "Test"
+ //emp.installed()
+ println "End of call!"
}
}
Type returnType = method.getGenericReturnType();
System.out.println(returnType);*/
- /* TODO: Enumerate all methods in Class.class
+ /* TODO: Enumerate all methods in Class.class */
Method[] methods = Class.class.getMethods();
for(Method mth : methods) {
System.out.println("===========================");
System.out.println();
Type returnType = mth.getGenericReturnType();
System.out.println(returnType + "\n");
- }*/
+ }
/*Class[] parameterTypes = methods[0].getParameterTypes();
for(Class parameterType: parameterTypes){
throw new UnsupportedOperationException();
}
+ // TODO: Fix for Groovy's model-checking
+ transient ClassValue.ClassValueMap classValueMap;
+
public boolean isSynthetic (){
final int SYNTHETIC = 0x00001000;
return (getModifiers() & SYNTHETIC) != 0;
// used to store Thread.stop() exceptions
Throwable stopException;
-
+
private volatile UncaughtExceptionHandler uncaughtExceptionHandler; // null by default
init0(this.group, target, this.name, stackSize);
initThreadLocals(cur);
+
+ // TODO: Fix for Groovy's model-checking
+ this.tid = this.getId();
}
+ private long tid;
+
// this takes care of ThreadInfo initialization
native void init0 (ThreadGroup group, Runnable target, String name, long stackSize);
public native int getModifiers();
public native Class<?> getReturnType();
public native Class<?>[] getParameterTypes();
- public native Type[] getGenericParameterTypes();
public native Class<?>[] getExceptionTypes();
// TODO: Fix for Groovy's model-checking
+ public native Type[] getGenericParameterTypes();
public native Type getGenericReturnType();
@Override
import java.lang.reflect.Type;
import java.util.Objects;
+// TODO: Fix for Groovy's model-checking
/**
* MJI model class for sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl
*
import java.util.Arrays;
import java.util.Objects;
+// TODO: Fix for Groovy's model-checking
/**
* MJI model class for sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
*
import sun.reflect.generics.factory.GenericsFactory;
import sun.reflect.generics.tree.FieldTypeSignature;
+// TODO: Fix for Groovy's model-checking
/**
* MJI model class for sun.reflect.generics.reflectiveObjects.TypeVariableImpl
*
import sun.reflect.generics.visitor.Reifier;
import java.util.Arrays;
-
+// TODO: Fix for Groovy's model-checking
/**
* MJI model class for sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
*
public void init0__Ljava_lang_ThreadGroup_2Ljava_lang_Runnable_2Ljava_lang_String_2J__V (MJIEnv env,
int objRef, int groupRef, int runnableRef, int nameRef, long stackSize) {
VM vm = env.getVM();
-
+
+ // TODO: Fix for Groovy's model-checking
// we only need to create the ThreadInfo - its initialization will take care
// of proper linkage to the java.lang.Thread object (objRef)
vm.createThreadInfo( objRef, groupRef, runnableRef, nameRef);