public static Statement demarshal(Parameter param) {
return demarshal(param.getType(), Variable.get(param.getName()));
}
public static Statement demarshal(MetaClass type, Statement statement) {
Statement demarshallingStatement;
if (type.asUnboxed().isPrimitive() || type.equals(MetaClassFactory.get(String.class))) {
demarshallingStatement = PrimitiveTypeMarshaller.demarshal(type, statement);
}
else {
demarshallingStatement = Stmt.invokeStatic(JSONDecoderCli.class, "decode", statement);