@Test public void testClone() throws Exception { WXTextDomObject cloneDom = dom.clone(); assertFalse(cloneDom == dom); }
@Override public WXTextDomObject clone() { WXTextDomObject dom = null; try { dom = new WXTextDomObject(); copyFields(dom); dom.hasBeenMeasured = hasBeenMeasured; dom.atomicReference = atomicReference; } catch (Exception e) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("WXTextDomObject clone error: ", e); } } if (dom != null) { dom.spanned = spanned; } return dom; }
WXTextDomObject extends WXDomObject { @Override public WXTextDomObject clone() { WXTextDomObject dom = null; try { dom = new WXTextDomObject(); copyFields(dom); dom.hasBeenMeasured = hasBeenMeasured; dom.atomicReference = atomicReference; } catch (Exception e) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("WXTextDomObject clone error: ", e); } } if (dom != null) { dom.spanned = spanned; } return dom; } }
WXTextDomObject extends WXDomObject { @Override public WXTextDomObject clone() { WXTextDomObject dom = null; try { dom = new WXTextDomObject(); copyFields(dom); dom.hasBeenMeasured = hasBeenMeasured; dom.atomicReference = atomicReference; } catch (Exception e) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("WXTextDomObject clone error: ", e); } } if (dom != null) { dom.spanned = spanned; } return dom; } WXTextDomObject(); }
WXTextDomObject extends WXDomObject { @Override public WXTextDomObject clone() { WXTextDomObject dom = null; try { dom = new WXTextDomObject(); copyFields(dom); dom.hasBeenMeasured = hasBeenMeasured; dom.atomicReference = atomicReference; } catch (Exception e) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("WXTextDomObject clone error: ", e); } } if (dom != null) { dom.spanned = spanned; } return dom; } WXTextDomObject(); TextPaint getTextPaint(); @Override void layoutBefore(); @Override void layoutAfter(); @Override Layout getExtra(); @Override void updateAttr(Map<String, Object> attrs); @Override void updateStyle(Map<String, Object> styles); @Override WXTextDomObject clone(); @NonNull String truncate(@Nullable String source, @NonNull TextPaint paint,
                                  int desired, @Nullable TextUtils.TruncateAt truncateAt); }
WXTextDomObject extends WXDomObject { @Override public WXTextDomObject clone() { WXTextDomObject dom = null; try { dom = new WXTextDomObject(); copyFields(dom); dom.hasBeenMeasured = hasBeenMeasured; dom.atomicReference = atomicReference; } catch (Exception e) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("WXTextDomObject clone error: ", e); } } if (dom != null) { dom.spanned = spanned; } return dom; } WXTextDomObject(); TextPaint getTextPaint(); @Override void layoutBefore(); @Override void layoutAfter(); @Override Layout getExtra(); @Override void updateAttr(Map<String, Object> attrs); @Override void updateStyle(Map<String, Object> styles); @Override WXTextDomObject clone(); @NonNull String truncate(@Nullable String source, @NonNull TextPaint paint,
                                  int desired, @Nullable TextUtils.TruncateAt truncateAt);  }