public void setChar(Object o, char v) throws IllegalArgumentException, IllegalAccessException { this.field.setChar(o, v); }
public void setCharC() throws Exception { f_c.setAccessible(true); f_c.setChar(t, (char) 77); }
public final void setCharValue(Object newObj, char c) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putChar(newObj, memOffset, c); return; } field.setChar(newObj, c); }
public static void setFieldValue(String name, Object instance, char value, Class cl) { try { getReflectField(name, instance, cl).setChar(instance, value); } catch (Exception e) { e.printStackTrace(); if (isThrowable) { throw new RuntimeException("setFieldValue char error " + name + " target " + instance + " value " + value); } } }
public static char callSetChar(Field thiz, Object obj) throws IllegalArgumentException, IllegalAccessException { thiz.setChar(obj, 'Y'); return thiz.getChar(obj); }
public final void setCharValue(Object newObj, char c) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putChar(newObj, memOffset, c); return; } field.setChar(newObj, c); }
public static char callSetAndGetChar(Field thiz, Object obj) throws IllegalArgumentException, IllegalAccessException { thiz.setChar(obj, (char) (thiz.getChar(obj) + 1)); return thiz.getChar(obj); }
setChar(object, value, getType(), Character.TYPE);
setShort(object, ((Short) value).shortValue(), type, Short.TYPE); } else if (value instanceof Character) { setChar(object, ((Character) value).charValue(), type, Character.TYPE); } else if (value instanceof Integer) { setInt(object, ((Integer) value).intValue(), type, Integer.TYPE);
char c = input.readChar(); if (field != null) { field.setChar(obj, c);
@Override public void setChar( Object obj, char value ) { try { field.setChar( obj, value ); } catch ( IllegalAccessException e ) { analyzeError( e, obj ); } }
@Override public void setChar( Object obj, char value ) { try { field.setChar( obj, value ); } catch ( IllegalAccessException e ) { analyzeError( e, obj ); } }
@Override public void setChar( Object obj, char value ) { try { field.setChar( obj, value ); } catch ( IllegalAccessException e ) { analyzeError( e, obj ); } }
public static void setFieldValue(String name, Object instance, char value, Class cl) { try { getReflectField(name, instance, cl).setChar(instance, value); } catch (Exception e) { e.printStackTrace(); if (isThrowable) { throw new RuntimeException("setFieldValue char error " + name + " target " + instance + " value " + value); } } }
/** * Set field's value. */ public static void setStaticCharField(Class cls, String name, char value) { Field field = getClassField(cls, name); try { field.setChar(null, value); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }
public void read (Input input, Object object) { try { field.setChar(object, input.readChar()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void read (Input input, Object object) { try { field.setChar(object, input.readChar()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void copy (Object original, Object copy) { try { field.setChar(copy, field.getChar(original)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } } }
public void read (Input input, Object object) { try { field.setChar(object, input.readChar()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public void copy (Object original, Object copy) { try { field.setChar(copy, field.getChar(original)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } } }