@Override public FieldSource<O> getField() { final FieldSource<O> field = getOrigin().getField(name); if (field != null && !field.isStatic()) { return field; } return null; }
@Override public FieldSource<O> getField() { final FieldSource<O> field = getOrigin().getField(name); if (field != null && !field.isStatic()) { return field; } return null; }
@Override public FieldSource<O> getField() { final FieldSource<O> field = getOrigin().getField(name); if (field != null && !field.isStatic()) { return field; } return null; }
public boolean isManagedField(FieldSource<JavaClassSource> field, ClassTypeResolver classTypeResolver) throws Exception { if (!field.isFinal() && !field.isStatic()) { //finally we can check if the field type is a managed type. //if not, the field should remain untouched return DriverUtils.isManagedType(field.getType(), classTypeResolver); } return false; }
@Override public final List<PropertySource<O>> getProperties() { final Set<String> propertyNames = new LinkedHashSet<>(); for (MethodSource<O> method : getMethods()) { if (isAccessor(method) || isMutator(method)) { propertyNames.add(extractPropertyName(method)); } } for (FieldSource<O> field : getFields()) { if (!field.isStatic()) { propertyNames.add(field.getName()); } } final List<PropertySource<O>> result = new ArrayList<>(propertyNames.size()); for (String name : propertyNames) { result.add(new PropertyImpl<>(name, getOrigin())); } return result; }
"A supplied field was null. The equals and hashCode computation will be aborted."); if (field.isStatic())
"A supplied field was null. The equals and hashCode computation will be aborted."); if (field.isStatic())
@Override public final List<PropertySource<O>> getProperties() { final Set<String> propertyNames = new LinkedHashSet<String>(); for (MethodSource<O> method : getMethods()) { if (isAccessor(method) || isMutator(method)) { propertyNames.add(extractPropertyName(method)); } } for (FieldSource<O> field : getFields()) { if (!field.isStatic()) { propertyNames.add(field.getName()); } } final List<PropertySource<O>> result = new ArrayList<PropertySource<O>>(propertyNames.size()); for (String name : propertyNames) { result.add(new PropertyImpl<O>(name, getOrigin())); } return result; }
@Override public List<PropertySource<O>> getProperties(Class<?> type) { final Set<String> propertyNames = new LinkedHashSet<>(); for (MethodSource<O> method : getMethods()) { if ((isAccessor(method) || isMutator(method)) && method.getReturnType().getQualifiedName().equals(type.getCanonicalName())) { propertyNames.add(extractPropertyName(method)); } } for (FieldSource<O> field : getFields()) { if (!field.isStatic() && field.getType().getQualifiedName().equals(type.getCanonicalName())) { propertyNames.add(field.getName()); } } final List<PropertySource<O>> result = new ArrayList<>(propertyNames.size()); for (String name : propertyNames) { result.add(new PropertyImpl<>(name, getOrigin())); } return result; }
@Override public final List<PropertySource<O>> getProperties() { final Set<String> propertyNames = new LinkedHashSet<String>(); for (MethodSource<O> method : getMethods()) { if (isAccessor(method) || isMutator(method)) { propertyNames.add(extractPropertyName(method)); } } for (FieldSource<O> field : getFields()) { if (!field.isStatic()) { propertyNames.add(field.getName()); } } final List<PropertySource<O>> result = new ArrayList<PropertySource<O>>(propertyNames.size()); for (String name : propertyNames) { result.add(new PropertyImpl<O>(name, getOrigin())); } return result; }
if (field.isStatic())
@Override public List<PropertySource<O>> getProperties(Class<?> type) { final Set<String> propertyNames = new LinkedHashSet<String>(); for (MethodSource<O> method : getMethods()) { if ((isAccessor(method) || isMutator(method)) && method.getReturnType().getQualifiedName().equals(type.getCanonicalName())) { propertyNames.add(extractPropertyName(method)); } } for (FieldSource<O> field : getFields()) { if (!field.isStatic() && field.getType().getQualifiedName().equals(type.getCanonicalName())) { propertyNames.add(field.getName()); } } final List<PropertySource<O>> result = new ArrayList<PropertySource<O>>(propertyNames.size()); for (String name : propertyNames) { result.add(new PropertyImpl<O>(name, getOrigin())); } return result; }
"A supplied field was null. The equals and hashCode computation will be aborted."); if (field.isStatic())
"A supplied field was null. The equals and hashCode computation will be aborted."); if (field.isStatic())
bag, visibility, field.isStatic(), field.isFinal());
false, DriverUtils.buildVisibility(field.getVisibility()), field.isStatic(), field.isFinal()));