/** * Create an instance of {@link ClassInspectionRequest } * */ public ClassInspectionRequest createClassInspectionRequest() { return new ClassInspectionRequest(); }
theFieldNameBlacklist = this.getFieldNameBlacklist(); if (this.fieldNameBlacklist!= null) { currentHashCode += theFieldNameBlacklist.hashCode(); theClassNameBlacklist = this.getClassNameBlacklist(); if (this.classNameBlacklist!= null) { currentHashCode += theClassNameBlacklist.hashCode(); theClasspath = this.getClasspath(); if (this.classpath!= null) { currentHashCode += theClasspath.hashCode(); theClassName = this.getClassName(); if (this.className!= null) { currentHashCode += theClassName.hashCode(); theDisablePrivateOnlyFields = this.isDisablePrivateOnlyFields(); if (this.disablePrivateOnlyFields!= null) { currentHashCode += theDisablePrivateOnlyFields.hashCode(); theDisableProtectedOnlyFields = this.isDisableProtectedOnlyFields(); if (this.disableProtectedOnlyFields!= null) { currentHashCode += theDisableProtectedOnlyFields.hashCode(); theDisablePublicOnlyFields = this.isDisablePublicOnlyFields(); if (this.disablePublicOnlyFields!= null) { currentHashCode += theDisablePublicOnlyFields.hashCode(); theDisablePublicGetterSetterFields = this.isDisablePublicGetterSetterFields();
protected void configureInspectionService(ClassInspectionService classInspectionService, ClassInspectionRequest request) { if(request.getFieldNameBlacklist() != null && request.getFieldNameBlacklist().getString() != null && !request.getFieldNameBlacklist().getString().isEmpty()) { classInspectionService.getFieldBlacklist().addAll(request.getFieldNameBlacklist().getString()); } if(request.isDisablePrivateOnlyFields() != null) { classInspectionService.setDisablePrivateOnlyFields(request.isDisablePrivateOnlyFields()); } if(request.isDisableProtectedOnlyFields() != null) { classInspectionService.setDisableProtectedOnlyFields(request.isDisableProtectedOnlyFields()); } if(request.isDisablePublicOnlyFields() != null) { classInspectionService.setDisablePublicOnlyFields(request.isDisablePublicOnlyFields()); } if(request.isDisablePublicGetterSetterFields() != null) { classInspectionService.setDisablePublicGetterSetterFields(request.isDisablePublicGetterSetterFields()); } } }
try { JavaClass c = null; if(request.getClasspath() == null || request.getClasspath().isEmpty()) { c = classInspectionService.inspectClass(request.getClassName()); } else { c = classInspectionService.inspectClass(request.getClassName(), request.getClasspath());
leftFieldNameBlacklist = this.getFieldNameBlacklist(); StringList rightFieldNameBlacklist; rightFieldNameBlacklist = that.getFieldNameBlacklist(); if (this.fieldNameBlacklist!= null) { if (that.fieldNameBlacklist!= null) { leftClassNameBlacklist = this.getClassNameBlacklist(); StringList rightClassNameBlacklist; rightClassNameBlacklist = that.getClassNameBlacklist(); if (this.classNameBlacklist!= null) { if (that.classNameBlacklist!= null) { leftClasspath = this.getClasspath(); String rightClasspath; rightClasspath = that.getClasspath(); if (this.classpath!= null) { if (that.classpath!= null) { leftClassName = this.getClassName(); String rightClassName; rightClassName = that.getClassName(); if (this.className!= null) { if (that.className!= null) { leftDisablePrivateOnlyFields = this.isDisablePrivateOnlyFields(); Boolean rightDisablePrivateOnlyFields; rightDisablePrivateOnlyFields = that.isDisablePrivateOnlyFields(); if (this.disablePrivateOnlyFields!= null) { if (that.disablePrivateOnlyFields!= null) {