/** * Gets the. * * @param fullField the full field * @param field the field * @param object the object * @return the object */ private Object get(String fullField, String field, Object object) { return doGetFieldValue(fullField, field, object, this.cached, this.cachedFields); }
/** * Put. * * @param fullField the full field * @param field the field * @param value the value * @param object the object * @return the IDL proxy object */ private IDLProxyObject put(String fullField, String field, Object value, Object object) { return doSetFieldValue(fullField, field, value, object, this.cached, this.cachedFields); }
/** * Gets the. * * @param field the field * @return the object */ public Object get(String field) { if (target == null) { return null; } return get(field, field, target); }
ReflectInfo info = cachedFields.get(fullField); if (info != null) { return getField(info.target, info.field); return null; return get(fullField, sub, o); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); cachedFields.put(fullField, new ReflectInfo(f, object)); return getField(object, f);
ReflectInfo info = cachedFields.get(fullField); if (info != null) { setField(value, info.target, info.field); return this; return put(fullField, sub, value, o); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); cachedFields.put(fullField, new ReflectInfo(f, object)); setField(value, object, f);
/** * New instnace. * * @return the IDL proxy object */ public IDLProxyObject newInstnace() { try { Object object = cls.newInstance(); return new IDLProxyObject(codec, object, cls); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
/** * Gets the input proxy object. * * @return the input proxy object */ public IDLProxyObject getInputProxyObject() { if (inputIDLProxyObject != null) { return inputIDLProxyObject.newInstnace(); } return inputIDLProxyObject; }
/** * Put. * * @param field the field * @param value the value * @return the IDL proxy object */ public IDLProxyObject put(String field, Object value) { return put(field, field, value, target); }
/** * Decode. * * @param bb the bb * @return the IDL proxy object * @throws IOException Signals that an I/O exception has occurred. */ public IDLProxyObject decode(byte[] bb) throws IOException { if (bb == null) { throw new IllegalArgumentException("param 'bb' is null"); } Object object = codec.decode(bb); return new IDLProxyObject(codec, object, cls); }
/** * Gets the output idl proxy object. * * @return the output idl proxy object */ protected IDLProxyObject getOutputIDLProxyObject() { if (outputIDLProxyObject != null) { return outputIDLProxyObject.newInstnace(); } return outputIDLProxyObject; }
try { Codec codec = ProtobufProxy.create(cls, debug, path); IDLProxyObject idlProxyObject = new IDLProxyObject(codec, newInstance, cls); String name = cls.getSimpleName(); if (name.indexOf(DEFAULT_SUFFIX_CLASSNAME) != -1) {