コード例 #1
0
 private static JavaTypeMap javaTypeMap() {
   JavaTypeMap map = new JavaTypeMap();
   map.put("java.lang.String", new JavaType("readString", "writeString"));
   map.put("int", new JavaType("readInt", "writeInt"));
   map.put("boolean", new JavaType("readBoolean", "writeBoolean"));
   map.put("double", new JavaType("readDouble", "writeDouble"));
   map.put("long", new JavaType("readLong", "writeLong"));
   map.put("float", new JavaType("readFloat", "writeFloat"));
   return map;
 }
コード例 #2
0
 public String loadMethod(Element element) {
   String type = javaType(element);
   JavaType javaType = javaTypeMap.get(type);
   return javaType.loadMethod;
 }