public class CharacterDataImpl extends NodeImpl implements CharacterData
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
void |
appendData(String data) |
Object |
call(String methodName,
Object... args)
Calls a JavaScript method.
|
void |
deleteData(int offset,
int length) |
boolean |
equals(Object other) |
Object |
eval(String s)
Evaluates a JavaScript expression.
|
String |
getData() |
int |
getLength() |
Object |
getMember(String name)
Retrieves a named member of a JavaScript object.
|
Element |
getNextElementSibling() |
Element |
getPreviousElementSibling() |
Object |
getSlot(int index)
Retrieves an indexed member of a JavaScript object.
|
int |
hashCode() |
void |
insertData(int offset,
String data) |
void |
remove() |
void |
removeMember(String name)
Removes a named member of a JavaScript object.
|
void |
replaceData(int offset,
int length,
String data) |
void |
setData(String value) |
void |
setMember(String name,
Object value)
Sets a named member of a JavaScript object.
|
void |
setSlot(int index,
Object value)
Sets an indexed member of a JavaScript object.
|
String |
substringData(int offset,
int length) |
String |
toString() |
addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
@Native public static final byte DIRECTIONALITY_ARABIC_NUMBER
@Native public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
@Native public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR
@Native public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR
@Native public static final byte DIRECTIONALITY_WHITESPACE
@Native public static final byte DIRECTIONALITY_OTHER_NEUTRALS
@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
@Native public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
@Native public static final byte DIRECTIONALITY_NONSPACING_MARK
@Native public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL
@Native public static final byte UNASSIGNED
@Native public static final byte UPPERCASE_LETTER
@Native public static final byte LOWERCASE_LETTER
@Native public static final byte TITLECASE_LETTER
@Native public static final byte MODIFIER_LETTER
@Native public static final byte OTHER_LETTER
@Native public static final byte NON_SPACING_MARK
@Native public static final byte ENCLOSING_MARK
@Native public static final byte COMBINING_SPACING_MARK
@Native public static final byte DECIMAL_DIGIT_NUMBER
@Native public static final byte LETTER_NUMBER
@Native public static final byte OTHER_NUMBER
@Native public static final byte SPACE_SEPARATOR
@Native public static final byte LINE_SEPARATOR
@Native public static final byte PARAGRAPH_SEPARATOR
@Native public static final byte CONTROL
@Native public static final byte FORMAT
@Native public static final byte PRIVATE_USE
@Native public static final byte SURROGATE
@Native public static final byte DASH_PUNCTUATION
@Native public static final byte START_PUNCTUATION
@Native public static final byte END_PUNCTUATION
@Native public static final byte CONNECTOR_PUNCTUATION
@Native public static final byte OTHER_PUNCTUATION
@Native public static final byte MATH_SYMBOL
@Native public static final byte CURRENCY_SYMBOL
@Native public static final byte MODIFIER_SYMBOL
@Native public static final byte OTHER_SYMBOL
@Native public static final byte INITIAL_QUOTE_PUNCTUATION
@Native public static final byte FINAL_QUOTE_PUNCTUATION
public String getData()
getData
in interface CharacterData
public void setData(String value)
setData
in interface CharacterData
public int getLength()
getLength
in interface CharacterData
public Element getPreviousElementSibling()
public Element getNextElementSibling()
public String substringData(int offset, int length) throws DOMException
substringData
in interface CharacterData
DOMException
public void appendData(String data)
appendData
in interface CharacterData
public void insertData(int offset, String data) throws DOMException
insertData
in interface CharacterData
DOMException
public void deleteData(int offset, int length) throws DOMException
deleteData
in interface CharacterData
DOMException
public void replaceData(int offset, int length, String data) throws DOMException
replaceData
in interface CharacterData
DOMException
public void remove() throws DOMException
DOMException
public Object eval(String s) throws JSException
JSObject
Evaluates 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 JSObject
s
- The JavaScript expression.JSException
public Object getMember(String name)
JSObject
Retrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObject
Sets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember
in class JSObject
name
- The name of the JavaScript property to be accessed.value
- The value of the propery.JSException
public void removeMember(String name) throws JSException
JSObject
Removes a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember
in class JSObject
name
- The name of the JavaScript property to be removed.JSException
public Object getSlot(int index) throws JSException
JSObject
Retrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public void setSlot(int index, Object value) throws JSException
JSObject
Sets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public Object call(String methodName, Object... args) throws JSException
JSObject
Calls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call
in class JSObject
methodName
- The name of the JavaScript method to be invoked.args
- the Java objects passed as arguments to the method.JSException
Copyright © 2020. All rights reserved.