public class NodeImpl extends JSObject implements Node, EventTarget
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTE_NODE |
static int |
CDATA_SECTION_NODE |
static int |
COMMENT_NODE |
static int |
DOCUMENT_FRAGMENT_NODE |
static int |
DOCUMENT_NODE |
static int |
DOCUMENT_POSITION_CONTAINED_BY |
static int |
DOCUMENT_POSITION_CONTAINS |
static int |
DOCUMENT_POSITION_DISCONNECTED |
static int |
DOCUMENT_POSITION_FOLLOWING |
static int |
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
static int |
DOCUMENT_POSITION_PRECEDING |
static int |
DOCUMENT_TYPE_NODE |
static int |
ELEMENT_NODE |
static int |
ENTITY_NODE |
static int |
ENTITY_REFERENCE_NODE |
static int |
NOTATION_NODE |
static int |
PROCESSING_INSTRUCTION_NODE |
static int |
TEXT_NODE |
public static final int ELEMENT_NODE
public static final int ATTRIBUTE_NODE
public static final int TEXT_NODE
public static final int CDATA_SECTION_NODE
public static final int ENTITY_REFERENCE_NODE
public static final int ENTITY_NODE
public static final int PROCESSING_INSTRUCTION_NODE
public static final int COMMENT_NODE
public static final int DOCUMENT_NODE
public static final int DOCUMENT_TYPE_NODE
public static final int DOCUMENT_FRAGMENT_NODE
public static final int NOTATION_NODE
public static final int DOCUMENT_POSITION_DISCONNECTED
public static final int DOCUMENT_POSITION_PRECEDING
public static final int DOCUMENT_POSITION_FOLLOWING
public static final int DOCUMENT_POSITION_CONTAINS
public static final int DOCUMENT_POSITION_CONTAINED_BY
public static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
public String getNodeName()
getNodeName in interface Nodepublic String getNodeValue()
getNodeValue in interface Nodepublic void setNodeValue(String value) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic void setPrefix(String value) throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getLocalName()
getLocalName in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic String getTextContent()
getTextContent in interface Nodepublic void setTextContent(String value) throws DOMException
setTextContent in interface NodeDOMExceptionpublic Element getParentElement()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodeDOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node cloneNode(boolean deep) throws DOMException
cloneNode in interface NodeDOMExceptionpublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic boolean isEqualNode(Node other)
isEqualNode in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic short compareDocumentPosition(Node other)
compareDocumentPosition in interface Nodepublic boolean contains(Node other)
public void addEventListener(String type, EventListener listener, boolean useCapture)
addEventListener in interface EventTargetpublic void removeEventListener(String type, EventListener listener, boolean useCapture)
removeEventListener in interface EventTargetpublic boolean dispatchEvent(Event event) throws DOMException
dispatchEvent in interface EventTargetDOMExceptionpublic Object getUserData(String key)
getUserData in interface Nodepublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic Object eval(String s) throws JSException
JSObjectEvaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".
eval in class JSObjects - The JavaScript expression.JSExceptionpublic Object getMember(String name)
JSObjectRetrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObjectSets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember in class JSObjectname - The name of the JavaScript property to be accessed.value - The value of the propery.JSExceptionpublic void removeMember(String name) throws JSException
JSObjectRemoves a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember in class JSObjectname - The name of the JavaScript property to be removed.JSExceptionpublic Object getSlot(int index) throws JSException
JSObjectRetrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic void setSlot(int index,
Object value)
throws JSException
JSObjectSets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic Object call(String methodName, Object... args) throws JSException
JSObjectCalls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call in class JSObjectmethodName - The name of the JavaScript method to be invoked.args - the Java objects passed as arguments to the method.JSExceptionCopyright © 2025. All rights reserved.