@Override public BuilderWithParams instanceField(String className, String fieldName) { checkNotNull(className, "className"); checkNotNull(fieldName, "fieldName"); Map<String, ParamsBuilder> excludedFields = fieldNameByClassName.get(className); if (excludedFields == null) { excludedFields = new LinkedHashMap<>(); fieldNameByClassName.put(className, excludedFields); } lastParams = new ParamsBuilder("field " + className + "#" + fieldName); excludedFields.put(fieldName, lastParams); return this; }
@Override public BuilderWithParams staticField(String className, String fieldName) { checkNotNull(className, "className"); checkNotNull(fieldName, "fieldName"); Map<String, ParamsBuilder> excludedFields = staticFieldNameByClassName.get(className); if (excludedFields == null) { excludedFields = new LinkedHashMap<>(); staticFieldNameByClassName.put(className, excludedFields); } lastParams = new ParamsBuilder("static field " + className + "#" + fieldName); excludedFields.put(fieldName, lastParams); return this; }
/** Ignores all fields and static fields of all subclasses of the provided class name. */ @Override public BuilderWithParams clazz(String className) { checkNotNull(className, "className"); lastParams = new ParamsBuilder("any subclass of " + className); classNames.put(className, lastParams); return this; }
@Override public BuilderWithParams staticField(String className, String fieldName) { checkNotNull(className, "className"); checkNotNull(fieldName, "fieldName"); Map<String, ParamsBuilder> excludedFields = staticFieldNameByClassName.get(className); if (excludedFields == null) { excludedFields = new LinkedHashMap<>(); staticFieldNameByClassName.put(className, excludedFields); } lastParams = new ParamsBuilder("static field " + className + "#" + fieldName); excludedFields.put(fieldName, lastParams); return this; }
@Override public BuilderWithParams thread(String threadName) { checkNotNull(threadName, "threadName"); lastParams = new ParamsBuilder("any threads named " + threadName); threadNames.put(threadName, lastParams); return this; }
@Override public BuilderWithParams instanceField(String className, String fieldName) { checkNotNull(className, "className"); checkNotNull(fieldName, "fieldName"); Map<String, ParamsBuilder> excludedFields = fieldNameByClassName.get(className); if (excludedFields == null) { excludedFields = new LinkedHashMap<>(); fieldNameByClassName.put(className, excludedFields); } lastParams = new ParamsBuilder("field " + className + "#" + fieldName); excludedFields.put(fieldName, lastParams); return this; }
/** Ignores all fields and static fields of all subclasses of the provided class name. */ @Override public BuilderWithParams clazz(String className) { checkNotNull(className, "className"); lastParams = new ParamsBuilder("any subclass of " + className); classNames.put(className, lastParams); return this; }
@Override public BuilderWithParams thread(String threadName) { checkNotNull(threadName, "threadName"); lastParams = new ParamsBuilder("any threads named " + threadName); threadNames.put(threadName, lastParams); return this; }