Code example for Element

Methods: getEndOffset

0
	 * 
	 * @param element is the element to get the end offset from. 
	 * @return the end offset of the element. 
	 */ 
	protected int getEndOffset(Element element) {
		return Math.min(getLength(), element.getEndOffset());
	} 
 
	/** 
	 * Returns the child element at the given element index. 
	 *  
	 * @param index 
	 *            is the element index. 
	 * @return the child element. 
	 */ 
	protected Element getElement(int index) {
		return getDefaultRootElement().getElement(index);
	} 
 
	/** 
Experience pair programming with AI  Get Codota for Java