47 var inst =
new StLoc();
57 public static void Load(
StLoc inst, XElement element)
60 inst.Name = (string)element.Attribute(
"name");
61 inst.Class = (string)element.Attribute(
"class");
62 inst.Type = (string)element.Attribute(
"type");
65 RuntimeJavaType typeWrapper;
68 public string Name {
get;
set; }
70 public string Class {
get;
set; }
72 public string Type {
get;
set; }
79 if (typeWrapper ==
null && typeType ==
null)
81 Debug.Assert(Class ==
null ^
Type ==
null);
83 typeType = context.ClassLoader.
Context.StaticCompiler.GetTypeForMapXml(context.ClassLoader,
Type);
85 typeWrapper = context.ClassLoader.LoadClassByName(Class);
88 lb = ilgen.DeclareLocal(typeType !=
null ? typeType : typeWrapper.TypeAsTBD);
92 ilgen.Emit(OpCodes.Stloc, lb);