/** * Creates a static {@link Import} using the default implementation and adds * it to this model. * * @param type the dependency to add * @param method name of the static member method * @return a reference to this * * @since 2.5 */ default T imports(final Type type, String method) { return add(Import.of(type).static_().setStaticMember(method)); }
file.add(Import.of(ResultSetUtil.class).static_().setStaticMember("*"));
private AnnotationUsage withExecuteBefore(File file) { file.add(Import.of(State.class).static_().setStaticMember("RESOLVED")); return AnnotationUsage.of(ExecuteBefore.class).set(Value.ofReference("RESOLVED")); }
/** * Creates a static {@link Import} using the default implementation and adds * it to this model. * * @param type the dependency to add * @param method name of the static member method * @return a reference to this * * @since 2.5 */ default T imports(final Type type, String method) { return add(Import.of(type).static_().setStaticMember(method)); }
file.add(Import.of(ResultSetUtil.class).static_().setStaticMember("*"));
private AnnotationUsage withExecuteBefore(File file) { file.add(Import.of(State.class).static_().setStaticMember("RESOLVED")); return AnnotationUsage.of(ExecuteBefore.class).set(Value.ofReference("RESOLVED")); }