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 NodeListaddedNodes_private java.lang.StringattributeName_private NodenextSibling_private java.lang.StringoldValue_private NodepreviousSibling_private NodeListremovedNodes_private org.htmlunit.corejs.javascript.ScriptableObjecttarget_private java.lang.Stringtype_
-
Constructor Summary
Constructors Constructor Description MutationRecord()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeListgetAddedNodes()java.lang.StringgetAttributeName()Returns theattributeNameproperty.NodegetNextSibling()java.lang.StringgetOldValue()Returns theoldValueproperty.NodegetPreviousSibling()NodeListgetRemovedNodes()org.htmlunit.corejs.javascript.ScriptableObjectgetTarget()Returns thetargetproperty.java.lang.StringgetType()Returns thetypeproperty.voidjsConstructor()JavaScript constructor.(package private) voidsetAddedNodes(NodeList addedNodes)Sets theaddedNodesproperty.(package private) voidsetAttributeName(java.lang.String attributeName)Sets theattributeNameproperty.(package private) voidsetNextSibling(Node nextSibling)Sets thenextSiblingproperty.(package private) voidsetOldValue(java.lang.String oldValue)Sets theoldValueproperty.(package private) voidsetPreviousSibling(Node previousSibling)Sets thepreviousSiblingproperty.(package private) voidsetRemovedNodes(NodeList removedNodes)Sets theremovedNodesproperty.(package private) voidsetTarget(org.htmlunit.corejs.javascript.ScriptableObject target)Sets thetargetproperty.(package private) voidsetType(java.lang.String type)Sets thetypeproperty.-
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 thetypeproperty.- Parameters:
type- thetypeproperty
-
getType
public java.lang.String getType()
Returns thetypeproperty.- Returns:
- the
typeproperty
-
setTarget
void setTarget(org.htmlunit.corejs.javascript.ScriptableObject target)
Sets thetargetproperty.- Parameters:
target- thetargetproperty
-
getTarget
public org.htmlunit.corejs.javascript.ScriptableObject getTarget()
Returns thetargetproperty.- Returns:
- the
targetproperty
-
setOldValue
void setOldValue(java.lang.String oldValue)
Sets theoldValueproperty.- Parameters:
oldValue- theoldValueproperty
-
getOldValue
public java.lang.String getOldValue()
Returns theoldValueproperty.- Returns:
- the
oldValueproperty
-
setAttributeName
void setAttributeName(java.lang.String attributeName)
Sets theattributeNameproperty.- Parameters:
attributeName- theattributeNameproperty
-
getAttributeName
public java.lang.String getAttributeName()
Returns theattributeNameproperty.- Returns:
- the
attributeNameproperty
-
setAddedNodes
void setAddedNodes(NodeList addedNodes)
Sets theaddedNodesproperty.- Parameters:
addedNodes- theaddedNodesproperty
-
getAddedNodes
public NodeList getAddedNodes()
- Returns:
- the
addedNodesproperty
-
setRemovedNodes
void setRemovedNodes(NodeList removedNodes)
Sets theremovedNodesproperty.- Parameters:
removedNodes- theremovedNodesproperty
-
getRemovedNodes
public NodeList getRemovedNodes()
- Returns:
- the
removedNodesproperty
-
setPreviousSibling
void setPreviousSibling(Node previousSibling)
Sets thepreviousSiblingproperty.- Parameters:
previousSibling- thepreviousSiblingproperty
-
getPreviousSibling
public Node getPreviousSibling()
- Returns:
- the
previousSiblingproperty
-
setNextSibling
void setNextSibling(Node nextSibling)
Sets thenextSiblingproperty.- Parameters:
nextSibling- thenextSiblingproperty
-
getNextSibling
public Node getNextSibling()
- Returns:
- the
nextSiblingproperty
-
-