Package org.htmlunit.javascript.host.dom
Class MutationRecord
- java.lang.Object
-
- org.htmlunit.corejs.javascript.ScriptableObject
-
- org.htmlunit.javascript.HtmlUnitScriptable
-
- org.htmlunit.javascript.host.dom.MutationRecord
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
public class MutationRecord extends HtmlUnitScriptable
A JavaScript object forMutationRecord
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private NodeList
addedNodes_
private java.lang.String
attributeName_
private Node
nextSibling_
private java.lang.String
oldValue_
private Node
previousSibling_
private NodeList
removedNodes_
private org.htmlunit.corejs.javascript.ScriptableObject
target_
private java.lang.String
type_
-
Constructor Summary
Constructors Constructor Description MutationRecord()
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeList
getAddedNodes()
java.lang.String
getAttributeName()
Returns theattributeName
property.Node
getNextSibling()
java.lang.String
getOldValue()
Returns theoldValue
property.Node
getPreviousSibling()
NodeList
getRemovedNodes()
org.htmlunit.corejs.javascript.ScriptableObject
getTarget()
Returns thetarget
property.java.lang.String
getType()
Returns thetype
property.void
jsConstructor()
JavaScript constructor.(package private) void
setAddedNodes(NodeList addedNodes)
Sets theaddedNodes
property.(package private) void
setAttributeName(java.lang.String attributeName)
Sets theattributeName
property.(package private) void
setNextSibling(Node nextSibling)
Sets thenextSibling
property.(package private) void
setOldValue(java.lang.String oldValue)
Sets theoldValue
property.(package private) void
setPreviousSibling(Node previousSibling)
Sets thepreviousSibling
property.(package private) void
setRemovedNodes(NodeList removedNodes)
Sets theremovedNodes
property.(package private) void
setTarget(org.htmlunit.corejs.javascript.ScriptableObject target)
Sets thetarget
property.(package private) void
setType(java.lang.String type)
Sets thetype
property.-
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
-
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
-
-
-
Field Detail
-
type_
private java.lang.String type_
-
target_
private org.htmlunit.corejs.javascript.ScriptableObject target_
-
oldValue_
private java.lang.String oldValue_
-
attributeName_
private java.lang.String attributeName_
-
addedNodes_
private NodeList addedNodes_
-
removedNodes_
private NodeList removedNodes_
-
previousSibling_
private Node previousSibling_
-
nextSibling_
private Node nextSibling_
-
-
Method Detail
-
jsConstructor
public void jsConstructor()
JavaScript constructor.
-
setType
void setType(java.lang.String type)
Sets thetype
property.- Parameters:
type
- thetype
property
-
getType
public java.lang.String getType()
Returns thetype
property.- Returns:
- the
type
property
-
setTarget
void setTarget(org.htmlunit.corejs.javascript.ScriptableObject target)
Sets thetarget
property.- Parameters:
target
- thetarget
property
-
getTarget
public org.htmlunit.corejs.javascript.ScriptableObject getTarget()
Returns thetarget
property.- Returns:
- the
target
property
-
setOldValue
void setOldValue(java.lang.String oldValue)
Sets theoldValue
property.- Parameters:
oldValue
- theoldValue
property
-
getOldValue
public java.lang.String getOldValue()
Returns theoldValue
property.- Returns:
- the
oldValue
property
-
setAttributeName
void setAttributeName(java.lang.String attributeName)
Sets theattributeName
property.- Parameters:
attributeName
- theattributeName
property
-
getAttributeName
public java.lang.String getAttributeName()
Returns theattributeName
property.- Returns:
- the
attributeName
property
-
setAddedNodes
void setAddedNodes(NodeList addedNodes)
Sets theaddedNodes
property.- Parameters:
addedNodes
- theaddedNodes
property
-
getAddedNodes
public NodeList getAddedNodes()
- Returns:
- the
addedNodes
property
-
setRemovedNodes
void setRemovedNodes(NodeList removedNodes)
Sets theremovedNodes
property.- Parameters:
removedNodes
- theremovedNodes
property
-
getRemovedNodes
public NodeList getRemovedNodes()
- Returns:
- the
removedNodes
property
-
setPreviousSibling
void setPreviousSibling(Node previousSibling)
Sets thepreviousSibling
property.- Parameters:
previousSibling
- thepreviousSibling
property
-
getPreviousSibling
public Node getPreviousSibling()
- Returns:
- the
previousSibling
property
-
setNextSibling
void setNextSibling(Node nextSibling)
Sets thenextSibling
property.- Parameters:
nextSibling
- thenextSibling
property
-
getNextSibling
public Node getNextSibling()
- Returns:
- the
nextSibling
property
-
-