• Home
  • Raw
  • Download

Lines Matching full:parser

21  * of Automatic context-aware escaping. The HTML parser also embeds a
22 * Javascript parser for processing Javascript fragments. In the future,
26 * <p>Note: These are the exact methods exposed in the original C++ Parser. The
29 public interface HtmlParser extends Parser {
32 * The Parser Mode requested for parsing a given template.
59 * Indicates the type of HTML attribute that the parser is currently in or
60 * {@code NONE} if the parser is not currently in an attribute.
77 * All the states in which the parser can be. These are external states.
78 * The parser has many more internal states that are not exposed and which
80 * {@code STATE_TEXT} the parser is in HTML proper.
81 * {@code STATE_TAG} the parser is inside an HTML tag name.
82 * {@code STATE_COMMENT} the parser is inside an HTML comment.
83 * {@code STATE_ATTR} the parser is inside an HTML attribute name.
84 * {@code STATE_VALUE} the parser is inside an HTML attribute value.
85 * {@code STATE_JS_FILE} the parser is inside javascript code.
86 * {@code STATE_CSS_FILE} the parser is inside CSS code.
107 * Returns {@code true} if the parser is currently processing Javascript.
108 * Such is the case if and only if, the parser is processing an attribute
109 * that takes Javascript, a Javascript script block or the parser
112 * @return {@code true} if the parser is processing Javascript,
118 * Returns {@code true} if the parser is currently processing
120 * invoke this method after determining that the parser is processing
124 * @return {@code true} if and only if the parser is inside a quoted
131 * Returns {@code true} if and only if the parser is currently within
139 * Returns {@code true} if and only if the parser is currently within
144 * <li>Inside a CSS file when the parser was reset in the CSS mode.
147 * @return {@code true} if and only if the parser is inside CSS
152 * Returns the type of the attribute that the parser is in
155 * that the parser is processing an attribute.
166 * Returns {@code true} if and only if the parser is currently within
175 * Returns the name of the HTML tag if the parser is currently within one.
176 * Note that the name may be incomplete if the parser is currently still
177 * parsing the name. Returns an empty {@code String} if the parser is not
186 * Returns the name of the HTML attribute the parser is currently processing.
187 * If the parser is still parsing the name, then the returned name
188 * may be incomplete. Returns an empty {@code String} if the parser is not
197 * Returns the value of an HTML attribute if the parser is currently
198 * within one. If the parser is currently parsing the value, the returned
200 * that the parser is processing a value by calling
203 * @return the value, could be an empty {@code String} if the parser is not
209 * Returns the current position of the parser within the HTML attribute
211 * The caller will typically first determine that the parser is
214 * @return the index or zero if the parser is not processing a value
219 * Returns {@code true} if and only if the current position of the parser is
224 * <li>The parser is in an HTML attribute value.
227 * <li>The parser has not yet seen any characters from that URL.
238 * @return {@code true} if and only if the parser is at the start of the URL
243 * Resets the state of the parser, allowing for reuse of the
249 * @param mode is an enum representing the high-level state of the parser
254 * A specialized directive to tell the parser there is some content
257 * to the parser but wants it to know there typically will be content
262 * <p>Returns {@code false} if and only if the parser encountered
265 * <p>Note: The return value is different from the C++ Parser which
273 * Returns the state the Javascript parser is in.
277 * parser is processing Javascript and then invoke this method to
280 * @return external state of the javascript parser