org.jtool.jxplatform.dom
Class GetElementByPosition
java.lang.Object
org.jtool.jxplatform.dom.GetElementByPosition
- public class GetElementByPosition
- extends java.lang.Object
Finds the element at a given position in the source code.
- Author:
- Katsuhisa Maruyama
|
Method Summary |
static org.w3c.dom.Element[] |
find(org.w3c.dom.Document doc,
int pos)
Returns the element at a specified position. |
static org.w3c.dom.Element[] |
find(org.w3c.dom.Document doc,
int start,
int end)
Returns the elements within a specified range. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetElementByPosition
public GetElementByPosition()
find
public static org.w3c.dom.Element[] find(org.w3c.dom.Document doc,
int pos)
- Returns the element at a specified position.
- Parameters:
doc - The root of a DOM object tree to be examined.pos - A offset value iwhich indicates the position.
find
public static org.w3c.dom.Element[] find(org.w3c.dom.Document doc,
int start,
int end)
- Returns the elements within a specified range.
- Parameters:
doc - The root of a DOM object tree to be examined.start - A offset value which indicates the start position of the renage.end - A offset value which indicates the end position of the range.