1 26 package org.objectweb.util.explorer.interpreter.lib; 27 28 import org.objectweb.util.explorer.core.code.api.Code; 29 import org.objectweb.util.explorer.core.code.api.CodeDescription; 30 import org.objectweb.util.explorer.core.common.api.Description; 31 32 40 public class CodeInterpreter 41 extends AbstractDescriptionInterpreter 42 { 43 44 50 56 62 68 71 public Object interprete(Description description, Object params) { 72 Code code = getCodeProvider().getCode((CodeDescription)description); 73 if(code!=null){ 74 return code.createInstance(); 75 } 76 return null; 77 } 78 79 } 80 81 82 | Popular Tags |