List of usage examples for java.lang.reflect Modifier TRANSIENT
int TRANSIENT
To view the source code for java.lang.reflect Modifier TRANSIENT.
Click Source Link
From source file:com.xwtec.xwserver.util.json.JSONObject.java
private static boolean isTransientField(Field field) { return (field.getModifiers() & Modifier.TRANSIENT) == Modifier.TRANSIENT; }
From source file:net.sf.json.JSONObject.java
private static boolean isTransientField(String name, Class beanClass, JsonConfig jsonConfig) { try {// w w w . j a v a 2s . c om Field field = beanClass.getDeclaredField(name); if ((field.getModifiers() & Modifier.TRANSIENT) == Modifier.TRANSIENT) return true; return isTransient(field, jsonConfig); } catch (Exception e) { log.info("Error while inspecting field " + beanClass + "." + name + " for transient status.", e); } return false; }