org.jtool.jxplatform.dom
Class GetElementByPosition

java.lang.Object
  extended byorg.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

Constructor Summary
GetElementByPosition()
           
 
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
 

Constructor Detail

GetElementByPosition

public GetElementByPosition()
Method Detail

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.