MCPcopy Create free account
hub / github.com/attoparser/attoparser / HtmlElement

Class HtmlElement

src/main/java/org/attoparser/HtmlElement.java:31–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 * @since 2.0.0
30 */
31class HtmlElement {
32
33
34 final char[] name;
35
36
37
38 public HtmlElement(final String name) {
39
40 super();
41
42 if (name == null) {
43 throw new IllegalArgumentException("Name cannot be null");
44 }
45
46 this.name = name.toLowerCase().toCharArray();
47
48 }
49
50
51
52
53
54 public void handleStandaloneElementStart(
55 final char[] buffer,
56 final int nameOffset, final int nameLen,
57 final boolean minimized,
58 final int line, final int col,
59 final IMarkupHandler handler,
60 final ParseStatus status,
61 final boolean autoOpenEnabled, final boolean autoCloseEnabled)
62 throws ParseException {
63
64 handler.handleStandaloneElementStart(buffer, nameOffset, nameLen, minimized, line, col);
65
66 }
67
68
69 public void handleStandaloneElementEnd(
70 final char[] buffer,
71 final int nameOffset, final int nameLen,
72 final boolean minimized,
73 final int line, final int col,
74 final IMarkupHandler handler,
75 final ParseStatus status,
76 final boolean autoOpenEnabled, final boolean autoCloseEnabled)
77 throws ParseException {
78
79 handler.handleStandaloneElementEnd(buffer, nameOffset, nameLen, minimized, line, col);
80
81 }
82
83
84
85
86 public void handleOpenElementStart(
87 final char[] buffer,
88 final int nameOffset, final int nameLen,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected