Package com.vaadin.copilot.rewriter
Interface CopySourceFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Picks the
CopySource for a component's own language.
Supplied by the caller so the copy itself stays language-agnostic, the way every other command chooses its language in the handler. It also lets one set of source providers serve a whole copy: built per component, a Kotlin view was re-read and re-parsed once for every child.
-
Method Summary
-
Method Details
-
of
- Parameters:
location- the component being copied- Returns:
- what its source says about it
- Throws:
IOException- if the source cannot be read
-