
com.google.gwt.emul.java.lang.reflect.CharacterField Maven / Gradle / Ivy
package java.lang.reflect;
import com.google.gwt.core.client.JavaScriptObject;
/**
* A field representing a Character object.
*
* @author "[email protected]"
*
*/
public class CharacterField extends Field{
public CharacterField(Class> declaringClass, String name, int modifiers, JavaScriptObject accessor) {
super(Character.class, declaringClass, name, modifiers, accessor);
}
public char getChar(Object obj)
throws IllegalArgumentException, IllegalAccessException
{
Object o = get(obj);
maybeThrowNullGet(o, true);
return (Character)o;
}
public void setChar(Object obj, char c)
throws IllegalArgumentException, IllegalAccessException {
set(obj, new Character(c));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy