Package org.eclipse.lemminx.dom
Class DOMProcessingInstruction
java.lang.Object
org.eclipse.lemminx.dom.DOMNode
org.eclipse.lemminx.dom.DOMTreeNode
org.eclipse.lemminx.dom.DOMCharacterData
org.eclipse.lemminx.dom.DOMProcessingInstruction
- All Implemented Interfaces:
DOMRange,CharacterData,Node,ProcessingInstruction
A processing instruction node.
-
Field Summary
Fields inherited from class org.eclipse.lemminx.dom.DOMNode
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUEFields inherited from interface org.w3c.dom.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()intintReturns the end tag start offset andDOMNode.NULL_VALUEif it doesn't exist.shortintbooleanbooleanisProlog()booleanvoidsetAttributeNode(DOMAttr attr) voidMethods inherited from class org.eclipse.lemminx.dom.DOMCharacterData
appendData, containsText, deleteData, endsWithNewLine, getDelimiter, getLength, getNodeValue, hasData, hasMultiLine, insertData, isWhitespace, replaceData, setWhitespace, startsWithNewLine, substringDataMethods inherited from class org.eclipse.lemminx.dom.DOMTreeNode
getEnd, getStart, isClosedMethods inherited from class org.eclipse.lemminx.dom.DOMNode
addChild, appendChild, attributes, children, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findChildWithAttributeValue, findDTDDeclParameterAt, findDTDDeclParameterAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, findTextAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getBaseURI, getChild, getChildNodes, getChildren, getFeature, getFirstChild, getLastAttr, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOrphanEndElement, getOrphanEndElement, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousNonTextSibling, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, hasSiblings, hasSingleAttribute, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, isComment, isDefaultNamespace, isDoctype, isDTDAttListDecl, isDTDElementDecl, isDTDEntityDecl, isDTDNotationDecl, isElement, isEqualNode, isGenericDTDDecl, isIncluded, isIncluded, isOwnerDocument, isSameNode, isSupported, isText, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
DOMProcessingInstruction
public DOMProcessingInstruction(int start, int end)
-
-
Method Details
-
getAttributes
- Specified by:
getAttributesin interfaceNode- Overrides:
getAttributesin classDOMNode
-
setAttributeNode
- Overrides:
setAttributeNodein classDOMNode
-
isProlog
public boolean isProlog() -
isProcessingInstruction
public boolean isProcessingInstruction()- Overrides:
isProcessingInstructionin classDOMNode
-
isStartTagClose
public boolean isStartTagClose() -
getStartContent
public int getStartContent()- Overrides:
getStartContentin classDOMCharacterData
-
getEndContent
public int getEndContent()- Overrides:
getEndContentin classDOMCharacterData
-
getEndTagStart
public int getEndTagStart()Returns the end tag start offset andDOMNode.NULL_VALUEif it doesn't exist.- Returns:
- the end tag start offset and
DOMNode.NULL_VALUEif it doesn't exist.
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getTarget
- Specified by:
getTargetin interfaceProcessingInstruction
-
getData
- Specified by:
getDatain interfaceCharacterData- Specified by:
getDatain interfaceProcessingInstruction- Overrides:
getDatain classDOMCharacterData
-
setData
- Specified by:
setDatain interfaceCharacterData- Specified by:
setDatain interfaceProcessingInstruction- Overrides:
setDatain classDOMCharacterData- Throws:
DOMException
-