You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then CtElementImpl#adaptTo(Class) would look like this
classCtElementImpl {
...
/** gets or creates an extension of type `type` of this element */
<T> TadaptTo(Class<T> type) {
Tadapter = (T) metadata.get(type);
if (adapter == null) {
adapter = getFactory().getAdapterFactory(type).createAdapter(this);
metadata.put(type, adapter)
}
returnadapter;
}
WDYT?
The text was updated successfully, but these errors were encountered:
In #2762 and #2734 there would be nice to be able to extend/augment Spoon model.
What about a new CtElement method
We would also need
and
then
CtElementImpl#adaptTo(Class)
would look like thisWDYT?
The text was updated successfully, but these errors were encountered: