| | |
| | | e.checkcast(Type.getType(type)); |
| | | e.load_arg(1); |
| | | e.checkcast(Constants.TYPE_STRING); |
| | | EmitUtils.string_switch(e, getNames(setters), 1, new ObjectSwitchCallback() { // from class: org.springblade.core.tool.beans.BladeBeanMapEmitter.2 |
| | | EmitUtils.string_switch(e, getNames(setters), 1, new ObjectSwitchCallback() { |
| | | public void processCase(Object key, Label end) { |
| | | PropertyDescriptor pd = (PropertyDescriptor) setters.get(key); |
| | | if (pd.getReadMethod() == null) { |
| | |
| | | private void generateGetPropertyType(final Map allProps, String[] allNames) { |
| | | final CodeEmitter e = begin_method(1, GET_PROPERTY_TYPE, null); |
| | | e.load_arg(0); |
| | | EmitUtils.string_switch(e, allNames, 1, new ObjectSwitchCallback() { // from class: org.springblade.core.tool.beans.BladeBeanMapEmitter.3 |
| | | EmitUtils.string_switch(e, allNames, 1, new ObjectSwitchCallback() { |
| | | public void processCase(Object key, Label end) { |
| | | PropertyDescriptor pd = (PropertyDescriptor) allProps.get(key); |
| | | EmitUtils.load_class(e, Type.getType(pd.getPropertyType())); |