Java Code Examples for com.sun.xml.internal.bind.v2.runtime.reflect.Accessor#ReadOnlyFieldReflection

The following examples show how to use com.sun.xml.internal.bind.v2.runtime.reflect.Accessor#ReadOnlyFieldReflection . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AccessorFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 2
Source File: AccessorFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 3
Source File: AccessorFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 4
Source File: AccessorFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 5
Source File: AccessorFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 6
Source File: AccessorFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 7
Source File: AccessorFactoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 8
Source File: AccessorFactoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 9
Source File: AccessorFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 10
Source File: AccessorFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 11
Source File: AccessorFactoryImpl.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 12
Source File: AccessorFactoryImpl.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 13
Source File: AccessorFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 14
Source File: AccessorFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}
 
Example 15
Source File: AccessorFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field)
            : new Accessor.FieldReflection(field);
}
 
Example 16
Source File: AccessorFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Access a field of the class.
 *
 * @param bean the class to be processed.
 * @param field the field within the class to be accessed.
 * @param readOnly  the isStatic value of the field's modifier.
 * @param supressWarning supress security warning about accessing fields through reflection
 * @return Accessor the accessor for this field
 *
 * @throws JAXBException reports failures of the method.
 */
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning) {
    return readOnly
            ? new Accessor.ReadOnlyFieldReflection(field, supressWarning)
            : new Accessor.FieldReflection(field, supressWarning);
}