import org.simantics.scl.compiler.top.SCLCompilerConfiguration;
import org.simantics.scl.compiler.types.TVar;
import org.simantics.scl.compiler.types.Type;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.map.hash.THashMap;
*/
public abstract class Constant extends Val {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Constant.class);
+
public static boolean TRACE_REALIZATION = false;
protected Type type;
ModuleBuilder moduleBuilder = new ModuleBuilder(policy, builder.javaTypeTranslator);
if(SCLCompilerConfiguration.TRACE_METHOD_CREATION)
- System.out.println("Create class " + policy.getModuleClassName());
+ LOGGER.info("Create class " + policy.getModuleClassName());
ClassBuilder classFile = new ClassBuilder(moduleBuilder, Opcodes.ACC_PUBLIC, policy.getModuleClassName(), "java/lang/Object");
classFile.setSourceFile("_SCL_RealizedValue");
if(valueCache != null) {
valueCache.put(this, result);
if(TRACE_REALIZATION)
- System.out.println("/REALIZED/ " + this + " " + getClass().getSimpleName());
+ LOGGER.info("/REALIZED/ " + this + " " + getClass().getSimpleName());
}
return result;
} catch (IllegalAccessException e) {