/** * Splits a DomText node in two. * @param offset the character position at which to split the DomText node * @return the DomText node that was split from this node * @deprecated as of 2.6, please use {@link #splitText(int)} instead */ @Deprecated public DomText splitDomText(final int offset) { return splitText(offset); }
/** * Splits a DomText node in two. * @param offset the character position at which to split the DomText node * @return the DomText node that was split from this node * @deprecated as of 2.6, please use {@link #splitText(int)} instead */ @Deprecated public DomText splitDomText(final int offset) { return splitText(offset); }
/** * Splits a DomText node in two. * @param offset the character position at which to split the DomText node * @return the DomText node that was split from this node * @deprecated as of 2.6, please use {@link #splitText(int)} instead */ @Deprecated public DomText splitDomText(final int offset) { return splitText(offset); }
/** * Split a Text node in two. * @param offset the character position at which to split the Text node * @return the Text node that was split from this node */ public Object jsxFunction_splitText(final int offset) { final DomText domText = (DomText) getDomNodeOrDie(); return getScriptableFor(domText.splitText(offset)); } }
/** * Split a Text node in two. * @param offset the character position at which to split the Text node * @return the Text node that was split from this node */ public Object jsxFunction_splitText(final int offset) { final DomText domText = (DomText) getDomNodeOrDie(); return getScriptableFor(domText.splitText(offset)); } }
/** * Split a Text node in two. * @param offset the character position at which to split the Text node * @return the Text node that was split from this node */ public Object jsxFunction_splitText(final int offset) { final DomText domText = (DomText) getDomNodeOrDie(); return getScriptableFor(domText.splitText(offset)); } }
/** * Split a Text node in two. * @param offset the character position at which to split the Text node * @return the Text node that was split from this node */ @JsxFunction public Object splitText(final int offset) { final DomText domText = (DomText) getDomNodeOrDie(); return getScriptableFor(domText.splitText(offset)); }
/** * Split a Text node in two. * @param offset the character position at which to split the Text node * @return the Text node that was split from this node */ @JsxFunction public Object splitText(final int offset) { final DomText domText = (DomText) getDomNodeOrDie(); return getScriptableFor(domText.splitText(offset)); }
/** * Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree * as a sibling that immediately follows this node. * @param offset the number of characters at which to split this text node into two nodes, starting from zero * @return the new text node */ @JsxFunction public Object splitText(final int offset) { if (offset < 0) { throw Context.reportRuntimeError("The offset must be 0 or a positive number that is not greater than the " + "number of characters in the data."); } final DomText domText = getDomNodeOrDie(); if (offset > domText.getLength()) { throw Context.reportRuntimeError("The offset must be 0 or a positive number that is not greater than the " + "number of characters in the data."); } return getScriptableFor(domText.splitText(offset)); }
/** * Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree * as a sibling that immediately follows this node. * @param offset the number of characters at which to split this text node into two nodes, starting from zero * @return the new text node */ @JsxFunction public Object splitText(final int offset) { if (offset < 0) { throw Context.reportRuntimeError("The offset must be 0 or a positive number that is not greater than the " + "number of characters in the data."); } final DomText domText = getDomNodeOrDie(); if (offset > domText.getLength()) { throw Context.reportRuntimeError("The offset must be 0 or a positive number that is not greater than the " + "number of characters in the data."); } return getScriptableFor(domText.splitText(offset)); }