public class Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Node |
adapter |
static short |
AspTag |
protected AttVal |
attributes |
static short |
CDATATag |
protected boolean |
closed |
static short |
CommentTag |
protected Node |
content |
static short |
DocTypeTag |
protected java.lang.String |
element |
protected int |
end |
static short |
EndTag |
protected boolean |
implicit |
static short |
JsteTag |
protected Node |
last |
protected boolean |
linebreak |
protected Node |
next |
protected Node |
parent |
static short |
PhpTag |
protected Node |
prev |
static short |
ProcInsTag |
static short |
RootNode |
static short |
SectionTag |
protected int |
start |
static short |
StartEndTag |
static short |
StartTag |
protected Dict |
tag |
protected byte[] |
textarray |
static short |
TextNode |
protected short |
type |
protected Dict |
was |
Constructor and Description |
---|
Node() |
Node(short type,
byte[] textarray,
int start,
int end) |
Node(short type,
byte[] textarray,
int start,
int end,
java.lang.String element,
TagTable tt) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
static void |
addClass(Node node,
java.lang.String classname) |
void |
checkAttributes(Lexer lexer) |
boolean |
checkNodeIntegrity() |
void |
checkUniqueAttributes(Lexer lexer) |
protected java.lang.Object |
clone() |
protected Node |
cloneNode(boolean deep) |
static void |
coerceNode(Lexer lexer,
Node node,
Dict tag) |
void |
discardDocType() |
static Node |
discardElement(Node element) |
Node |
findBody(TagTable tt) |
Node |
findDocType() |
Node |
findHEAD(TagTable tt) |
Node |
findHTML(TagTable tt) |
static void |
fixEmptyRow(Lexer lexer,
Node row) |
protected Node |
getAdapter() |
AttVal |
getAttrByName(java.lang.String name) |
boolean |
hasOneChild() |
static void |
insertDocType(Lexer lexer,
Node element,
Node doctype) |
static boolean |
insertMisc(Node element,
Node node) |
static void |
insertNodeAfterElement(Node element,
Node node) |
static void |
insertNodeAsParent(Node element,
Node node) |
static void |
insertNodeAtEnd(Node element,
Node node) |
static void |
insertNodeAtStart(Node element,
Node node) |
static void |
insertNodeBeforeElement(Node element,
Node node) |
boolean |
isDescendantOf(Dict tag) |
boolean |
isElement() |
static boolean |
isNewNode(Node node) |
static void |
moveBeforeTable(Node row,
Node node,
TagTable tt) |
void |
removeAttribute(AttVal attr) |
static void |
removeNode(Node node) |
protected void |
setType(short newType) |
java.lang.String |
toString() |
static void |
trimEmptyElement(Lexer lexer,
Node element) |
static void |
trimInitialSpace(Lexer lexer,
Node element,
Node text) |
static void |
trimSpaces(Lexer lexer,
Node element) |
static void |
trimTrailingSpace(Lexer lexer,
Node element,
Node last) |
public static final short RootNode
public static final short DocTypeTag
public static final short CommentTag
public static final short ProcInsTag
public static final short TextNode
public static final short StartTag
public static final short EndTag
public static final short StartEndTag
public static final short CDATATag
public static final short SectionTag
public static final short AspTag
public static final short JsteTag
public static final short PhpTag
protected Node parent
protected Node prev
protected Node next
protected Node last
protected int start
protected int end
protected byte[] textarray
protected short type
protected boolean closed
protected boolean implicit
protected boolean linebreak
protected Dict was
protected Dict tag
protected java.lang.String element
protected AttVal attributes
protected Node content
protected Node adapter
public Node()
public Node(short type, byte[] textarray, int start, int end)
public Node(short type, byte[] textarray, int start, int end, java.lang.String element, TagTable tt)
protected java.lang.Object clone()
clone
in class java.lang.Object
public AttVal getAttrByName(java.lang.String name)
public void checkAttributes(Lexer lexer)
public void checkUniqueAttributes(Lexer lexer)
public void addAttribute(java.lang.String name, java.lang.String value)
public void removeAttribute(AttVal attr)
public Node findDocType()
public void discardDocType()
public boolean isDescendantOf(Dict tag)
public boolean isElement()
public static void removeNode(Node node)
public static boolean isNewNode(Node node)
public boolean hasOneChild()
public boolean checkNodeIntegrity()
public static void addClass(Node node, java.lang.String classname)
public java.lang.String toString()
toString
in class java.lang.Object
protected Node getAdapter()
protected Node cloneNode(boolean deep)
protected void setType(short newType)