Package it.unimi.dsi.parser
Class Element
- java.lang.Object
-
- it.unimi.dsi.parser.Element
-
public final class Element extends Object
An HTML element type.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Element(CharSequence name)Creates a new element with the specified name.Element(CharSequence name, boolean breaksFlow, boolean isSimple)Creates a new element with the specified name and flags.Element(CharSequence name, boolean breaksFlow, boolean isSimple, boolean isImplicit)Creates a new element.
-
-
-
Field Detail
-
name
public final CharSequence name
The name of the type of this element.
-
nameLength
public final int nameLength
The length ofname.
-
breaksFlow
public final boolean breaksFlow
Whether this element breaks the flow.
-
isSimple
public final boolean isSimple
Whether this element is simple.
-
isImplicit
public final boolean isImplicit
Whether this element has implicit closure.
-
A
public static final Element A
-
ABBR
public static final Element ABBR
-
ACRONYM
public static final Element ACRONYM
-
ADDRESS
public static final Element ADDRESS
-
APPLET
public static final Element APPLET
-
AREA
public static final Element AREA
-
B
public static final Element B
-
BASE
public static final Element BASE
-
BASEFONT
public static final Element BASEFONT
-
BDO
public static final Element BDO
-
BIG
public static final Element BIG
-
BLOCKQUOTE
public static final Element BLOCKQUOTE
-
BODY
public static final Element BODY
-
BR
public static final Element BR
-
BUTTON
public static final Element BUTTON
-
CAPTION
public static final Element CAPTION
-
CENTER
public static final Element CENTER
-
CITE
public static final Element CITE
-
CODE
public static final Element CODE
-
COL
public static final Element COL
-
COLGROUP
public static final Element COLGROUP
-
DD
public static final Element DD
-
DEL
public static final Element DEL
-
DFN
public static final Element DFN
-
DIR
public static final Element DIR
-
DIV
public static final Element DIV
-
DL
public static final Element DL
-
DT
public static final Element DT
-
EM
public static final Element EM
-
EMBED
public static final Element EMBED
-
FIELDSET
public static final Element FIELDSET
-
FONT
public static final Element FONT
-
FORM
public static final Element FORM
-
FRAME
public static final Element FRAME
-
FRAMESET
public static final Element FRAMESET
-
H1
public static final Element H1
-
H2
public static final Element H2
-
H3
public static final Element H3
-
H4
public static final Element H4
-
H5
public static final Element H5
-
H6
public static final Element H6
-
HEAD
public static final Element HEAD
-
HR
public static final Element HR
-
HTML
public static final Element HTML
-
I
public static final Element I
-
IFRAME
public static final Element IFRAME
-
IMG
public static final Element IMG
-
INPUT
public static final Element INPUT
-
INS
public static final Element INS
-
ISINDEX
public static final Element ISINDEX
-
KBD
public static final Element KBD
-
LABEL
public static final Element LABEL
-
LEGEND
public static final Element LEGEND
-
LI
public static final Element LI
-
LINK
public static final Element LINK
-
MAP
public static final Element MAP
-
MENU
public static final Element MENU
-
META
public static final Element META
-
NOFRAMES
public static final Element NOFRAMES
-
NOSCRIPT
public static final Element NOSCRIPT
-
OBJECT
public static final Element OBJECT
-
OL
public static final Element OL
-
OPTION
public static final Element OPTION
-
OPTGROUP
public static final Element OPTGROUP
-
P
public static final Element P
-
PARAM
public static final Element PARAM
-
PRE
public static final Element PRE
-
Q
public static final Element Q
-
SAMP
public static final Element SAMP
-
SCRIPT
public static final Element SCRIPT
-
SELECT
public static final Element SELECT
-
SMALL
public static final Element SMALL
-
SPAN
public static final Element SPAN
-
STRIKE
public static final Element STRIKE
-
S
public static final Element S
-
STRONG
public static final Element STRONG
-
STYLE
public static final Element STYLE
-
SUB
public static final Element SUB
-
SUP
public static final Element SUP
-
TABLE
public static final Element TABLE
-
TBODY
public static final Element TBODY
-
TD
public static final Element TD
-
TEXTAREA
public static final Element TEXTAREA
-
TFOOT
public static final Element TFOOT
-
TH
public static final Element TH
-
THEAD
public static final Element THEAD
-
TITLE
public static final Element TITLE
-
TR
public static final Element TR
-
TT
public static final Element TT
-
U
public static final Element U
-
UL
public static final Element UL
-
VAR
public static final Element VAR
-
UNKNOWN
public static final Element UNKNOWN
-
-
Constructor Detail
-
Element
public Element(CharSequence name)
Creates a new element with the specified name. The element is assumed to break the flow, and neither being simple nor having implicit closure.- Parameters:
name- the name of the type of the new element.
-
Element
public Element(CharSequence name, boolean breaksFlow, boolean isSimple)
Creates a new element with the specified name and flags. The element is assumed not to have implicit closure.- Parameters:
name- the name of the type of the new element.breaksFlow- true if this elements breaks the flow.isSimple- true if this element is simple.
-
Element
public Element(CharSequence name, boolean breaksFlow, boolean isSimple, boolean isImplicit)
Creates a new element.- Parameters:
name- the name of the type of the new element.breaksFlow- true if this elements breaks the flow.isSimple- true if this element is simple.isImplicit- true if this element has implicit closure.
-
-