(int i)
| 291 | } |
| 292 | |
| 293 | private Class _getCallerClass(int i) { |
| 294 | return StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE).walk(x -> { |
| 295 | |
| 296 | for (Iterator<StackWalker.StackFrame> it = x.iterator(); it.hasNext(); ) { |
| 297 | StackWalker.StackFrame f = it.next(); |
| 298 | if (!f.getClassName().equals(this.getClass().getName())) |
| 299 | return f.getDeclaringClass(); |
| 300 | } |
| 301 | return null; |
| 302 | }); |
| 303 | } |
| 304 | |
| 305 | public <T> Prop<T> autoConstructs(Supplier<T> t) { |
| 306 | Prop on = this; |