diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml index 5ab84a9767..195999fe1f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml @@ -378,34 +378,4 @@ - - - - java9 - - [9,) - - - - - maven-compiler-plugin - - - org/apache/hadoop/yarn/webapp/hamlet/** - - - org/apache/hadoop/yarn/webapp/hamlet/** - - - - - maven-javadoc-plugin - - org.apache.hadoop.yarn.webapp.hamlet - - - - - - diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/Hamlet.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/Hamlet.java deleted file mode 100644 index 7213865361..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/Hamlet.java +++ /dev/null @@ -1,30561 +0,0 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// Generated by HamletGen. Do NOT edit! -package org.apache.hadoop.yarn.webapp.hamlet; -import static java.util.EnumSet.of; -import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.ENDTAG; -import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.INLINE; -import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.PRE; - -import java.io.PrintWriter; -import java.util.EnumSet; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.yarn.webapp.SubView; - -/** - * @deprecated Use org.apache.hadoop.yarn.webapp.hamlet2 package instead. - */ -@Deprecated -@InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"}) -public class Hamlet extends HamletImpl implements HamletSpec._Html { - public Hamlet(PrintWriter out, int nestLevel, boolean wasInline) { - super(out, nestLevel, wasInline); - } - - static EnumSet opt(boolean endTag, boolean inline, boolean pre) { - EnumSet opts = of(ENDTAG); - if (!endTag) opts.remove(ENDTAG); - if (inline) opts.add(INLINE); - if (pre) opts.add(PRE); - return opts; - } - - public class HTML extends EImp implements HamletSpec.HTML { - public HTML(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public HTML $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public HTML $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public HEAD> head() { - closeAttrs(); - return head_(this, false); - } - - @Override - public BODY> body() { - closeAttrs(); - return body_(this, false); - } - - @Override - public BODY> body(String selector) { - return setSelector(body(), selector); - } - - @Override - public BASE> base() { - closeAttrs(); - return base_(this, false); - } - - @Override - public HTML base(String href) { - return base().$href(href)._(); - } - - @Override - public TITLE> title() { - closeAttrs(); - return title_(this, false); - } - - @Override - public HTML title(String cdata) { - return title()._(cdata)._(); - } - - @Override - public STYLE> style() { - closeAttrs(); - return style_(this, false); - } - - @Override - public HTML style(Object... lines) { - return style().$type("text/css")._(lines)._(); - } - - @Override - public LINK> link() { - closeAttrs(); - return link_(this, false); - } - - @Override - public HTML link(String href) { - return setLinkHref(link(), href)._(); - } - - @Override - public META> meta() { - closeAttrs(); - return meta_(this, false); - } - - @Override - public HTML meta(String name, String content) { - return meta().$name(name).$content(content)._(); - } - - @Override - public HTML meta_http(String header, String content) { - return meta().$http_equiv(header).$content(content)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, false); - } - - @Override - public HTML script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public HTML address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public HTML _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public HTML hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public HTML h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public HTML h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public HTML h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public HTML h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public HTML h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public HTML h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public HTML h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public HTML h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public HTML h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public HTML h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public HTML h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public HTML h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public HTML ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public HTML del(String cdata) { - return del()._(cdata)._(); - } - } - - private HEAD head_(T e, boolean inline) { - return new HEAD("head", e, opt(true, inline, false)); } - - private BODY body_(T e, boolean inline) { - return new BODY("body", e, opt(true, inline, false)); } - - public class SCRIPT extends EImp implements HamletSpec.SCRIPT { - public SCRIPT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SCRIPT $type(String value) { - addAttr("type", value); - return this; - } - - @Override - public SCRIPT $src(String value) { - addAttr("src", value); - return this; - } - - @Override - public SCRIPT $charset(String value) { - addAttr("charset", value); - return this; - } - - @Override - public SCRIPT $defer(String value) { - addAttr("defer", value); - return this; - } - - @Override - public SCRIPT _(Object... lines) { - _p(false, lines); - return this; - } - } - - public class STYLE extends EImp implements HamletSpec.STYLE { - public STYLE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public STYLE $type(String value) { - addAttr("type", value); - return this; - } - - @Override - public STYLE $media(EnumSet value) { - addMediaAttr("media", value); - return this; - } - - @Override - public STYLE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public STYLE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public STYLE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public STYLE _(Object... lines) { - _p(false, lines); - return this; - } - } - - public class META extends EImp implements HamletSpec.META { - public META(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public META $http_equiv(String value) { - addAttr("http-equiv", value); - return this; - } - - @Override - public META $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public META $content(String value) { - addAttr("content", value); - return this; - } - - @Override - public META $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public META $dir(Dir value) { - addAttr("dir", value); - return this; - } - } - - public class BASE extends EImp implements HamletSpec.BASE { - public BASE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BASE $href(String value) { - addAttr("href", value); - return this; - } - } - - public class TITLE extends EImp implements HamletSpec.TITLE { - public TITLE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TITLE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TITLE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TITLE _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public TITLE _r(Object... lines) { - _p(false, lines); - return this; - } - } - - public class HEAD extends EImp implements HamletSpec.HEAD { - public HEAD(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public HEAD $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public HEAD $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public BASE> base() { - closeAttrs(); - return base_(this, false); - } - - @Override - public HEAD base(String href) { - return base().$href(href)._(); - } - - @Override - public TITLE> title() { - closeAttrs(); - return title_(this, false); - } - - @Override - public HEAD title(String cdata) { - return title()._(cdata)._(); - } - - @Override - public STYLE> style() { - closeAttrs(); - return style_(this, false); - } - - @Override - public HEAD style(Object... lines) { - return style().$type("text/css")._(lines)._(); - } - - @Override - public LINK> link() { - closeAttrs(); - return link_(this, false); - } - - @Override - public HEAD link(String href) { - return setLinkHref(link(), href)._(); - } - - @Override - public META> meta() { - closeAttrs(); - return meta_(this, false); - } - - @Override - public HEAD meta(String name, String content) { - return meta().$name(name).$content(content)._(); - } - - @Override - public HEAD meta_http(String header, String content) { - return meta().$http_equiv(header).$content(content)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, false); - } - - @Override - public HEAD script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - } - - private BASE base_(T e, boolean inline) { - return new BASE("base", e, opt(false, inline, false)); } - - private TITLE title_(T e, boolean inline) { - return new TITLE("title", e, opt(true, inline, false)); } - - public class TD extends EImp implements HamletSpec.TD { - public TD(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TD $headers(String value) { - addAttr("headers", value); - return this; - } - - @Override - public TD $scope(Scope value) { - addAttr("scope", value); - return this; - } - - @Override - public TD $rowspan(int value) { - addAttr("rowspan", value); - return this; - } - - @Override - public TD $colspan(int value) { - addAttr("colspan", value); - return this; - } - - @Override - public TD $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TD $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TD $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TD $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TD $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TD $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TD $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TD $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TD $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TD $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TD $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TD $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TD $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TD $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TD $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TD $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public TD address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public TD _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public TD hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public TD h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public TD h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public TD h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public TD h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public TD h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public TD h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public TD h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public TD h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public TD h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public TD h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public TD h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public TD h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public TD _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public TD _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public TD b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public TD b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public TD i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public TD i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public TD small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public TD small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public TD em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public TD em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public TD strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public TD strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public TD dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public TD dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public TD code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public TD code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public TD samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public TD samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public TD kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public TD kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public TD var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public TD var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public TD cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public TD cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public TD abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public TD abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public TD a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public TD a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public TD img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public TD sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public TD sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public TD sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public TD sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public TD q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public TD q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public TD br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public TD bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public TD span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public TD span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public TD script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public TD ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public TD del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public TD label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public TD textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public TD button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class TH extends EImp implements HamletSpec.TH { - public TH(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TH $headers(String value) { - addAttr("headers", value); - return this; - } - - @Override - public TH $scope(Scope value) { - addAttr("scope", value); - return this; - } - - @Override - public TH $rowspan(int value) { - addAttr("rowspan", value); - return this; - } - - @Override - public TH $colspan(int value) { - addAttr("colspan", value); - return this; - } - - @Override - public TH $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TH $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TH $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TH $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TH $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TH $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TH $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TH $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TH $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TH $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TH $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TH $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TH $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TH $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TH $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TH $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public TH address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public TH _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public TH hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public TH h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public TH h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public TH h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public TH h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public TH h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public TH h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public TH h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public TH h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public TH h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public TH h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public TH h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public TH h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public TH _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public TH _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public TH b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public TH b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public TH i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public TH i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public TH small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public TH small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public TH em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public TH em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public TH strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public TH strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public TH dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public TH dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public TH code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public TH code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public TH samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public TH samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public TH kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public TH kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public TH var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public TH var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public TH cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public TH cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public TH abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public TH abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public TH a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public TH a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public TH img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public TH sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public TH sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public TH sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public TH sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public TH q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public TH q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public TH br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public TH bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public TH span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public TH span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public TH script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public TH ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public TH del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public TH label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public TH textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public TH button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class TR extends EImp implements HamletSpec.TR { - public TR(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TR $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TR $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TR $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TR $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TR $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TR $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TR $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TR $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TR $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TR $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TR $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TR $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TR $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TR $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TR $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TR $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TH> th() { - closeAttrs(); - return th_(this, false); - } - - @Override - public TR th(String cdata) { - return th()._(cdata)._(); - } - - @Override - public TR th(String selector, String cdata) { - return setSelector(th(), selector)._(cdata)._(); - } - - public TR th(String selector, String title, String cdata) { - return setSelector(th(), selector).$title(title)._(cdata)._(); - } - - @Override - public TD> td() { - closeAttrs(); - return td_(this, false); - } - - @Override - public TR td(String cdata) { - return td()._(cdata)._(); - } - - @Override - public TR td(String selector, String cdata) { - return setSelector(td(), selector)._(cdata)._(); - } - } - - private TH th_(T e, boolean inline) { - return new TH("th", e, opt(true, inline, false)); } - - private TD td_(T e, boolean inline) { - return new TD("td", e, opt(true, inline, false)); } - - public class COL extends EImp implements HamletSpec.COL { - public COL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public COL $span(int value) { - addAttr("span", value); - return this; - } - - @Override - public COL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public COL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public COL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public COL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public COL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public COL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public COL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public COL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public COL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public COL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public COL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public COL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public COL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public COL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public COL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public COL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class COLGROUP extends EImp implements HamletSpec.COLGROUP { - public COLGROUP(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public COLGROUP $span(int value) { - addAttr("span", value); - return this; - } - - @Override - public COLGROUP $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public COLGROUP $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public COLGROUP $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public COLGROUP $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public COLGROUP $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public COLGROUP $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public COLGROUP $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public COLGROUP $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public COLGROUP $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public COLGROUP $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public COLGROUP $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public COLGROUP $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public COLGROUP $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public COLGROUP $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public COLGROUP $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public COLGROUP $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public COL> col() { - closeAttrs(); - return col_(this, false); - } - - @Override - public COLGROUP col(String selector) { - return setSelector(col(), selector)._(); - } - } - - public class TBODY extends EImp implements HamletSpec.TBODY { - public TBODY(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TBODY $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TBODY $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TBODY $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TBODY $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TBODY $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TBODY $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TBODY $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TBODY $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TBODY $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TBODY $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TBODY $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TBODY $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TBODY $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TBODY $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TBODY $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TBODY $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TR> tr() { - closeAttrs(); - return tr_(this, false); - } - - @Override - public TR> tr(String selector) { - return setSelector(tr(), selector); - } - } - - public class TFOOT extends EImp implements HamletSpec.TFOOT { - public TFOOT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TFOOT $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TFOOT $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TFOOT $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TFOOT $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TFOOT $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TFOOT $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TFOOT $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TFOOT $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TFOOT $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TFOOT $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TFOOT $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TFOOT $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TFOOT $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TFOOT $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TFOOT $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TFOOT $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TR> tr() { - closeAttrs(); - return tr_(this, false); - } - - @Override - public TR> tr(String selector) { - return setSelector(tr(), selector); - } - } - - public class THEAD extends EImp implements HamletSpec.THEAD { - public THEAD(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public THEAD $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public THEAD $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public THEAD $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public THEAD $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public THEAD $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public THEAD $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public THEAD $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public THEAD $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public THEAD $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public THEAD $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public THEAD $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public THEAD $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public THEAD $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public THEAD $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public THEAD $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public THEAD $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TR> tr() { - closeAttrs(); - return tr_(this, false); - } - - @Override - public TR> tr(String selector) { - return setSelector(tr(), selector); - } - } - - public class CAPTION extends EImp implements HamletSpec.CAPTION { - public CAPTION(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public CAPTION $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public CAPTION $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public CAPTION $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public CAPTION $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public CAPTION $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public CAPTION $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public CAPTION $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public CAPTION $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public CAPTION $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public CAPTION $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public CAPTION $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public CAPTION $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public CAPTION $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public CAPTION $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public CAPTION $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public CAPTION $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public CAPTION _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public CAPTION _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public CAPTION b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public CAPTION b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public CAPTION i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public CAPTION i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public CAPTION small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public CAPTION small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public CAPTION em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public CAPTION em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public CAPTION strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public CAPTION strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public CAPTION dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public CAPTION dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public CAPTION code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public CAPTION code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public CAPTION samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public CAPTION samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public CAPTION kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public CAPTION kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public CAPTION var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public CAPTION var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public CAPTION cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public CAPTION cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public CAPTION abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public CAPTION abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public CAPTION a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public CAPTION a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public CAPTION img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public CAPTION sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public CAPTION sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public CAPTION sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public CAPTION sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public CAPTION q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public CAPTION q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public CAPTION br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public CAPTION bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public CAPTION span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public CAPTION span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public CAPTION script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public CAPTION ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public CAPTION del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public CAPTION label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public CAPTION textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public CAPTION button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class TABLE extends EImp implements HamletSpec.TABLE { - public TABLE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TABLE $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TABLE $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TABLE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TABLE $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TABLE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TABLE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TABLE $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TABLE $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TABLE $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TABLE $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TABLE $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TABLE $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TABLE $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TABLE $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TABLE $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TABLE $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE caption(String cdata) { - return caption()._(cdata)._(); - } - - @Override - public CAPTION> caption() { - closeAttrs(); - return caption_(this, false); - } - - @Override - public COLGROUP> colgroup() { - closeAttrs(); - return colgroup_(this, false); - } - - @Override - public THEAD> thead(String selector) { - return setSelector(thead(), selector); - } - - @Override - public THEAD> thead() { - closeAttrs(); - return thead_(this, false); - } - - @Override - public TFOOT> tfoot() { - closeAttrs(); - return tfoot_(this, false); - } - - @Override - public TFOOT> tfoot(String selector) { - return setSelector(tfoot(), selector); - } - - @Override - public TBODY> tbody() { - closeAttrs(); - return tbody_(this, false); - } - - @Override - public TBODY> tbody(String selector) { - return setSelector(tbody(), selector); - } - - @Override - public TR> tr() { - closeAttrs(); - return tr_(this, false); - } - - @Override - public TR> tr(String selector) { - return setSelector(tr(), selector); - } - - @Override - public COL> col() { - closeAttrs(); - return col_(this, false); - } - - @Override - public TABLE col(String selector) { - return setSelector(col(), selector)._(); - } - } - - private CAPTION caption_(T e, boolean inline) { - return new CAPTION("caption", e, opt(true, inline, false)); } - - private COLGROUP colgroup_(T e, boolean inline) { - return new COLGROUP("colgroup", e, opt(false, inline, false)); } - - private THEAD thead_(T e, boolean inline) { - return new THEAD("thead", e, opt(true, inline, false)); } - - private TFOOT tfoot_(T e, boolean inline) { - return new TFOOT("tfoot", e, opt(true, inline, false)); } - - private TBODY tbody_(T e, boolean inline) { - return new TBODY("tbody", e, opt(true, inline, false)); } - - private COL col_(T e, boolean inline) { - return new COL("col", e, opt(false, inline, false)); } - - private TR tr_(T e, boolean inline) { - return new TR("tr", e, opt(true, inline, false)); } - - public class BUTTON extends EImp implements HamletSpec.BUTTON { - public BUTTON(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BUTTON $type(ButtonType value) { - addAttr("type", value); - return this; - } - - @Override - public BUTTON $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public BUTTON $value(String value) { - addAttr("value", value); - return this; - } - - @Override - public BUTTON $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public BUTTON $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public BUTTON $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public BUTTON $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public BUTTON $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public BUTTON address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public BUTTON _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public BUTTON hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BUTTON h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public BUTTON h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public BUTTON h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public BUTTON h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public BUTTON h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public BUTTON h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public BUTTON h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public BUTTON h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public BUTTON h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public BUTTON h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public BUTTON h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public BUTTON h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public BUTTON _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public BUTTON _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public BUTTON b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public BUTTON b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public BUTTON i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public BUTTON i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public BUTTON small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public BUTTON small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public BUTTON em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public BUTTON em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public BUTTON strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public BUTTON strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public BUTTON dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public BUTTON dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public BUTTON code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public BUTTON code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public BUTTON samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public BUTTON samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public BUTTON kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public BUTTON kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public BUTTON var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public BUTTON var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public BUTTON cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public BUTTON cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public BUTTON abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public BUTTON abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public BUTTON q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public BUTTON q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public BUTTON br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public BUTTON bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public BUTTON span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public BUTTON span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public BUTTON script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public BUTTON ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public BUTTON del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public BUTTON img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public BUTTON sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public BUTTON sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public BUTTON sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public BUTTON sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public BUTTON $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public BUTTON $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public BUTTON $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public BUTTON $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public BUTTON $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public BUTTON $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public BUTTON $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public BUTTON $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public BUTTON $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public BUTTON $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public BUTTON $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public BUTTON $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public BUTTON $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public BUTTON $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public BUTTON $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public BUTTON $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class LEGEND extends EImp implements HamletSpec.LEGEND { - public LEGEND(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public LEGEND $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public LEGEND $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public LEGEND $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public LEGEND $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public LEGEND $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public LEGEND $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public LEGEND $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public LEGEND $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public LEGEND $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public LEGEND $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public LEGEND $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public LEGEND $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public LEGEND $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public LEGEND $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public LEGEND $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public LEGEND $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public LEGEND $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public LEGEND _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public LEGEND _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public LEGEND b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public LEGEND b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public LEGEND i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public LEGEND i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public LEGEND small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public LEGEND small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public LEGEND em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public LEGEND em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public LEGEND strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public LEGEND strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public LEGEND dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public LEGEND dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public LEGEND code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public LEGEND code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public LEGEND samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public LEGEND samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public LEGEND kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public LEGEND kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public LEGEND var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public LEGEND var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public LEGEND cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public LEGEND cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public LEGEND abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public LEGEND abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public LEGEND a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public LEGEND a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public LEGEND img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public LEGEND sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public LEGEND sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public LEGEND sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public LEGEND sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public LEGEND q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public LEGEND q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public LEGEND br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public LEGEND bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public LEGEND span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public LEGEND span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public LEGEND script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public LEGEND ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public LEGEND del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public LEGEND label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public LEGEND textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public LEGEND button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class FIELDSET extends EImp implements HamletSpec.FIELDSET { - public FIELDSET(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public FIELDSET $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public FIELDSET $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public FIELDSET $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public FIELDSET $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public FIELDSET $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public FIELDSET $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public FIELDSET $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public FIELDSET $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public FIELDSET $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public FIELDSET $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public FIELDSET $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public FIELDSET $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public FIELDSET $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public FIELDSET $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public FIELDSET $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public FIELDSET $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public LEGEND> legend() { - closeAttrs(); - return legend_(this, false); - } - - @Override - public FIELDSET legend(String cdata) { - return legend()._(cdata)._(); - } - - @Override - public FIELDSET _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public FIELDSET _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public FIELDSET address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public FIELDSET _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public FIELDSET hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public FIELDSET h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public FIELDSET h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public FIELDSET h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public FIELDSET h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public FIELDSET h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public FIELDSET h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public FIELDSET h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public FIELDSET h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public FIELDSET h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public FIELDSET h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public FIELDSET h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public FIELDSET h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public FIELDSET b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public FIELDSET b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public FIELDSET i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public FIELDSET i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public FIELDSET small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public FIELDSET small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public FIELDSET em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public FIELDSET em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public FIELDSET strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public FIELDSET strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public FIELDSET dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public FIELDSET dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public FIELDSET code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public FIELDSET code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public FIELDSET samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public FIELDSET samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public FIELDSET kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public FIELDSET kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public FIELDSET var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public FIELDSET var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public FIELDSET cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public FIELDSET cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public FIELDSET abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public FIELDSET abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public FIELDSET a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public FIELDSET a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public FIELDSET img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public FIELDSET sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public FIELDSET sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public FIELDSET sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public FIELDSET sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public FIELDSET q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public FIELDSET q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public FIELDSET br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public FIELDSET bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public FIELDSET span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public FIELDSET span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public FIELDSET script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public FIELDSET ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public FIELDSET del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public FIELDSET label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public FIELDSET textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public FIELDSET button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - private LEGEND legend_(T e, boolean inline) { - return new LEGEND("legend", e, opt(true, inline, false)); } - - public class TEXTAREA extends EImp implements HamletSpec.TEXTAREA { - public TEXTAREA(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public TEXTAREA $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public TEXTAREA $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public TEXTAREA $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public TEXTAREA $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public TEXTAREA $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public TEXTAREA $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public TEXTAREA $rows(int value) { - addAttr("rows", value); - return this; - } - - @Override - public TEXTAREA $cols(int value) { - addAttr("cols", value); - return this; - } - - @Override - public TEXTAREA $readonly() { - addAttr("readonly", null); - return this; - } - - @Override - public TEXTAREA $onselect(String value) { - addAttr("onselect", value); - return this; - } - - @Override - public TEXTAREA $onchange(String value) { - addAttr("onchange", value); - return this; - } - - @Override - public TEXTAREA $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public TEXTAREA $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public TEXTAREA $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public TEXTAREA $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public TEXTAREA $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public TEXTAREA $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public TEXTAREA $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public TEXTAREA $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public TEXTAREA $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public TEXTAREA $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public TEXTAREA $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public TEXTAREA $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public TEXTAREA $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public TEXTAREA $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public TEXTAREA $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public TEXTAREA $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TEXTAREA _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public TEXTAREA _r(Object... lines) { - _p(false, lines); - return this; - } - } - - public class OPTION extends EImp implements HamletSpec.OPTION { - public OPTION(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public OPTION $value(String value) { - addAttr("value", value); - return this; - } - - @Override - public OPTION $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public OPTION $selected() { - addAttr("selected", null); - return this; - } - - @Override - public OPTION $label(String value) { - addAttr("label", value); - return this; - } - - @Override - public OPTION $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public OPTION $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public OPTION $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public OPTION $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public OPTION $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public OPTION $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public OPTION $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public OPTION $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public OPTION $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public OPTION $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public OPTION $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public OPTION $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public OPTION $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public OPTION $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public OPTION $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public OPTION $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public OPTION _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public OPTION _r(Object... lines) { - _p(false, lines); - return this; - } - } - - public class OPTGROUP extends EImp implements HamletSpec.OPTGROUP { - public OPTGROUP(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public OPTGROUP $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public OPTGROUP $label(String value) { - addAttr("label", value); - return this; - } - - @Override - public OPTGROUP $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public OPTGROUP $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public OPTGROUP $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public OPTGROUP $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public OPTGROUP $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public OPTGROUP $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public OPTGROUP $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public OPTGROUP $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public OPTGROUP $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public OPTGROUP $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public OPTGROUP $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public OPTGROUP $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public OPTGROUP $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public OPTGROUP $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public OPTGROUP $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public OPTGROUP $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public OPTION> option() { - closeAttrs(); - return option_(this, false); - } - - @Override - public OPTGROUP option(String cdata) { - return option()._(cdata)._(); - } - } - - private OPTGROUP optgroup_(T e, boolean inline) { - return new OPTGROUP("optgroup", e, opt(true, inline, false)); } - - public class SELECT extends EImp implements HamletSpec.SELECT { - public SELECT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SELECT $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public SELECT $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public SELECT $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public SELECT $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public SELECT $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public SELECT $onchange(String value) { - addAttr("onchange", value); - return this; - } - - @Override - public OPTGROUP> optgroup() { - closeAttrs(); - return optgroup_(this, false); - } - - @Override - public SELECT $size(int value) { - addAttr("size", value); - return this; - } - - @Override - public SELECT $multiple() { - addAttr("multiple", null); - return this; - } - - @Override - public SELECT $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SELECT $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SELECT $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SELECT $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SELECT $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SELECT $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SELECT $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SELECT $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SELECT $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SELECT $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SELECT $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SELECT $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SELECT $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SELECT $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SELECT $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SELECT $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public OPTION> option() { - closeAttrs(); - return option_(this, false); - } - - @Override - public SELECT option(String cdata) { - return option()._(cdata)._(); - } - } - - private OPTION option_(T e, boolean inline) { - return new OPTION("option", e, opt(false, inline, false)); } - - public class INPUT extends EImp implements HamletSpec.INPUT { - public INPUT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public INPUT $type(InputType value) { - addAttr("type", value); - return this; - } - - @Override - public INPUT $src(String value) { - addAttr("src", value); - return this; - } - - @Override - public INPUT $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public INPUT $value(String value) { - addAttr("value", value); - return this; - } - - @Override - public INPUT $disabled() { - addAttr("disabled", null); - return this; - } - - @Override - public INPUT $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public INPUT $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public INPUT $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public INPUT $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public INPUT $readonly() { - addAttr("readonly", null); - return this; - } - - @Override - public INPUT $onselect(String value) { - addAttr("onselect", value); - return this; - } - - @Override - public INPUT $onchange(String value) { - addAttr("onchange", value); - return this; - } - - @Override - public INPUT $size(String value) { - addAttr("size", value); - return this; - } - - @Override - public INPUT $checked() { - addAttr("checked", null); - return this; - } - - @Override - public INPUT $maxlength(int value) { - addAttr("maxlength", value); - return this; - } - - @Override - public INPUT $alt(String value) { - addAttr("alt", value); - return this; - } - - @Override - public INPUT $ismap() { - addAttr("ismap", null); - return this; - } - - @Override - public INPUT $accept(String value) { - addAttr("accept", value); - return this; - } - - @Override - public INPUT $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public INPUT $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public INPUT $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public INPUT $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public INPUT $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public INPUT $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public INPUT $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public INPUT $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public INPUT $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public INPUT $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public INPUT $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public INPUT $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public INPUT $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public INPUT $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public INPUT $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public INPUT $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class LABEL extends EImp implements HamletSpec.LABEL { - public LABEL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public LABEL $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public LABEL $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public LABEL $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public LABEL $for(String value) { - addAttr("for", value); - return this; - } - - @Override - public LABEL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public LABEL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public LABEL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public LABEL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public LABEL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public LABEL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public LABEL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public LABEL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public LABEL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public LABEL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public LABEL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public LABEL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public LABEL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public LABEL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public LABEL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public LABEL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public LABEL _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public LABEL _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public LABEL b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public LABEL b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public LABEL i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public LABEL i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public LABEL small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public LABEL small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public LABEL em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public LABEL em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public LABEL strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public LABEL strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public LABEL dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public LABEL dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public LABEL code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public LABEL code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public LABEL samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public LABEL samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public LABEL kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public LABEL kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public LABEL var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public LABEL var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public LABEL cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public LABEL cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public LABEL abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public LABEL abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public LABEL a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public LABEL a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public LABEL img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public LABEL sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public LABEL sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public LABEL sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public LABEL sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public LABEL q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public LABEL q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public LABEL br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public LABEL bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public LABEL span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public LABEL span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public LABEL script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public LABEL ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public LABEL del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public LABEL textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public LABEL button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class FORM extends EImp implements HamletSpec.FORM { - public FORM(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public FORM $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public FORM $accept(String value) { - addAttr("accept", value); - return this; - } - - @Override - public FORM $action(String value) { - addAttr("action", value); - return this; - } - - @Override - public FORM $method(Method value) { - addAttr("method", value); - return this; - } - - @Override - public FORM $enctype(String value) { - addAttr("enctype", value); - return this; - } - - @Override - public FORM $onsubmit(String value) { - addAttr("onsubmit", value); - return this; - } - - @Override - public FORM $onreset(String value) { - addAttr("onreset", value); - return this; - } - - @Override - public FORM $accept_charset(String value) { - addAttr("accept-charset", value); - return this; - } - - @Override - public FORM $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public FORM $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public FORM $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public FORM $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public FORM $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public FORM $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public FORM $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public FORM $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public FORM $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public FORM $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public FORM $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public FORM $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public FORM $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public FORM $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public FORM $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public FORM $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public FORM script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public FORM address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public FORM _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public FORM hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public FORM h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public FORM h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public FORM h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public FORM h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public FORM h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public FORM h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public FORM h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public FORM h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public FORM h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public FORM h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public FORM h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public FORM h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - } - - public class LI extends EImp implements HamletSpec.LI { - public LI(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public LI $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public LI $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public LI $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public LI $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public LI $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public LI $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public LI $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public LI $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public LI $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public LI $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public LI $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public LI $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public LI $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public LI $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public LI $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public LI $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public LI address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public LI _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public LI hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public LI h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public LI h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public LI h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public LI h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public LI h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public LI h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public LI h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public LI h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public LI h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public LI h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public LI h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public LI h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public LI _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public LI _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public LI b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public LI b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public LI i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public LI i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public LI small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public LI small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public LI em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public LI em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public LI strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public LI strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public LI dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public LI dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public LI code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public LI code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public LI samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public LI samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public LI kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public LI kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public LI var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public LI var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public LI cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public LI cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public LI abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public LI abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public LI a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public LI a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public LI img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public LI sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public LI sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public LI sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public LI sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public LI q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public LI q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public LI br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public LI bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public LI span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public LI span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public LI script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public LI ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public LI del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public LI label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public LI textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public LI button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class UL extends EImp implements HamletSpec.UL { - public UL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public UL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public UL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public UL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public UL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public UL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public UL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public UL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public UL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public UL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public UL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public UL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public UL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public UL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public UL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public UL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public UL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public LI> li() { - closeAttrs(); - return li_(this, false); - } - - @Override - public UL li(String cdata) { - return li()._(cdata)._(); - } - } - - public class OL extends EImp implements HamletSpec.OL { - public OL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public OL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public OL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public OL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public OL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public OL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public OL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public OL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public OL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public OL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public OL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public OL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public OL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public OL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public OL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public OL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public OL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public LI> li() { - closeAttrs(); - return li_(this, false); - } - - @Override - public OL li(String cdata) { - return li()._(cdata)._(); - } - } - - private LI li_(T e, boolean inline) { - return new LI("li", e, opt(false, inline, false)); } - - public class DD extends EImp implements HamletSpec.DD { - public DD(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DD $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DD $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DD $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DD $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DD $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DD $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DD $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DD $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DD $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DD $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DD $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DD $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DD $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DD $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DD $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DD $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public DD address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public DD _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public DD hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public DD h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public DD h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public DD h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public DD h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public DD h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public DD h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public DD h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public DD h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public DD h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public DD h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public DD h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public DD h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public DD _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public DD _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public DD b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public DD b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public DD i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public DD i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public DD small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public DD small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public DD em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public DD em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public DD strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public DD strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public DD dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public DD dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public DD code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public DD code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public DD samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public DD samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public DD kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public DD kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public DD var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public DD var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public DD cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public DD cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public DD abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public DD abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public DD a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public DD a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public DD img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public DD sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public DD sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public DD sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public DD sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public DD q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public DD q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public DD br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public DD bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public DD span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public DD span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public DD script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public DD ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public DD del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public DD label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public DD textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public DD button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class DT extends EImp implements HamletSpec.DT { - public DT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DT $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DT $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DT $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DT $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DT $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DT $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DT $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DT $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DT $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DT $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DT $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DT $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DT $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DT $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DT $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DT $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public DT _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public DT _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public DT b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public DT b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public DT i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public DT i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public DT small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public DT small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public DT em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public DT em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public DT strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public DT strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public DT dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public DT dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public DT code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public DT code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public DT samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public DT samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public DT kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public DT kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public DT var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public DT var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public DT cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public DT cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public DT abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public DT abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public DT a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public DT a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public DT img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public DT sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public DT sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public DT sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public DT sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public DT q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public DT q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public DT br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public DT bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public DT span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public DT span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public DT script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public DT ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public DT del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public DT label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public DT textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public DT button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class DL extends EImp implements HamletSpec.DL { - public DL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public DT> dt() { - closeAttrs(); - return dt_(this, false); - } - - @Override - public DL dt(String cdata) { - return dt()._(cdata)._(); - } - - @Override - public DD> dd() { - closeAttrs(); - return dd_(this, false); - } - - @Override - public DL dd(String cdata) { - return dd()._(cdata)._(); - } - } - - private DT dt_(T e, boolean inline) { - return new DT("dt", e, opt(false, inline, false)); } - - private DD dd_(T e, boolean inline) { - return new DD("dd", e, opt(false, inline, false)); } - - public class DEL extends EImp implements HamletSpec.DEL { - public DEL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DEL $cite(String value) { - addAttr("cite", value); - return this; - } - - @Override - public DEL $datetime(String value) { - addAttr("datetime", value); - return this; - } - - @Override - public DEL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DEL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DEL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DEL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DEL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DEL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DEL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DEL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DEL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DEL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DEL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DEL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DEL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DEL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DEL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DEL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public DEL address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public DEL _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public DEL hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public DEL h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public DEL h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public DEL h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public DEL h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public DEL h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public DEL h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public DEL h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public DEL h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public DEL h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public DEL h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public DEL h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public DEL h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public DEL _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public DEL _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public DEL b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public DEL b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public DEL i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public DEL i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public DEL small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public DEL small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public DEL em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public DEL em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public DEL strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public DEL strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public DEL dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public DEL dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public DEL code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public DEL code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public DEL samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public DEL samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public DEL kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public DEL kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public DEL var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public DEL var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public DEL cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public DEL cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public DEL abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public DEL abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public DEL a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public DEL a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public DEL img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public DEL sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public DEL sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public DEL sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public DEL sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public DEL q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public DEL q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public DEL br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public DEL bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public DEL span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public DEL span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public DEL script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public DEL ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public DEL del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public DEL label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public DEL textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public DEL button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class INS extends EImp implements HamletSpec.INS { - public INS(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public INS $cite(String value) { - addAttr("cite", value); - return this; - } - - @Override - public INS $datetime(String value) { - addAttr("datetime", value); - return this; - } - - @Override - public INS $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public INS $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public INS $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public INS $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public INS $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public INS $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public INS $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public INS $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public INS $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public INS $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public INS $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public INS $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public INS $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public INS $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public INS $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public INS $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public INS address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public INS _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public INS hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public INS h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public INS h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public INS h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public INS h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public INS h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public INS h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public INS h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public INS h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public INS h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public INS h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public INS h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public INS h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public INS _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public INS _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public INS b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public INS b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public INS i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public INS i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public INS small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public INS small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public INS em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public INS em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public INS strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public INS strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public INS dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public INS dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public INS code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public INS code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public INS samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public INS samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public INS kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public INS kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public INS var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public INS var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public INS cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public INS cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public INS abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public INS abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public INS a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public INS a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public INS img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public INS sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public INS sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public INS sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public INS sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public INS q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public INS q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public INS br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public INS bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public INS span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public INS span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public INS script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public INS ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public INS del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public INS label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public INS textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public INS button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class BLOCKQUOTE extends EImp implements HamletSpec.BLOCKQUOTE { - public BLOCKQUOTE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BLOCKQUOTE $cite(String value) { - addAttr("cite", value); - return this; - } - - @Override - public BLOCKQUOTE $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public BLOCKQUOTE $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public BLOCKQUOTE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public BLOCKQUOTE $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public BLOCKQUOTE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public BLOCKQUOTE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public BLOCKQUOTE $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public BLOCKQUOTE $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public BLOCKQUOTE $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public BLOCKQUOTE $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public BLOCKQUOTE $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public BLOCKQUOTE $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public BLOCKQUOTE $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public BLOCKQUOTE $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public BLOCKQUOTE $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public BLOCKQUOTE $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public BLOCKQUOTE address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public BLOCKQUOTE _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public BLOCKQUOTE hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public BLOCKQUOTE h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public BLOCKQUOTE h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public BLOCKQUOTE h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public BLOCKQUOTE h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public BLOCKQUOTE h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public BLOCKQUOTE h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public BLOCKQUOTE h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public BLOCKQUOTE h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public BLOCKQUOTE h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public BLOCKQUOTE h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public BLOCKQUOTE h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public BLOCKQUOTE script(String src) { - return setScriptSrc(script(), src)._(); - } - } - - public class Q extends EImp implements HamletSpec.Q { - public Q(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public Q $cite(String value) { - addAttr("cite", value); - return this; - } - - @Override - public Q $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public Q $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public Q $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public Q $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public Q $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public Q $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public Q $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public Q $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public Q $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public Q $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public Q $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public Q $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public Q $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public Q $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public Q $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public Q $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public Q _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public Q _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public Q b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public Q b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public Q i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public Q i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public Q small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public Q small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public Q em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public Q em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public Q strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public Q strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public Q dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public Q dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public Q code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public Q code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public Q samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public Q samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public Q kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public Q kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public Q var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public Q var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public Q cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public Q cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public Q abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public Q abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public Q a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public Q a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public Q img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public Q sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public Q sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public Q sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public Q sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public Q q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public Q q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public Q br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public Q bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public Q span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public Q span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public Q script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public Q ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public Q del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public Q label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public Q textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public Q button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class PRE extends EImp implements HamletSpec.PRE { - public PRE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public PRE $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public PRE $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public PRE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public PRE $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public PRE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public PRE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public PRE $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public PRE $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public PRE $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public PRE $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public PRE $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public PRE $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public PRE $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public PRE $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public PRE $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public PRE $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public PRE _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public PRE _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public PRE b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public PRE b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public PRE i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public PRE i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public PRE em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public PRE em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public PRE strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public PRE strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public PRE dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public PRE dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public PRE code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public PRE code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public PRE samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public PRE samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public PRE kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public PRE kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public PRE var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public PRE var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public PRE cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public PRE cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public PRE abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public PRE abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public PRE a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public PRE a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public PRE q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public PRE q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public PRE br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public PRE bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public PRE span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public PRE span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public PRE script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public PRE ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public PRE del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public PRE label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public PRE textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public PRE button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H6 extends EImp implements HamletSpec.H6 { - public H6(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H6 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H6 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H6 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H6 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H6 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H6 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H6 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H6 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H6 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H6 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H6 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H6 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H6 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H6 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H6 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H6 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H6 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H6 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H6 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H6 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H6 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H6 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H6 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H6 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H6 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H6 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H6 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H6 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H6 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H6 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H6 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H6 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H6 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H6 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H6 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H6 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H6 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H6 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H6 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H6 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H6 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H6 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H6 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H6 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H6 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H6 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H6 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H6 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H6 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H6 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H6 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H6 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H6 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H6 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H6 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H6 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H6 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H6 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H6 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H6 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H6 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H5 extends EImp implements HamletSpec.H5 { - public H5(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H5 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H5 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H5 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H5 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H5 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H5 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H5 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H5 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H5 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H5 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H5 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H5 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H5 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H5 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H5 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H5 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H5 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H5 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H5 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H5 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H5 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H5 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H5 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H5 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H5 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H5 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H5 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H5 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H5 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H5 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H5 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H5 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H5 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H5 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H5 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H5 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H5 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H5 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H5 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H5 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H5 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H5 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H5 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H5 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H5 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H5 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H5 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H5 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H5 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H5 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H5 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H5 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H5 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H5 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H5 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H5 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H5 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H5 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H5 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H5 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H5 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H4 extends EImp implements HamletSpec.H4 { - public H4(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H4 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H4 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H4 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H4 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H4 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H4 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H4 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H4 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H4 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H4 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H4 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H4 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H4 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H4 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H4 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H4 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H4 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H4 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H4 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H4 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H4 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H4 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H4 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H4 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H4 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H4 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H4 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H4 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H4 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H4 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H4 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H4 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H4 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H4 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H4 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H4 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H4 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H4 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H4 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H4 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H4 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H4 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H4 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H4 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H4 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H4 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H4 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H4 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H4 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H4 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H4 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H4 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H4 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H4 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H4 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H4 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H4 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H4 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H4 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H4 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H4 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H3 extends EImp implements HamletSpec.H3 { - public H3(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H3 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H3 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H3 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H3 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H3 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H3 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H3 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H3 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H3 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H3 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H3 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H3 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H3 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H3 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H3 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H3 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H3 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H3 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H3 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H3 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H3 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H3 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H3 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H3 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H3 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H3 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H3 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H3 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H3 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H3 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H3 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H3 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H3 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H3 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H3 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H3 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H3 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H3 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H3 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H3 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H3 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H3 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H3 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H3 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H3 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H3 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H3 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H3 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H3 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H3 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H3 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H3 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H3 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H3 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H3 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H3 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H3 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H3 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H3 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H3 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H3 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H2 extends EImp implements HamletSpec.H2 { - public H2(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H2 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H2 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H2 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H2 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H2 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H2 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H2 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H2 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H2 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H2 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H2 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H2 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H2 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H2 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H2 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H2 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H2 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H2 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H2 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H2 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H2 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H2 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H2 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H2 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H2 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H2 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H2 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H2 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H2 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H2 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H2 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H2 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H2 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H2 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H2 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H2 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H2 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H2 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H2 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H2 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H2 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H2 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H2 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H2 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H2 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H2 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H2 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H2 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H2 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H2 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H2 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H2 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H2 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H2 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H2 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H2 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H2 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H2 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H2 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H2 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H2 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class H1 extends EImp implements HamletSpec.H1 { - public H1(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public H1 $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public H1 $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public H1 $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public H1 $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public H1 $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public H1 $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public H1 $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public H1 $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public H1 $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public H1 $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public H1 $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public H1 $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public H1 $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public H1 $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public H1 $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public H1 $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public H1 _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public H1 _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public H1 b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public H1 b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public H1 i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public H1 i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public H1 small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public H1 small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public H1 em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public H1 em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public H1 strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public H1 strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public H1 dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public H1 dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public H1 code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public H1 code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public H1 samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public H1 samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public H1 kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public H1 kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public H1 var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public H1 var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public H1 cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public H1 cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public H1 abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public H1 abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public H1 a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public H1 a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public H1 img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public H1 sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public H1 sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public H1 sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public H1 sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public H1 q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public H1 q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public H1 br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public H1 bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public H1 span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public H1 span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public H1 script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public H1 ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public H1 del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public H1 label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public H1 textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public H1 button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class P extends EImp implements HamletSpec.P { - public P(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public P $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public P $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public P $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public P $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public P $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public P $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public P $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public P $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public P $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public P $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public P $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public P $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public P $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public P $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public P $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public P $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public P _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public P _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public P b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public P b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public P i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public P i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public P small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public P small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public P em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public P em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public P strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public P strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public P dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public P dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public P code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public P code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public P samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public P samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public P kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public P kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public P var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public P var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public P cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public P cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public P abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public P abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public P a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public P a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public P img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public P sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public P sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public P sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public P sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public P q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public P q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public P br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public P bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public P span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public P span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public P script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public P ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public P del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public P label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public P textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public P button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class HR extends EImp implements HamletSpec.HR { - public HR(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public HR $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public HR $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public HR $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public HR $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public HR $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public HR $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public HR $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public HR $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public HR $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public HR $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public HR $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public HR $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public HR $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public HR $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public HR $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public HR $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class PARAM extends EImp implements HamletSpec.PARAM { - public PARAM(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public PARAM $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public PARAM $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public PARAM $value(String value) { - addAttr("value", value); - return this; - } - } - - public class OBJECT extends EImp implements HamletSpec.OBJECT { - public OBJECT(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public OBJECT $type(String value) { - addAttr("type", value); - return this; - } - - @Override - public OBJECT $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public OBJECT $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public OBJECT $data(String value) { - addAttr("data", value); - return this; - } - - @Override - public OBJECT $height(String value) { - addAttr("height", value); - return this; - } - - @Override - public OBJECT $height(int value) { - addAttr("height", value); - return this; - } - - @Override - public OBJECT $width(int value) { - addAttr("width", value); - return this; - } - - @Override - public OBJECT $width(String value) { - addAttr("width", value); - return this; - } - - @Override - public OBJECT $usemap(String value) { - addAttr("usemap", value); - return this; - } - - @Override - public OBJECT $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public OBJECT $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public OBJECT $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public OBJECT $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public OBJECT $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public OBJECT $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public OBJECT $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public OBJECT $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public OBJECT $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public OBJECT $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public OBJECT $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public OBJECT $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public OBJECT $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public OBJECT $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public OBJECT $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public OBJECT $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public PARAM> param() { - closeAttrs(); - return param_(this, false); - } - - @Override - public OBJECT param(String name, String value) { - return param().$name(name).$value(value)._(); - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public OBJECT address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public OBJECT _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public OBJECT hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public OBJECT h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public OBJECT h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public OBJECT h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public OBJECT h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public OBJECT h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public OBJECT h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public OBJECT h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public OBJECT h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public OBJECT h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public OBJECT h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public OBJECT h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public OBJECT h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public OBJECT _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public OBJECT _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public OBJECT b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public OBJECT b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public OBJECT i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public OBJECT i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public OBJECT small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public OBJECT small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public OBJECT em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public OBJECT em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public OBJECT strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public OBJECT strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public OBJECT dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public OBJECT dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public OBJECT code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public OBJECT code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public OBJECT samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public OBJECT samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public OBJECT kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public OBJECT kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public OBJECT var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public OBJECT var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public OBJECT cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public OBJECT cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public OBJECT abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public OBJECT abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public OBJECT a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public OBJECT a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public OBJECT img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public OBJECT sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public OBJECT sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public OBJECT sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public OBJECT sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public OBJECT q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public OBJECT q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public OBJECT br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public OBJECT bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public OBJECT span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public OBJECT span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public OBJECT script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public OBJECT ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public OBJECT del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public OBJECT label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public OBJECT textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public OBJECT button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - private PARAM param_(T e, boolean inline) { - return new PARAM("param", e, opt(false, inline, false)); } - - public class IMG extends EImp implements HamletSpec.IMG { - public IMG(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public IMG $src(String value) { - addAttr("src", value); - return this; - } - - @Override - public IMG $alt(String value) { - addAttr("alt", value); - return this; - } - - @Override - public IMG $ismap() { - addAttr("ismap", null); - return this; - } - - @Override - public IMG $height(String value) { - addAttr("height", value); - return this; - } - - @Override - public IMG $height(int value) { - addAttr("height", value); - return this; - } - - @Override - public IMG $width(int value) { - addAttr("width", value); - return this; - } - - @Override - public IMG $width(String value) { - addAttr("width", value); - return this; - } - - @Override - public IMG $usemap(String value) { - addAttr("usemap", value); - return this; - } - - @Override - public IMG $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public IMG $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public IMG $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public IMG $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public IMG $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public IMG $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public IMG $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public IMG $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public IMG $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public IMG $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public IMG $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public IMG $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public IMG $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public IMG $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public IMG $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public IMG $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class LINK extends EImp implements HamletSpec.LINK { - public LINK(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public LINK $rel(EnumSet value) { - addRelAttr("rel", value); - return this; - } - - @Override - public LINK $rel(String value) { - addAttr("rel", value); - return this; - } - - @Override - public LINK $href(String value) { - addAttr("href", value); - return this; - } - - @Override - public LINK $type(String value) { - addAttr("type", value); - return this; - } - - @Override - public LINK $media(EnumSet value) { - addMediaAttr("media", value); - return this; - } - - @Override - public LINK $media(String value) { - addAttr("media", value); - return this; - } - - @Override - public LINK $hreflang(String value) { - addAttr("hreflang", value); - return this; - } - - @Override - public LINK $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public LINK $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public LINK $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public LINK $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public LINK $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public LINK $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public LINK $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public LINK $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public LINK $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public LINK $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public LINK $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public LINK $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public LINK $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public LINK $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public LINK $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public LINK $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - public class AREA extends EImp implements HamletSpec.AREA { - public AREA(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public AREA $href(String value) { - addAttr("href", value); - return this; - } - - @Override - public AREA $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public AREA $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public AREA $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public AREA $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public AREA $alt(String value) { - addAttr("alt", value); - return this; - } - - @Override - public AREA $shape(Shape value) { - addAttr("shape", value); - return this; - } - - @Override - public AREA $coords(String value) { - addAttr("coords", value); - return this; - } - - @Override - public AREA $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public AREA $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public AREA $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public AREA $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public AREA $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public AREA $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public AREA $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public AREA $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public AREA $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public AREA $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public AREA $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public AREA $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public AREA $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public AREA $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public AREA $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public AREA $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - } - - private AREA area_(T e, boolean inline) { - return new AREA("area", e, opt(false, inline, false)); } - - public class MAP extends EImp implements HamletSpec.MAP { - public MAP(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public MAP $name(String value) { - addAttr("name", value); - return this; - } - - @Override - public AREA> area() { - closeAttrs(); - return area_(this, false); - } - - @Override - public AREA> area(String selector) { - return setSelector(area(), selector); - } - - @Override - public MAP $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public MAP $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public MAP $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public MAP $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public MAP $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public MAP $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public MAP $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public MAP $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public MAP $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public MAP $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public MAP $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public MAP $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public MAP $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public MAP $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public MAP $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public MAP $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public MAP address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public MAP _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public MAP hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public MAP h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public MAP h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public MAP h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public MAP h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public MAP h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public MAP h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public MAP h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public MAP h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public MAP h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public MAP h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public MAP h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public MAP h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - } - - public class A extends EImp implements HamletSpec.A { - public A(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public A $rel(EnumSet value) { - addRelAttr("rel", value); - return this; - } - - @Override - public A $rel(String value) { - addAttr("rel", value); - return this; - } - - @Override - public A $href(String value) { - addAttr("href", value); - return this; - } - - @Override - public A $type(String value) { - addAttr("type", value); - return this; - } - - @Override - public A $tabindex(int value) { - addAttr("tabindex", value); - return this; - } - - @Override - public A $accesskey(String value) { - addAttr("accesskey", value); - return this; - } - - @Override - public A $onfocus(String value) { - addAttr("onfocus", value); - return this; - } - - @Override - public A $onblur(String value) { - addAttr("onblur", value); - return this; - } - - @Override - public A $hreflang(String value) { - addAttr("hreflang", value); - return this; - } - - @Override - public A $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public A $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public A $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public A $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public A $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public A $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public A $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public A $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public A $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public A $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public A $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public A $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public A $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public A $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public A $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public A $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public A _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public A _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public A b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public A b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public A i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public A i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public A small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public A small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public A em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public A em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public A strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public A strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public A dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public A dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public A code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public A code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public A samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public A samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public A kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public A kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public A var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public A var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public A cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public A cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public A abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public A abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public A img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public A q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public A q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public A br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public A bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public A span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public A span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public A script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public A ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public A del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public A sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public A sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public A sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public A sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public A label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public A textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public A button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class DIV extends EImp implements HamletSpec.DIV { - public DIV(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DIV $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DIV $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DIV $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DIV $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DIV $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DIV $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DIV $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DIV $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DIV $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DIV $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DIV $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DIV $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DIV $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DIV $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DIV $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DIV $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public DIV address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public DIV _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public DIV hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public DIV h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public DIV h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public DIV h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public DIV h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public DIV h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public DIV h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public DIV h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public DIV h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public DIV h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public DIV h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public DIV h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public DIV h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public DIV _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public DIV _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public DIV b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public DIV b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public DIV i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public DIV i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public DIV small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public DIV small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public DIV em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public DIV em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public DIV strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public DIV strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public DIV dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public DIV dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public DIV code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public DIV code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public DIV samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public DIV samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public DIV kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public DIV kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public DIV var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public DIV var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public DIV cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public DIV cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public DIV abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public DIV abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public DIV a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public DIV a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public DIV img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public DIV sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public DIV sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public DIV sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public DIV sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public DIV q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public DIV q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public DIV br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public DIV bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public DIV span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public DIV span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public DIV script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public DIV ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public DIV del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public DIV label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public DIV textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public DIV button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class ADDRESS extends EImp implements HamletSpec.ADDRESS { - public ADDRESS(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public ADDRESS $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public ADDRESS $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public ADDRESS $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public ADDRESS $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public ADDRESS $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public ADDRESS $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public ADDRESS $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public ADDRESS $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public ADDRESS $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public ADDRESS $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public ADDRESS $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public ADDRESS $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public ADDRESS $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public ADDRESS $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public ADDRESS $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public ADDRESS $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public ADDRESS _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public ADDRESS _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public ADDRESS b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public ADDRESS b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public ADDRESS i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public ADDRESS i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public ADDRESS small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public ADDRESS small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public ADDRESS em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public ADDRESS em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public ADDRESS strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public ADDRESS strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public ADDRESS dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public ADDRESS dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public ADDRESS code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public ADDRESS code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public ADDRESS samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public ADDRESS samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public ADDRESS kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public ADDRESS kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public ADDRESS var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public ADDRESS var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public ADDRESS cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public ADDRESS cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public ADDRESS abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public ADDRESS abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public ADDRESS a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public ADDRESS a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public ADDRESS img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public ADDRESS sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public ADDRESS sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public ADDRESS sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public ADDRESS sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public ADDRESS q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public ADDRESS q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public ADDRESS br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public ADDRESS bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public ADDRESS span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public ADDRESS span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public ADDRESS script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public ADDRESS ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public ADDRESS del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public ADDRESS label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public ADDRESS textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public ADDRESS button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class BODY extends EImp implements HamletSpec.BODY { - public BODY(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BODY $onload(String value) { - addAttr("onload", value); - return this; - } - - @Override - public BODY $onunload(String value) { - addAttr("onunload", value); - return this; - } - - @Override - public BODY $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public BODY $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public BODY $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public BODY $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public BODY $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public BODY $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public BODY $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public BODY $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public BODY $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public BODY $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public BODY $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public BODY $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public BODY $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public BODY $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public BODY $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public BODY $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public TABLE> table() { - closeAttrs(); - return table_(this, false); - } - - @Override - public TABLE> table(String selector) { - return setSelector(table(), selector); - } - - @Override - public BODY address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS> address() { - closeAttrs(); - return address_(this, false); - } - - @Override - public P> p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P> p() { - closeAttrs(); - return p_(this, false); - } - - @Override - public BODY _(Class cls) { - _v(cls); - return this; - } - - @Override - public HR> hr() { - closeAttrs(); - return hr_(this, false); - } - - @Override - public BODY hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL> dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL> dl() { - closeAttrs(); - return dl_(this, false); - } - - @Override - public DIV> div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV> div() { - closeAttrs(); - return div_(this, false); - } - - @Override - public BLOCKQUOTE> blockquote() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE> bq() { - closeAttrs(); - return blockquote_(this, false); - } - - @Override - public BODY h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1> h1() { - closeAttrs(); - return h1_(this, false); - } - - @Override - public BODY h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public BODY h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2> h2() { - closeAttrs(); - return h2_(this, false); - } - - @Override - public BODY h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3> h3() { - closeAttrs(); - return h3_(this, false); - } - - @Override - public BODY h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public BODY h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4> h4() { - closeAttrs(); - return h4_(this, false); - } - - @Override - public BODY h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public BODY h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5> h5() { - closeAttrs(); - return h5_(this, false); - } - - @Override - public BODY h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public BODY h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6> h6() { - closeAttrs(); - return h6_(this, false); - } - - @Override - public BODY h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public BODY h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL> ul() { - closeAttrs(); - return ul_(this, false); - } - - @Override - public UL> ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL> ol() { - closeAttrs(); - return ol_(this, false); - } - - @Override - public OL> ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE> pre() { - closeAttrs(); - return pre_(this, false); - } - - @Override - public PRE> pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM> form() { - closeAttrs(); - return form_(this, false); - } - - @Override - public FORM> form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET> fieldset() { - closeAttrs(); - return fieldset_(this, false); - } - - @Override - public FIELDSET> fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, false); - } - - @Override - public BODY script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, false); - } - - @Override - public BODY ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, false); - } - - @Override - public BODY del(String cdata) { - return del()._(cdata)._(); - } - } - - private TABLE table_(T e, boolean inline) { - return new TABLE("table", e, opt(true, inline, false)); } - - private ADDRESS address_(T e, boolean inline) { - return new ADDRESS("address", e, opt(true, inline, false)); } - - private P p_(T e, boolean inline) { - return new P("p", e, opt(false, inline, false)); } - - private HR hr_(T e, boolean inline) { - return new HR("hr", e, opt(false, inline, false)); } - - private DL dl_(T e, boolean inline) { - return new DL("dl", e, opt(true, inline, false)); } - - private DIV div_(T e, boolean inline) { - return new DIV("div", e, opt(true, inline, false)); } - - private BLOCKQUOTE blockquote_(T e, boolean inline) { - return new BLOCKQUOTE("blockquote", e, opt(true, inline, false)); } - - private BLOCKQUOTE bq_(T e, boolean inline) { - return new BLOCKQUOTE("blockquote", e, opt(true, inline, false)); } - - private FIELDSET fieldset_(T e, boolean inline) { - return new FIELDSET("fieldset", e, opt(true, inline, false)); } - - private FORM form_(T e, boolean inline) { - return new FORM("form", e, opt(true, inline, false)); } - - public class BR extends EImp implements HamletSpec.BR { - public BR(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BR $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public BR $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public BR $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public BR $style(String value) { - addAttr("style", value); - return this; - } - } - - public class BDO extends EImp implements HamletSpec.BDO { - public BDO(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public BDO $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public BDO $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public BDO $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public BDO $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public BDO $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public BDO $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public BDO _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public BDO _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public BDO b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public BDO b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public BDO i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public BDO i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public BDO small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public BDO small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public BDO em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public BDO em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public BDO strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public BDO strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public BDO dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public BDO dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public BDO code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public BDO code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public BDO samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public BDO samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public BDO kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public BDO kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public BDO var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public BDO var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public BDO cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public BDO cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public BDO abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public BDO abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public BDO a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public BDO a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public BDO img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public BDO sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public BDO sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public BDO sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public BDO sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public BDO q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public BDO q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public BDO br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public BDO bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public BDO span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public BDO span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public BDO script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public BDO ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public BDO del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public BDO label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public BDO textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public BDO button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class SPAN extends EImp implements HamletSpec.SPAN { - public SPAN(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SPAN $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SPAN $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SPAN $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SPAN $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SPAN $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SPAN $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SPAN $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SPAN $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SPAN $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SPAN $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SPAN $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SPAN $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SPAN $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SPAN $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SPAN $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SPAN $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SPAN _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public SPAN _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public SPAN b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public SPAN b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public SPAN i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public SPAN i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public SPAN small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public SPAN small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public SPAN em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public SPAN em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public SPAN strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public SPAN strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public SPAN dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public SPAN dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public SPAN code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public SPAN code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public SPAN samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public SPAN samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public SPAN kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public SPAN kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public SPAN var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public SPAN var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public SPAN cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public SPAN cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public SPAN abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public SPAN abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public SPAN a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public SPAN a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public SPAN img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public SPAN sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public SPAN sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public SPAN sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public SPAN sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public SPAN q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public SPAN q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public SPAN br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public SPAN bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public SPAN span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public SPAN span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public SPAN script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public SPAN ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public SPAN del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public SPAN label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public SPAN textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public SPAN button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class SUP extends EImp implements HamletSpec.SUP { - public SUP(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SUP $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SUP $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SUP $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SUP $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SUP $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SUP $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SUP $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SUP $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SUP $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SUP $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SUP $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SUP $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SUP $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SUP $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SUP $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SUP $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SUP _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public SUP _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public SUP b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public SUP b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public SUP i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public SUP i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public SUP small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public SUP small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public SUP em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public SUP em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public SUP strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public SUP strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public SUP dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public SUP dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public SUP code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public SUP code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public SUP samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public SUP samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public SUP kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public SUP kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public SUP var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public SUP var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public SUP cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public SUP cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public SUP abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public SUP abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public SUP a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public SUP a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public SUP img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public SUP sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public SUP sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public SUP sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public SUP sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public SUP q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public SUP q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public SUP br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public SUP bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public SUP span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public SUP span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public SUP script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public SUP ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public SUP del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public SUP label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public SUP textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public SUP button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class SUB extends EImp implements HamletSpec.SUB { - public SUB(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SUB $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SUB $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SUB $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SUB $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SUB $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SUB $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SUB $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SUB $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SUB $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SUB $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SUB $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SUB $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SUB $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SUB $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SUB $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SUB $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SUB _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public SUB _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public SUB b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public SUB b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public SUB i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public SUB i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public SUB small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public SUB small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public SUB em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public SUB em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public SUB strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public SUB strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public SUB dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public SUB dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public SUB code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public SUB code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public SUB samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public SUB samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public SUB kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public SUB kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public SUB var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public SUB var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public SUB cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public SUB cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public SUB abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public SUB abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public SUB a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public SUB a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public SUB img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public SUB sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public SUB sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public SUB sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public SUB sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public SUB q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public SUB q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public SUB br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public SUB bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public SUB span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public SUB span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public SUB script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public SUB ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public SUB del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public SUB label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public SUB textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public SUB button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class ACRONYM extends EImp implements HamletSpec.ACRONYM { - public ACRONYM(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public ACRONYM $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public ACRONYM $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public ACRONYM $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public ACRONYM $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public ACRONYM $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public ACRONYM $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public ACRONYM $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public ACRONYM $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public ACRONYM $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public ACRONYM $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public ACRONYM $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public ACRONYM $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public ACRONYM $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public ACRONYM $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public ACRONYM $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public ACRONYM $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public ACRONYM _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public ACRONYM _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public ACRONYM b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public ACRONYM b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public ACRONYM i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public ACRONYM i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public ACRONYM small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public ACRONYM small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public ACRONYM em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public ACRONYM em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public ACRONYM strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public ACRONYM strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public ACRONYM dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public ACRONYM dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public ACRONYM code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public ACRONYM code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public ACRONYM samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public ACRONYM samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public ACRONYM kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public ACRONYM kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public ACRONYM var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public ACRONYM var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public ACRONYM cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public ACRONYM cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public ACRONYM abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public ACRONYM abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public ACRONYM a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public ACRONYM a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public ACRONYM img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public ACRONYM sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public ACRONYM sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public ACRONYM sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public ACRONYM sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public ACRONYM q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public ACRONYM q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public ACRONYM br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public ACRONYM bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public ACRONYM span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public ACRONYM span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public ACRONYM script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public ACRONYM ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public ACRONYM del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public ACRONYM label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public ACRONYM textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public ACRONYM button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class ABBR extends EImp implements HamletSpec.ABBR { - public ABBR(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public ABBR $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public ABBR $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public ABBR $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public ABBR $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public ABBR $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public ABBR $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public ABBR $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public ABBR $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public ABBR $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public ABBR $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public ABBR $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public ABBR $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public ABBR $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public ABBR $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public ABBR $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public ABBR $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public ABBR _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public ABBR _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public ABBR b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public ABBR b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public ABBR i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public ABBR i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public ABBR small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public ABBR small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public ABBR em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public ABBR em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public ABBR strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public ABBR strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public ABBR dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public ABBR dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public ABBR code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public ABBR code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public ABBR samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public ABBR samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public ABBR kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public ABBR kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public ABBR var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public ABBR var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public ABBR cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public ABBR cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public ABBR abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public ABBR abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public ABBR a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public ABBR a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public ABBR img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public ABBR sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public ABBR sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public ABBR sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public ABBR sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public ABBR q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public ABBR q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public ABBR br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public ABBR bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public ABBR span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public ABBR span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public ABBR script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public ABBR ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public ABBR del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public ABBR label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public ABBR textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public ABBR button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class CITE extends EImp implements HamletSpec.CITE { - public CITE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public CITE $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public CITE $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public CITE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public CITE $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public CITE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public CITE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public CITE $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public CITE $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public CITE $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public CITE $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public CITE $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public CITE $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public CITE $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public CITE $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public CITE $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public CITE $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public CITE _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public CITE _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public CITE b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public CITE b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public CITE i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public CITE i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public CITE small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public CITE small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public CITE em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public CITE em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public CITE strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public CITE strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public CITE dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public CITE dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public CITE code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public CITE code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public CITE samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public CITE samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public CITE kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public CITE kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public CITE var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public CITE var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public CITE cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public CITE cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public CITE abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public CITE abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public CITE a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public CITE a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public CITE img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public CITE sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public CITE sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public CITE sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public CITE sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public CITE q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public CITE q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public CITE br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public CITE bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public CITE span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public CITE span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public CITE script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public CITE ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public CITE del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public CITE label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public CITE textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public CITE button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class VAR extends EImp implements HamletSpec.VAR { - public VAR(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public VAR $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public VAR $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public VAR $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public VAR $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public VAR $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public VAR $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public VAR $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public VAR $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public VAR $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public VAR $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public VAR $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public VAR $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public VAR $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public VAR $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public VAR $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public VAR $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public VAR _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public VAR _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public VAR b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public VAR b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public VAR i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public VAR i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public VAR small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public VAR small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public VAR em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public VAR em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public VAR strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public VAR strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public VAR dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public VAR dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public VAR code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public VAR code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public VAR samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public VAR samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public VAR kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public VAR kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public VAR var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public VAR var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public VAR cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public VAR cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public VAR abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public VAR abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public VAR a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public VAR a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public VAR img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public VAR sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public VAR sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public VAR sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public VAR sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public VAR q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public VAR q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public VAR br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public VAR bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public VAR span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public VAR span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public VAR script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public VAR ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public VAR del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public VAR label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public VAR textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public VAR button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class KBD extends EImp implements HamletSpec.KBD { - public KBD(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public KBD $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public KBD $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public KBD $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public KBD $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public KBD $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public KBD $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public KBD $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public KBD $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public KBD $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public KBD $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public KBD $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public KBD $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public KBD $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public KBD $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public KBD $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public KBD $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public KBD _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public KBD _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public KBD b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public KBD b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public KBD i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public KBD i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public KBD small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public KBD small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public KBD em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public KBD em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public KBD strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public KBD strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public KBD dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public KBD dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public KBD code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public KBD code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public KBD samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public KBD samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public KBD kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public KBD kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public KBD var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public KBD var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public KBD cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public KBD cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public KBD abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public KBD abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public KBD a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public KBD a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public KBD img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public KBD sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public KBD sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public KBD sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public KBD sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public KBD q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public KBD q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public KBD br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public KBD bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public KBD span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public KBD span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public KBD script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public KBD ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public KBD del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public KBD label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public KBD textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public KBD button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class SAMP extends EImp implements HamletSpec.SAMP { - public SAMP(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SAMP $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SAMP $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SAMP $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SAMP $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SAMP $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SAMP $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SAMP $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SAMP $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SAMP $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SAMP $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SAMP $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SAMP $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SAMP $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SAMP $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SAMP $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SAMP $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SAMP _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public SAMP _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public SAMP b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public SAMP b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public SAMP i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public SAMP i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public SAMP small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public SAMP small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public SAMP em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public SAMP em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public SAMP strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public SAMP strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public SAMP dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public SAMP dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public SAMP code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public SAMP code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public SAMP samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public SAMP samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public SAMP kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public SAMP kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public SAMP var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public SAMP var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public SAMP cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public SAMP cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public SAMP abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public SAMP abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public SAMP a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public SAMP a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public SAMP img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public SAMP sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public SAMP sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public SAMP sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public SAMP sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public SAMP q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public SAMP q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public SAMP br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public SAMP bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public SAMP span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public SAMP span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public SAMP script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public SAMP ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public SAMP del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public SAMP label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public SAMP textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public SAMP button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class CODE extends EImp implements HamletSpec.CODE { - public CODE(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public CODE $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public CODE $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public CODE $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public CODE $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public CODE $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public CODE $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public CODE $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public CODE $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public CODE $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public CODE $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public CODE $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public CODE $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public CODE $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public CODE $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public CODE $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public CODE $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public CODE _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public CODE _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public CODE b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public CODE b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public CODE i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public CODE i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public CODE small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public CODE small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public CODE em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public CODE em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public CODE strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public CODE strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public CODE dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public CODE dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public CODE code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public CODE code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public CODE samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public CODE samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public CODE kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public CODE kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public CODE var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public CODE var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public CODE cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public CODE cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public CODE abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public CODE abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public CODE a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public CODE a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public CODE img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public CODE sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public CODE sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public CODE sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public CODE sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public CODE q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public CODE q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public CODE br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public CODE bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public CODE span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public CODE span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public CODE script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public CODE ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public CODE del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public CODE label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public CODE textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public CODE button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class DFN extends EImp implements HamletSpec.DFN { - public DFN(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public DFN $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public DFN $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public DFN $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public DFN $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public DFN $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public DFN $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public DFN $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public DFN $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public DFN $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public DFN $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public DFN $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public DFN $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public DFN $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public DFN $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public DFN $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public DFN $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public DFN _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public DFN _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public DFN b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public DFN b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public DFN i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public DFN i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public DFN small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public DFN small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public DFN em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public DFN em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public DFN strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public DFN strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public DFN dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public DFN dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public DFN code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public DFN code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public DFN samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public DFN samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public DFN kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public DFN kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public DFN var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public DFN var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public DFN cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public DFN cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public DFN abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public DFN abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public DFN a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public DFN a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public DFN img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public DFN sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public DFN sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public DFN sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public DFN sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public DFN q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public DFN q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public DFN br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public DFN bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public DFN span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public DFN span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public DFN script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public DFN ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public DFN del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public DFN label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public DFN textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public DFN button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class STRONG extends EImp implements HamletSpec.STRONG { - public STRONG(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public STRONG $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public STRONG $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public STRONG $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public STRONG $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public STRONG $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public STRONG $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public STRONG $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public STRONG $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public STRONG $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public STRONG $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public STRONG $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public STRONG $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public STRONG $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public STRONG $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public STRONG $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public STRONG $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public STRONG _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public STRONG _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public STRONG b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public STRONG b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public STRONG i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public STRONG i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public STRONG small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public STRONG small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public STRONG em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public STRONG em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public STRONG strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public STRONG strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public STRONG dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public STRONG dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public STRONG code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public STRONG code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public STRONG samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public STRONG samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public STRONG kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public STRONG kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public STRONG var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public STRONG var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public STRONG cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public STRONG cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public STRONG abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public STRONG abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public STRONG a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public STRONG a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public STRONG img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public STRONG sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public STRONG sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public STRONG sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public STRONG sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public STRONG q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public STRONG q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public STRONG br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public STRONG bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public STRONG span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public STRONG span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public STRONG script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public STRONG ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public STRONG del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public STRONG label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public STRONG textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public STRONG button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class EM extends EImp implements HamletSpec.EM { - public EM(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public EM $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public EM $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public EM $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public EM $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public EM $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public EM $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public EM $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public EM $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public EM $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public EM $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public EM $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public EM $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public EM $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public EM $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public EM $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public EM $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public EM _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public EM _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public EM b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public EM b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public EM i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public EM i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public EM small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public EM small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public EM em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public EM em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public EM strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public EM strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public EM dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public EM dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public EM code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public EM code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public EM samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public EM samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public EM kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public EM kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public EM var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public EM var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public EM cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public EM cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public EM abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public EM abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public EM a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public EM a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public EM img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public EM sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public EM sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public EM sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public EM sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public EM q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public EM q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public EM br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public EM bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public EM span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public EM span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public EM script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public EM ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public EM del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public EM label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public EM textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public EM button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class SMALL extends EImp implements HamletSpec.SMALL { - public SMALL(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public SMALL $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public SMALL $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public SMALL $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public SMALL $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public SMALL $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public SMALL $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public SMALL $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public SMALL $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public SMALL $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public SMALL $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public SMALL $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public SMALL $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public SMALL $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public SMALL $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public SMALL $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public SMALL $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public SMALL _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public SMALL _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public SMALL b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public SMALL b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public SMALL i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public SMALL i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public SMALL small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public SMALL small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public SMALL em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public SMALL em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public SMALL strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public SMALL strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public SMALL dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public SMALL dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public SMALL code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public SMALL code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public SMALL samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public SMALL samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public SMALL kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public SMALL kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public SMALL var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public SMALL var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public SMALL cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public SMALL cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public SMALL abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public SMALL abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public SMALL a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public SMALL a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public SMALL img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public SMALL sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public SMALL sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public SMALL sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public SMALL sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public SMALL q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public SMALL q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public SMALL br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public SMALL bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public SMALL span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public SMALL span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public SMALL script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public SMALL ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public SMALL del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public SMALL label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public SMALL textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public SMALL button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class B extends EImp implements HamletSpec.B { - public B(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public B $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public B $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public B $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public B $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public B $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public B $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public B $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public B $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public B $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public B $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public B $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public B $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public B $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public B $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public B $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public B $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public B _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public B _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public B b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public B b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public B i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public B i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public B small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public B small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public B em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public B em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public B strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public B strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public B dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public B dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public B code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public B code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public B samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public B samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public B kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public B kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public B var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public B var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public B cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public B cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public B abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public B abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public B a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public B a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public B img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public B sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public B sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public B sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public B sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public B q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public B q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public B br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public B bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public B span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public B span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public B script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public B ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public B del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public B label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public B textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public B button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - public class I extends EImp implements HamletSpec.I { - public I(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - @Override - public I $id(String value) { - addAttr("id", value); - return this; - } - - @Override - public I $class(String value) { - addAttr("class", value); - return this; - } - - @Override - public I $title(String value) { - addAttr("title", value); - return this; - } - - @Override - public I $style(String value) { - addAttr("style", value); - return this; - } - - @Override - public I $lang(String value) { - addAttr("lang", value); - return this; - } - - @Override - public I $dir(Dir value) { - addAttr("dir", value); - return this; - } - - @Override - public I $onclick(String value) { - addAttr("onclick", value); - return this; - } - - @Override - public I $ondblclick(String value) { - addAttr("ondblclick", value); - return this; - } - - @Override - public I $onmousedown(String value) { - addAttr("onmousedown", value); - return this; - } - - @Override - public I $onmouseup(String value) { - addAttr("onmouseup", value); - return this; - } - - @Override - public I $onmouseover(String value) { - addAttr("onmouseover", value); - return this; - } - - @Override - public I $onmousemove(String value) { - addAttr("onmousemove", value); - return this; - } - - @Override - public I $onmouseout(String value) { - addAttr("onmouseout", value); - return this; - } - - @Override - public I $onkeypress(String value) { - addAttr("onkeypress", value); - return this; - } - - @Override - public I $onkeydown(String value) { - addAttr("onkeydown", value); - return this; - } - - @Override - public I $onkeyup(String value) { - addAttr("onkeyup", value); - return this; - } - - @Override - public I _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public I _r(Object... lines) { - _p(false, lines); - return this; - } - - @Override - public B> b() { - closeAttrs(); - return b_(this, true); - } - - @Override - public I b(String cdata) { - return b()._(cdata)._(); - } - - @Override - public I b(String selector, String cdata) { - return setSelector(b(), selector)._(cdata)._(); - } - - @Override - public I> i() { - closeAttrs(); - return i_(this, true); - } - - @Override - public I i(String cdata) { - return i()._(cdata)._(); - } - - @Override - public I i(String selector, String cdata) { - return setSelector(i(), selector)._(cdata)._(); - } - - @Override - public SMALL> small() { - closeAttrs(); - return small_(this, true); - } - - @Override - public I small(String cdata) { - return small()._(cdata)._(); - } - - @Override - public I small(String selector, String cdata) { - return setSelector(small(), selector)._(cdata)._(); - } - - @Override - public I em(String cdata) { - return em()._(cdata)._(); - } - - @Override - public EM> em() { - closeAttrs(); - return em_(this, true); - } - - @Override - public I em(String selector, String cdata) { - return setSelector(em(), selector)._(cdata)._(); - } - - @Override - public STRONG> strong() { - closeAttrs(); - return strong_(this, true); - } - - @Override - public I strong(String cdata) { - return strong()._(cdata)._(); - } - - @Override - public I strong(String selector, String cdata) { - return setSelector(strong(), selector)._(cdata)._(); - } - - @Override - public DFN> dfn() { - closeAttrs(); - return dfn_(this, true); - } - - @Override - public I dfn(String cdata) { - return dfn()._(cdata)._(); - } - - @Override - public I dfn(String selector, String cdata) { - return setSelector(dfn(), selector)._(cdata)._(); - } - - @Override - public CODE> code() { - closeAttrs(); - return code_(this, true); - } - - @Override - public I code(String cdata) { - return code()._(cdata)._(); - } - - @Override - public I code(String selector, String cdata) { - return setSelector(code(), selector)._(cdata)._(); - } - - @Override - public I samp(String cdata) { - return samp()._(cdata)._(); - } - - @Override - public SAMP> samp() { - closeAttrs(); - return samp_(this, true); - } - - @Override - public I samp(String selector, String cdata) { - return setSelector(samp(), selector)._(cdata)._(); - } - - @Override - public KBD> kbd() { - closeAttrs(); - return kbd_(this, true); - } - - @Override - public I kbd(String cdata) { - return kbd()._(cdata)._(); - } - - @Override - public I kbd(String selector, String cdata) { - return setSelector(kbd(), selector)._(cdata)._(); - } - - @Override - public VAR> var() { - closeAttrs(); - return var_(this, true); - } - - @Override - public I var(String cdata) { - return var()._(cdata)._(); - } - - @Override - public I var(String selector, String cdata) { - return setSelector(var(), selector)._(cdata)._(); - } - - @Override - public CITE> cite() { - closeAttrs(); - return cite_(this, true); - } - - @Override - public I cite(String cdata) { - return cite()._(cdata)._(); - } - - @Override - public I cite(String selector, String cdata) { - return setSelector(cite(), selector)._(cdata)._(); - } - - @Override - public ABBR> abbr() { - closeAttrs(); - return abbr_(this, true); - } - - @Override - public I abbr(String cdata) { - return abbr()._(cdata)._(); - } - - @Override - public I abbr(String selector, String cdata) { - return setSelector(abbr(), selector)._(cdata)._(); - } - - @Override - public A> a() { - closeAttrs(); - return a_(this, true); - } - - @Override - public A> a(String selector) { - return setSelector(a(), selector); - } - - @Override - public I a(String href, String anchorText) { - return a().$href(href)._(anchorText)._(); - } - - @Override - public I a(String selector, String href, String anchorText) { - return setSelector(a(), selector).$href(href)._(anchorText)._(); - } - - @Override - public IMG> img() { - closeAttrs(); - return img_(this, true); - } - - @Override - public I img(String src) { - return img().$src(src)._(); - } - - @Override - public OBJECT> object() { - closeAttrs(); - return object_(this, true); - } - - @Override - public OBJECT> object(String selector) { - return setSelector(object(), selector); - } - - @Override - public SUB> sub() { - closeAttrs(); - return sub_(this, true); - } - - @Override - public I sub(String cdata) { - return sub()._(cdata)._(); - } - - @Override - public I sub(String selector, String cdata) { - return setSelector(sub(), selector)._(cdata)._(); - } - - @Override - public SUP> sup() { - closeAttrs(); - return sup_(this, true); - } - - @Override - public I sup(String cdata) { - return sup()._(cdata)._(); - } - - @Override - public I sup(String selector, String cdata) { - return setSelector(sup(), selector)._(cdata)._(); - } - - @Override - public MAP> map() { - closeAttrs(); - return map_(this, true); - } - - @Override - public MAP> map(String selector) { - return setSelector(map(), selector); - } - - @Override - public I q(String cdata) { - return q()._(cdata)._(); - } - - @Override - public I q(String selector, String cdata) { - return setSelector(q(), selector)._(cdata)._(); - } - - @Override - public Q> q() { - closeAttrs(); - return q_(this, true); - } - - @Override - public BR> br() { - closeAttrs(); - return br_(this, true); - } - - @Override - public I br(String selector) { - return setSelector(br(), selector)._(); - } - - @Override - public BDO> bdo() { - closeAttrs(); - return bdo_(this, true); - } - - @Override - public I bdo(Dir dir, String cdata) { - return bdo().$dir(dir)._(cdata)._(); - } - - @Override - public SPAN> span() { - closeAttrs(); - return span_(this, true); - } - - @Override - public I span(String cdata) { - return span()._(cdata)._(); - } - - @Override - public I span(String selector, String cdata) { - return setSelector(span(), selector)._(cdata)._(); - } - - @Override - public SCRIPT> script() { - closeAttrs(); - return script_(this, true); - } - - @Override - public I script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public INS> ins() { - closeAttrs(); - return ins_(this, true); - } - - @Override - public I ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL> del() { - closeAttrs(); - return del_(this, true); - } - - @Override - public I del(String cdata) { - return del()._(cdata)._(); - } - - @Override - public LABEL> label() { - closeAttrs(); - return label_(this, true); - } - - @Override - public I label(String forId, String cdata) { - return label().$for(forId)._(cdata)._(); - } - - @Override - public INPUT> input(String selector) { - return setSelector(input(), selector); - } - - @Override - public INPUT> input() { - closeAttrs(); - return input_(this, true); - } - - @Override - public SELECT> select() { - closeAttrs(); - return select_(this, true); - } - - @Override - public SELECT> select(String selector) { - return setSelector(select(), selector); - } - - @Override - public TEXTAREA> textarea(String selector) { - return setSelector(textarea(), selector); - } - - @Override - public TEXTAREA> textarea() { - closeAttrs(); - return textarea_(this, true); - } - - @Override - public I textarea(String selector, String cdata) { - return setSelector(textarea(), selector)._(cdata)._(); - } - - @Override - public BUTTON> button() { - closeAttrs(); - return button_(this, true); - } - - @Override - public BUTTON> button(String selector) { - return setSelector(button(), selector); - } - - @Override - public I button(String selector, String cdata) { - return setSelector(button(), selector)._(cdata)._(); - } - } - - private INPUT input_(T e, boolean inline) { - return new INPUT("input", e, opt(false, inline, false)); } - - private SELECT select_(T e, boolean inline) { - return new SELECT("select", e, opt(true, inline, false)); } - - private TEXTAREA textarea_(T e, boolean inline) { - return new TEXTAREA("textarea", e, opt(true, inline, false)); } - - private BUTTON button_(T e, boolean inline) { - return new BUTTON("button", e, opt(true, inline, false)); } - - private LABEL label_(T e, boolean inline) { - return new LABEL("label", e, opt(true, inline, false)); } - - private MAP map_(T e, boolean inline) { - return new MAP("map", e, opt(true, inline, false)); } - - private Q q_(T e, boolean inline) { - return new Q("q", e, opt(true, inline, false)); } - - private BR br_(T e, boolean inline) { - return new BR("br", e, opt(false, inline, false)); } - - private BDO bdo_(T e, boolean inline) { - return new BDO("bdo", e, opt(true, inline, false)); } - - private SPAN span_(T e, boolean inline) { - return new SPAN("span", e, opt(true, inline, false)); } - - private INS ins_(T e, boolean inline) { - return new INS("ins", e, opt(true, inline, false)); } - - private DEL del_(T e, boolean inline) { - return new DEL("del", e, opt(true, inline, false)); } - - private A a_(T e, boolean inline) { - return new A("a", e, opt(true, inline, false)); } - - private SUB sub_(T e, boolean inline) { - return new SUB("sub", e, opt(true, inline, false)); } - - private SUP sup_(T e, boolean inline) { - return new SUP("sup", e, opt(true, inline, false)); } - - private IMG img_(T e, boolean inline) { - return new IMG("img", e, opt(false, inline, false)); } - - private EM em_(T e, boolean inline) { - return new EM("em", e, opt(true, inline, false)); } - - private STRONG strong_(T e, boolean inline) { - return new STRONG("strong", e, opt(true, inline, false)); } - - private DFN dfn_(T e, boolean inline) { - return new DFN("dfn", e, opt(true, inline, false)); } - - private CODE code_(T e, boolean inline) { - return new CODE("code", e, opt(true, inline, false)); } - - private SAMP samp_(T e, boolean inline) { - return new SAMP("samp", e, opt(true, inline, false)); } - - private KBD kbd_(T e, boolean inline) { - return new KBD("kbd", e, opt(true, inline, false)); } - - private VAR var_(T e, boolean inline) { - return new VAR("var", e, opt(true, inline, false)); } - - private CITE cite_(T e, boolean inline) { - return new CITE("cite", e, opt(true, inline, false)); } - - private ABBR abbr_(T e, boolean inline) { - return new ABBR("abbr", e, opt(true, inline, false)); } - - private B b_(T e, boolean inline) { - return new B("b", e, opt(true, inline, false)); } - - private I i_(T e, boolean inline) { - return new I("i", e, opt(true, inline, false)); } - - private SMALL small_(T e, boolean inline) { - return new SMALL("small", e, opt(true, inline, false)); } - - private PRE pre_(T e, boolean inline) { - return new PRE("pre", e, opt(true, inline, true)); } - - private UL ul_(T e, boolean inline) { - return new UL("ul", e, opt(true, inline, false)); } - - private OL ol_(T e, boolean inline) { - return new OL("ol", e, opt(true, inline, false)); } - - private H1 h1_(T e, boolean inline) { - return new H1("h1", e, opt(true, inline, false)); } - - private H2 h2_(T e, boolean inline) { - return new H2("h2", e, opt(true, inline, false)); } - - private H3 h3_(T e, boolean inline) { - return new H3("h3", e, opt(true, inline, false)); } - - private H4 h4_(T e, boolean inline) { - return new H4("h4", e, opt(true, inline, false)); } - - private H5 h5_(T e, boolean inline) { - return new H5("h5", e, opt(true, inline, false)); } - - private H6 h6_(T e, boolean inline) { - return new H6("h6", e, opt(true, inline, false)); } - - private STYLE style_(T e, boolean inline) { - return new STYLE("style", e, opt(true, inline, false)); } - - private LINK link_(T e, boolean inline) { - return new LINK("link", e, opt(false, inline, false)); } - - private META meta_(T e, boolean inline) { - return new META("meta", e, opt(false, inline, false)); } - - private OBJECT object_(T e, boolean inline) { - return new OBJECT("object", e, opt(true, inline, false)); } - - private SCRIPT script_(T e, boolean inline) { - return new SCRIPT("script", e, opt(true, inline, false)); } - - @Override - public HEAD head() { - return head_(this, false); - } - - @Override - public BODY body() { - return body_(this, false); - } - - @Override - public BODY body(String selector) { - return setSelector(body(), selector); - } - - @Override - public BASE base() { - return base_(this, false); - } - - @Override - public Hamlet base(String href) { - return base().$href(href)._(); - } - - @Override - public TITLE title() { - return title_(this, false); - } - - @Override - public Hamlet title(String cdata) { - return title()._(cdata)._(); - } - - @Override - public STYLE style() { - return style_(this, false); - } - - @Override - public Hamlet style(Object... lines) { - return style().$type("text/css")._(lines)._(); - } - - @Override - public LINK link() { - return link_(this, false); - } - - @Override - public Hamlet link(String href) { - return setLinkHref(link(), href)._(); - } - - @Override - public META meta() { - return meta_(this, false); - } - - @Override - public Hamlet meta(String name, String content) { - return meta().$name(name).$content(content)._(); - } - - @Override - public Hamlet meta_http(String header, String content) { - return meta().$http_equiv(header).$content(content)._(); - } - - @Override - public SCRIPT script() { - return script_(this, false); - } - - @Override - public Hamlet script(String src) { - return setScriptSrc(script(), src)._(); - } - - @Override - public OBJECT object() { - return object_(this, true); - } - - @Override - public OBJECT object(String selector) { - return setSelector(object(), selector); - } - - @Override - public TABLE table() { - return table_(this, false); - } - - @Override - public TABLE table(String selector) { - return setSelector(table(), selector); - } - - @Override - public Hamlet address(String cdata) { - return address()._(cdata)._(); - } - - @Override - public ADDRESS address() { - return address_(this, false); - } - - @Override - public P p(String selector) { - return setSelector(p(), selector); - } - - @Override - public P p() { - return p_(this, false); - } - - @Override - public Hamlet _(Class cls) { - subView(cls); - return this; - } - - @Override - public HR hr() { - return hr_(this, false); - } - - @Override - public Hamlet hr(String selector) { - return setSelector(hr(), selector)._(); - } - - @Override - public DL dl(String selector) { - return setSelector(dl(), selector); - } - - @Override - public DL dl() { - return dl_(this, false); - } - - @Override - public DIV div(String selector) { - return setSelector(div(), selector); - } - - @Override - public DIV div() { - return div_(this, false); - } - - @Override - public BLOCKQUOTE blockquote() { - return blockquote_(this, false); - } - - @Override - public BLOCKQUOTE bq() { - return blockquote_(this, false); - } - - @Override - public Hamlet h1(String cdata) { - return h1()._(cdata)._(); - } - - @Override - public H1 h1() { - return h1_(this, false); - } - - @Override - public Hamlet h1(String selector, String cdata) { - return setSelector(h1(), selector)._(cdata)._(); - } - - @Override - public Hamlet h2(String cdata) { - return h2()._(cdata)._(); - } - - @Override - public H2 h2() { - return h2_(this, false); - } - - @Override - public Hamlet h2(String selector, String cdata) { - return setSelector(h2(), selector)._(cdata)._(); - } - - @Override - public H3 h3() { - return h3_(this, false); - } - - @Override - public Hamlet h3(String cdata) { - return h3()._(cdata)._(); - } - - @Override - public Hamlet h3(String selector, String cdata) { - return setSelector(h3(), selector)._(cdata)._(); - } - - @Override - public H4 h4() { - return h4_(this, false); - } - - @Override - public Hamlet h4(String cdata) { - return h4()._(cdata)._(); - } - - @Override - public Hamlet h4(String selector, String cdata) { - return setSelector(h4(), selector)._(cdata)._(); - } - - @Override - public H5 h5() { - return h5_(this, false); - } - - @Override - public Hamlet h5(String cdata) { - return h5()._(cdata)._(); - } - - @Override - public Hamlet h5(String selector, String cdata) { - return setSelector(h5(), selector)._(cdata)._(); - } - - @Override - public H6 h6() { - return h6_(this, false); - } - - @Override - public Hamlet h6(String cdata) { - return h6()._(cdata)._(); - } - - @Override - public Hamlet h6(String selector, String cdata) { - return setSelector(h6(), selector)._(cdata)._(); - } - - @Override - public UL ul() { - return ul_(this, false); - } - - @Override - public UL ul(String selector) { - return setSelector(ul(), selector); - } - - @Override - public OL ol() { - return ol_(this, false); - } - - @Override - public OL ol(String selector) { - return setSelector(ol(), selector); - } - - @Override - public PRE pre() { - return pre_(this, false); - } - - @Override - public PRE pre(String selector) { - return setSelector(pre(), selector); - } - - @Override - public FORM form() { - return form_(this, false); - } - - @Override - public FORM form(String selector) { - return setSelector(form(), selector); - } - - @Override - public FIELDSET fieldset() { - return fieldset_(this, false); - } - - @Override - public FIELDSET fieldset(String selector) { - return setSelector(fieldset(), selector); - } - - @Override - public INS ins() { - return ins_(this, false); - } - - @Override - public Hamlet ins(String cdata) { - return ins()._(cdata)._(); - } - - @Override - public DEL del() { - return del_(this, false); - } - - @Override - public Hamlet del(String cdata) { - return del()._(cdata)._(); - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletGen.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletGen.java deleted file mode 100644 index 83373ef8ca..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletGen.java +++ /dev/null @@ -1,451 +0,0 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; - -import org.apache.hadoop.thirdparty.com.google.common.collect.Sets; - -import java.io.IOException; -import java.io.PrintWriter; -import java.lang.annotation.Annotation; -import java.lang.reflect.Method; -import java.lang.reflect.ParameterizedType; -import java.lang.reflect.Type; -import java.util.Set; -import java.util.regex.Pattern; - -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.GnuParser; -import org.apache.commons.cli.HelpFormatter; -import org.apache.commons.cli.Options; -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.util.StringUtils; -import org.apache.hadoop.yarn.webapp.WebAppException; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Generates a specific hamlet implementation class from a spec class - * using a generic hamlet implementation class. - * @deprecated Use org.apache.hadoop.yarn.webapp.hamlet2 package instead. - */ -@Deprecated -@InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"}) -public class HamletGen { - static final Logger LOG = LoggerFactory.getLogger(HamletGen.class); - static final Options opts = new Options(); - static { - opts.addOption("h", "help", false, "Print this help message"). - addOption("s", "spec-class", true, - "The class that holds the spec interfaces. e.g. HamletSpec"). - addOption("i", "impl-class", true, - "An implementation class. e.g. HamletImpl"). - addOption("o", "output-class", true, "Output class name"). - addOption("p", "output-package", true, "Output package name"); - }; - - static final Pattern elementRegex = Pattern.compile("^[A-Z][A-Z0-9]*$"); - - int bytes = 0; - PrintWriter out; - final Set endTagOptional = Sets.newHashSet(); - final Set inlineElements = Sets.newHashSet(); - Class top; // html top-level interface - String hamlet; // output class simple name; - boolean topMode; - - /** - * Generate a specific Hamlet implementation from a spec. - * @param specClass holds hamlet interfaces. e.g. {@link HamletSpec} - * @param implClass a generic hamlet implementation. e.g. {@link HamletImpl} - * @param outputName name of the output class. e.g. {@link Hamlet} - * @param outputPkg package name of the output class. - * @throws IOException - */ - public void generate(Class specClass, Class implClass, - String outputName, String outputPkg) throws IOException { - LOG.info("Generating {} using {} and {}", new Object[]{outputName, - specClass, implClass}); - out = new PrintWriter(outputName +".java", "UTF-8"); - hamlet = basename(outputName); - String pkg = pkgName(outputPkg, implClass.getPackage().getName()); - puts(0, "// Generated by HamletGen. Do NOT edit!\n", - "package ", pkg, ";\n", - "import java.io.PrintWriter;\n", - "import java.util.EnumSet;\n", - "import static java.util.EnumSet.*;\n", - "import static ", implClass.getName(), ".EOpt.*;\n", - "import org.apache.hadoop.yarn.webapp.SubView;"); - String implClassName = implClass.getSimpleName(); - if (!implClass.getPackage().getName().equals(pkg)) { - puts(0, "import ", implClass.getName(), ';'); - } - puts(0, "\n", - "public class ", hamlet, " extends ", implClassName, - " implements ", specClass.getSimpleName(), "._Html {\n", - " public ", hamlet, "(PrintWriter out, int nestLevel,", - " boolean wasInline) {\n", - " super(out, nestLevel, wasInline);\n", - " }\n\n", // inline is context sensitive - " static EnumSet opt(boolean endTag, boolean inline, ", - "boolean pre) {\n", - " EnumSet opts = of(ENDTAG);\n", - " if (!endTag) opts.remove(ENDTAG);\n", - " if (inline) opts.add(INLINE);\n", - " if (pre) opts.add(PRE);\n", - " return opts;\n", - " }"); - initLut(specClass); - genImpl(specClass, implClassName, 1); - LOG.info("Generating {} methods", hamlet); - genMethods(hamlet, top, 1); - puts(0, "}"); - out.close(); - LOG.info("Wrote {} bytes to {}.java", bytes, outputName); - } - - String basename(String path) { - return path.substring(path.lastIndexOf('/') + 1); - } - - String pkgName(String pkg, String defaultPkg) { - if (pkg == null || pkg.isEmpty()) return defaultPkg; - return pkg; - } - - void initLut(Class spec) { - endTagOptional.clear(); - inlineElements.clear(); - for (Class cls : spec.getClasses()) { - Annotation a = cls.getAnnotation(HamletSpec.Element.class); - if (a != null && !((HamletSpec.Element) a).endTag()) { - endTagOptional.add(cls.getSimpleName()); - } - if (cls.getSimpleName().equals("Inline")) { - for (Method method : cls.getMethods()) { - String retName = method.getReturnType().getSimpleName(); - if (isElement(retName)) { - inlineElements.add(retName); - } - } - } - } - } - - void genImpl(Class spec, String implClassName, int indent) { - String specName = spec.getSimpleName(); - for (Class cls : spec.getClasses()) { - String className = cls.getSimpleName(); - if (cls.isInterface()) { - genFactoryMethods(cls, indent); - } - if (isElement(className)) { - LOG.info("Generating class {}", className); - puts(indent, "\n", - "public class ", className, "", - " extends EImp implements ", specName, ".", className, " {\n", - " public ", className, "(String name, T parent,", - " EnumSet opts) {\n", - " super(name, parent, opts);\n", - " }"); - genMethods(className, cls, indent + 1); - puts(indent, "}"); - } else if (className.equals("_Html")) { - top = cls; - } - } - } - - void genFactoryMethods(Class cls, int indent) { - for (Method method : cls.getDeclaredMethods()) { - String retName = method.getReturnType().getSimpleName(); - String methodName = method.getName(); - if (methodName.charAt(0) == '$') continue; - if (isElement(retName) && method.getParameterTypes().length == 0) { - genFactoryMethod(retName, methodName, indent); - } - } - } - - void genMethods(String className, Class cls, int indent) { - topMode = (top != null && cls.equals(top)); - for (Method method : cls.getMethods()) { - String retName = method.getReturnType().getSimpleName(); - if (method.getName().charAt(0) == '$') { - genAttributeMethod(className, method, indent); - } else if (isElement(retName)) { - genNewElementMethod(className, method, indent); - } else { - genCurElementMethod(className, method, indent); - } - } - } - - void genAttributeMethod(String className, Method method, int indent) { - String methodName = method.getName(); - String attrName = methodName.substring(1).replace('_', '-'); - Type[] params = method.getGenericParameterTypes(); - echo(indent, "\n", - "@Override\n", - "public ", className, topMode ? " " : " ", methodName, "("); - if (params.length == 0) { - puts(0, ") {"); - puts(indent, - " addAttr(\"", attrName, "\", null);\n", - " return this;\n", "}"); - } else if (params.length == 1) { - String typeName = getTypeName(params[0]); - puts(0, typeName, " value) {"); - if (typeName.equals("EnumSet")) { - puts(indent, - " addRelAttr(\"", attrName, "\", value);\n", - " return this;\n", "}"); - } else if (typeName.equals("EnumSet")) { - puts(indent, - " addMediaAttr(\"", attrName, "\", value);\n", - " return this;\n", "}"); - } else { - puts(indent, - " addAttr(\"", attrName, "\", value);\n", - " return this;\n", "}"); - } - } else { - throwUnhandled(className, method); - } - } - - String getTypeName(Type type) { - if (type instanceof Class) { - return ((Class)type).getSimpleName(); - } - ParameterizedType pt = (ParameterizedType) type; - return ((Class)pt.getRawType()).getSimpleName() +"<"+ - ((Class)pt.getActualTypeArguments()[0]).getSimpleName() +">"; - } - - void genFactoryMethod(String retName, String methodName, int indent) { - puts(indent, "\n", - "private ", retName, " ", methodName, - "_(T e, boolean inline) {\n", - " return new ", retName, "(\"", StringUtils.toLowerCase(retName), - "\", e, opt(", !endTagOptional.contains(retName), ", inline, ", - retName.equals("PRE"), ")); }"); - } - - void genNewElementMethod(String className, Method method, int indent) { - String methodName = method.getName(); - String retName = method.getReturnType().getSimpleName(); - Class[] params = method.getParameterTypes(); - echo(indent, "\n", - "@Override\n", - "public ", retName, "<", className, topMode ? "> " : "> ", - methodName, "("); - if (params.length == 0) { - puts(0, ") {"); - puts(indent, - topMode ? "" : " closeAttrs();\n", - " return ", StringUtils.toLowerCase(retName), "_" + "(this, ", - isInline(className, retName), ");\n", "}"); - } else if (params.length == 1) { - puts(0, "String selector) {"); - puts(indent, - " return setSelector(", methodName, "(), selector);\n", "}"); - } else { - throwUnhandled(className, method); - } - } - - boolean isInline(String container, String className) { - if ((container.equals("BODY") || container.equals(hamlet) || - container.equals("HEAD") || container.equals("HTML")) && - (className.equals("INS") || className.equals("DEL") || - className.equals("SCRIPT"))) { - return false; - } - return inlineElements.contains(className); - } - - void genCurElementMethod(String className, Method method, int indent) { - String methodName = method.getName(); - Class[] params = method.getParameterTypes(); - if (topMode || params.length > 0) { - echo(indent, "\n", - "@Override\n", - "public ", className, topMode ? " " : " ", methodName, "("); - } - if (params.length == 0) { - if (topMode) { - puts(0, ") {"); - puts(indent, " return this;\n", "}"); - } - } else if (params.length == 1) { - if (methodName.equals("base")) { - puts(0, "String href) {"); - puts(indent, - " return base().$href(href)._();\n", "}"); - } else if (methodName.equals("script")) { - puts(0, "String src) {"); - puts(indent, - " return setScriptSrc(script(), src)._();\n", "}"); - } else if (methodName.equals("style")) { - puts(0, "Object... lines) {"); - puts(indent, - " return style().$type(\"text/css\")._(lines)._();\n", "}"); - } else if (methodName.equals("img")) { - puts(0, "String src) {"); - puts(indent, - " return ", methodName, "().$src(src)._();\n", "}"); - } else if (methodName.equals("br") || methodName.equals("hr") || - methodName.equals("col")) { - puts(0, "String selector) {"); - puts(indent, - " return setSelector(", methodName, "(), selector)._();\n", "}"); - } else if (methodName.equals("link")) { - puts(0, "String href) {"); - puts(indent, - " return setLinkHref(", methodName, "(), href)._();\n", "}"); - } else if (methodName.equals("_")) { - if (params[0].getSimpleName().equals("Class")) { - puts(0, "Class cls) {"); - puts(indent, - " ", topMode ? "subView" : "_v", "(cls);\n", - " return this;\n", "}"); - } else { - puts(0, "Object... lines) {"); - puts(indent, - " _p(", needsEscaping(className), ", lines);\n", - " return this;\n", "}"); - } - } else if (methodName.equals("_r")) { - puts(0, "Object... lines) {"); - puts(indent, - " _p(false, lines);\n", - " return this;\n", "}"); - } else { - puts(0, "String cdata) {"); - puts(indent, - " return ", methodName, "()._(cdata)._();\n", "}"); - } - } else if (params.length == 2) { - if (methodName.equals("meta")) { - puts(0, "String name, String content) {"); - puts(indent, - " return meta().$name(name).$content(content)._();\n", "}"); - } else if (methodName.equals("meta_http")) { - puts(0, "String header, String content) {"); - puts(indent, - " return meta().$http_equiv(header).$content(content)._();\n", - "}"); - } else if (methodName.equals("a")) { - puts(0, "String href, String anchorText) {"); - puts(indent, - " return a().$href(href)._(anchorText)._();\n", "}"); - } else if (methodName.equals("bdo")) { - puts(0, "Dir dir, String cdata) {"); - puts(indent, " return bdo().$dir(dir)._(cdata)._();\n", "}"); - } else if (methodName.equals("label")) { - puts(0, "String forId, String cdata) {"); - puts(indent, " return label().$for(forId)._(cdata)._();\n", "}"); - } else if (methodName.equals("param")) { - puts(0, "String name, String value) {"); - puts(indent, - " return param().$name(name).$value(value)._();\n", "}"); - } else { - puts(0, "String selector, String cdata) {"); - puts(indent, - " return setSelector(", methodName, - "(), selector)._(cdata)._();\n", "}"); - } - } else if (params.length == 3) { - if (methodName.equals("a")) { - puts(0, "String selector, String href, String anchorText) {"); - puts(indent, - " return setSelector(a(), selector)", - ".$href(href)._(anchorText)._();\n", "}"); - } - } else { - throwUnhandled(className, method); - } - } - - static boolean needsEscaping(String eleName) { - return !eleName.equals("SCRIPT") && !eleName.equals("STYLE"); - } - - static void throwUnhandled(String className, Method method) { - throw new WebAppException("Unhandled " + className + "#" + method); - } - - void echo(int indent, Object... args) { - String prev = null; - for (Object o : args) { - String s = String.valueOf(o); - if (!s.isEmpty() && !s.equals("\n") && - (prev == null || prev.endsWith("\n"))) { - indent(indent); - } - prev = s; - out.print(s); - bytes += s.length(); - } - } - - void indent(int indent) { - for (int i = 0; i < indent; ++i) { - out.print(" "); - bytes += 2; - } - } - - void puts(int indent, Object... args) { - echo(indent, args); - out.println(); - ++bytes; - } - - boolean isElement(String s) { - return elementRegex.matcher(s).matches(); - } - - public static void main(String[] args) throws Exception { - CommandLine cmd = new GnuParser().parse(opts, args); - if (cmd.hasOption("help")) { - new HelpFormatter().printHelp("Usage: hbgen [OPTIONS]", opts); - return; - } - // defaults - Class specClass = HamletSpec.class; - Class implClass = HamletImpl.class; - String outputClass = "HamletTmp"; - String outputPackage = implClass.getPackage().getName(); - if (cmd.hasOption("spec-class")) { - specClass = Class.forName(cmd.getOptionValue("spec-class")); - } - if (cmd.hasOption("impl-class")) { - implClass = Class.forName(cmd.getOptionValue("impl-class")); - } - if (cmd.hasOption("output-class")) { - outputClass = cmd.getOptionValue("output-class"); - } - if (cmd.hasOption("output-package")) { - outputPackage = cmd.getOptionValue("output-package"); - } - new HamletGen().generate(specClass, implClass, outputClass, outputPackage); - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletImpl.java deleted file mode 100644 index 375fb6045d..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletImpl.java +++ /dev/null @@ -1,387 +0,0 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; - -import org.apache.hadoop.thirdparty.com.google.common.base.Joiner; -import static org.apache.hadoop.thirdparty.com.google.common.base.Preconditions.*; -import org.apache.hadoop.thirdparty.com.google.common.base.Splitter; -import org.apache.hadoop.thirdparty.com.google.common.collect.Iterables; - -import java.io.PrintWriter; -import java.util.EnumSet; -import static java.util.EnumSet.*; -import java.util.Iterator; - -import static org.apache.commons.text.StringEscapeUtils.*; -import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.*; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.yarn.webapp.SubView; -import org.apache.hadoop.yarn.webapp.WebAppException; - - -/** - * A simple unbuffered generic hamlet implementation. - * - * Zero copy but allocation on every element, which could be - * optimized to use a thread-local element pool. - * - * Prints HTML as it builds. So the order is important. - * @deprecated Use org.apache.hadoop.yarn.webapp.hamlet2 package instead. - */ -@Deprecated -@InterfaceAudience.Private -public class HamletImpl extends HamletSpec { - private static final String INDENT_CHARS = " "; - private static final Splitter SS = Splitter.on('.'). - omitEmptyStrings().trimResults(); - private static final Joiner SJ = Joiner.on(' '); - private static final Joiner CJ = Joiner.on(", "); - static final int S_ID = 0; - static final int S_CLASS = 1; - - int nestLevel; - int indents; // number of indent() called. mostly for testing. - private final PrintWriter out; - private final StringBuilder sb = new StringBuilder(); // not shared - private boolean wasInline = false; - - /** - * Element options. (whether it needs end tag, is inline etc.) - */ - public enum EOpt { - /** needs end(close) tag */ - ENDTAG, - /** The content is inline */ - INLINE, - /** The content is preformatted */ - PRE - }; - - /** - * The base class for elements - * @param type of the parent (containing) element for the element - */ - public class EImp implements _Child { - private final String name; - private final T parent; // short cut for parent element - private final EnumSet opts; // element options - - private boolean started = false; - private boolean attrsClosed = false; - - EImp(String name, T parent, EnumSet opts) { - this.name = name; - this.parent = parent; - this.opts = opts; - } - - @Override - public T _() { - closeAttrs(); - --nestLevel; - printEndTag(name, opts); - return parent; - } - - protected void _p(boolean quote, Object... args) { - closeAttrs(); - for (Object s : args) { - if (!opts.contains(PRE)) { - indent(opts); - } - out.print(quote ? escapeHtml4(String.valueOf(s)) - : String.valueOf(s)); - if (!opts.contains(INLINE) && !opts.contains(PRE)) { - out.println(); - } - } - } - - protected void _v(Class cls) { - closeAttrs(); - subView(cls); - } - - protected void closeAttrs() { - if (!attrsClosed) { - startIfNeeded(); - ++nestLevel; - out.print('>'); - if (!opts.contains(INLINE) && !opts.contains(PRE)) { - out.println(); - } - attrsClosed = true; - } - } - - protected void addAttr(String name, String value) { - checkState(!attrsClosed, "attribute added after content"); - startIfNeeded(); - printAttr(name, value); - } - - protected void addAttr(String name, Object value) { - addAttr(name, String.valueOf(value)); - } - - protected void addMediaAttr(String name, EnumSet media) { - // 6.13 comma-separated list - addAttr(name, CJ.join(media)); - } - - protected void addRelAttr(String name, EnumSet types) { - // 6.12 space-separated list - addAttr(name, SJ.join(types)); - } - - private void startIfNeeded() { - if (!started) { - printStartTag(name, opts); - started = true; - } - } - - protected void _inline(boolean choice) { - if (choice) { - opts.add(INLINE); - } else { - opts.remove(INLINE); - } - } - - protected void _endTag(boolean choice) { - if (choice) { - opts.add(ENDTAG); - } else { - opts.remove(ENDTAG); - } - } - - protected void _pre(boolean choice) { - if (choice) { - opts.add(PRE); - } else { - opts.remove(PRE); - } - } - } - - public class Generic extends EImp implements PCData { - Generic(String name, T parent, EnumSet opts) { - super(name, parent, opts); - } - - public Generic _inline() { - super._inline(true); - return this; - } - - public Generic _noEndTag() { - super._endTag(false); - return this; - } - - public Generic _pre() { - super._pre(true); - return this; - } - - public Generic _attr(String name, String value) { - addAttr(name, value); - return this; - } - - public Generic> _elem(String name, EnumSet opts) { - closeAttrs(); - return new Generic>(name, this, opts); - } - - public Generic> elem(String name) { - return _elem(name, of(ENDTAG)); - } - - @Override - public Generic _(Object... lines) { - _p(true, lines); - return this; - } - - @Override - public Generic _r(Object... lines) { - _p(false, lines); - return this; - } - } - - public HamletImpl(PrintWriter out, int nestLevel, boolean wasInline) { - this.out = out; - this.nestLevel = nestLevel; - this.wasInline = wasInline; - } - - public int nestLevel() { - return nestLevel; - } - - public boolean wasInline() { - return wasInline; - } - - public void setWasInline(boolean state) { - wasInline = state; - } - - public PrintWriter getWriter() { - return out; - } - - /** - * Create a root-level generic element. - * Mostly for testing purpose. - * @param type of the parent element - * @param name of the element - * @param opts {@link EOpt element options} - * @return the element - */ - public - Generic root(String name, EnumSet opts) { - return new Generic(name, null, opts); - } - - public Generic root(String name) { - return root(name, of(ENDTAG)); - } - - protected void printStartTag(String name, EnumSet opts) { - indent(opts); - sb.setLength(0); - out.print(sb.append('<').append(name).toString()); // for easier mock test - } - - protected void indent(EnumSet opts) { - if (opts.contains(INLINE) && wasInline) { - return; - } - if (wasInline) { - out.println(); - } - wasInline = opts.contains(INLINE) || opts.contains(PRE); - for (int i = 0; i < nestLevel; ++i) { - out.print(INDENT_CHARS); - } - ++indents; - } - - protected void printEndTag(String name, EnumSet opts) { - if (!opts.contains(ENDTAG)) { - return; - } - if (!opts.contains(PRE)) { - indent(opts); - } else { - wasInline = opts.contains(INLINE); - } - sb.setLength(0); - out.print(sb.append("').toString()); // ditto - if (!opts.contains(INLINE)) { - out.println(); - } - } - - protected void printAttr(String name, String value) { - sb.setLength(0); - sb.append(' ').append(name); - if (value != null) { - sb.append("=\"").append(escapeHtml4(value)).append("\""); - } - out.print(sb.toString()); - } - - /** - * Sub-classes should override this to do something interesting. - * @param cls the sub-view class - */ - protected void subView(Class cls) { - indent(of(ENDTAG)); // not an inline view - sb.setLength(0); - out.print(sb.append('[').append(cls.getName()).append(']').toString()); - out.println(); - } - - /** - * Parse selector into id and classes - * @param selector in the form of (#id)?(.class)* - * @return an two element array [id, "space-separated classes"]. - * Either element could be null. - * @throws WebAppException when both are null or syntax error. - */ - public static String[] parseSelector(String selector) { - String[] result = new String[]{null, null}; - Iterable rs = SS.split(selector); - Iterator it = rs.iterator(); - if (it.hasNext()) { - String maybeId = it.next(); - if (maybeId.charAt(0) == '#') { - result[S_ID] = maybeId.substring(1); - if (it.hasNext()) { - result[S_CLASS] = SJ.join(Iterables.skip(rs, 1)); - } - } else { - result[S_CLASS] = SJ.join(rs); - } - return result; - } - throw new WebAppException("Error parsing selector: "+ selector); - } - - /** - * Set id and/or class attributes for an element. - * @param type of the element - * @param e the element - * @param selector Haml form of "(#id)?(.class)*" - * @return the element - */ - public static E setSelector(E e, String selector) { - String[] res = parseSelector(selector); - if (res[S_ID] != null) { - e.$id(res[S_ID]); - } - if (res[S_CLASS] != null) { - e.$class(res[S_CLASS]); - } - return e; - } - - public static E setLinkHref(E e, String href) { - if (href.endsWith(".css")) { - e.$rel("stylesheet"); // required in html5 - } - e.$href(href); - return e; - } - - public static E setScriptSrc(E e, String src) { - if (src.endsWith(".js")) { - e.$type("text/javascript"); // required in html4 - } - e.$src(src); - return e; - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletSpec.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletSpec.java deleted file mode 100644 index e3bb6d1add..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/HamletSpec.java +++ /dev/null @@ -1,3103 +0,0 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; - -import java.lang.annotation.*; -import java.util.EnumSet; - -import org.apache.hadoop.classification.InterfaceAudience; -import org.apache.hadoop.yarn.webapp.SubView; - -/** - * HTML5 compatible HTML4 builder interfaces. - * - *

Generated from HTML 4.01 strict DTD and HTML5 diffs. - *
cf. http://www.w3.org/TR/html4/ - *
cf. http://www.w3.org/TR/html5-diff/ - *

The omitted attributes and elements (from the 4.01 DTD) - * are for HTML5 compatibility. - * - *

Note, the common argument selector uses the same syntax as Haml/Sass: - *

  selector ::= (#id)?(.class)*
- * cf. http://haml-lang.com/ - * - *

The naming convention used in this class is slightly different from - * normal classes. A CamelCase interface corresponds to an entity in the DTD. - * _CamelCase is for internal refactoring. An element builder interface is in - * UPPERCASE, corresponding to an element definition in the DTD. $lowercase is - * used as attribute builder methods to differentiate from element builder - * methods. - * @deprecated Use org.apache.hadoop.yarn.webapp.hamlet2 package instead. - */ -@Deprecated -@InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"}) -public class HamletSpec { - // The enum values are lowercase for better compression, - // while avoiding runtime conversion. - // cf. http://www.w3.org/Protocols/HTTP/Performance/Compression/HTMLCanon.html - // http://www.websiteoptimization.com/speed/tweak/lowercase/ - /** %Shape (case-insensitive) */ - public enum Shape { - /** - * rectangle - */ - rect, - /** - * circle - */ - circle, - /** - * polygon - */ - poly, - /** - * default - */ - Default - }; - - /** Values for the %18n dir attribute (case-insensitive) */ - public enum Dir { - /** - * left to right - */ - ltr, - /** - * right to left - */ - rtl - }; - - /** %MediaDesc (case-sensitive) */ - public enum Media { - /** - * computer screen - */ - screen, - /** - * teletype/terminal - */ - tty, - /** - * television - */ - tv, - /** - * projection - */ - projection, - /** - * mobile device - */ - handheld, - /** - * print media - */ - print, - /** - * braille - */ - braille, - /** - * aural - */ - aural, - /** - * suitable all media - */ - all - }; - - /** %LinkTypes (case-insensitive) */ - public enum LinkType { - /** - * - */ - alternate, - /** - * - */ - stylesheet, - /** - * - */ - start, - /** - * - */ - next, - /** - * - */ - prev, - /** - * - */ - contents, - /** - * - */ - index, - /** - * - */ - glossary, - /** - * - */ - copyright, - /** - * - */ - chapter, - /** - * - */ - section, - /** - * - */ - subsection, - /** - * - */ - appendix, - /** - * - */ - help, - /** - * - */ - bookmark - }; - - /** Values for form methods (case-insensitive) */ - public enum Method { - /** - * HTTP GET - */ - get, - /** - * HTTP POST - */ - post - }; - - /** %InputType (case-insensitive) */ - public enum InputType { - /** - * - */ - text, - /** - * - */ - password, - /** - * - */ - checkbox, - /** - * - */ - radio, - /** - * - */ - submit, - /** - * - */ - reset, - /** - * - */ - file, - /** - * - */ - hidden, - /** - * - */ - image, - /** - * - */ - button - }; - - /** Values for button types */ - public enum ButtonType { - /** - * - */ - button, - /** - * - */ - submit, - /** - * - */ - reset - }; - - /** %Scope (case-insensitive) */ - public enum Scope { - /** - * - */ - row, - /** - * - */ - col, - /** - * - */ - rowgroup, - /** - * - */ - colgroup - }; - - /** - * The element annotation for specifying element options other than - * attributes and allowed child elements - */ - @Target({ElementType.TYPE}) - @Retention(RetentionPolicy.RUNTIME) - public @interface Element { - /** - * Whether the start tag is required for the element. - * @return true if start tag is required - */ - boolean startTag() default true; - - /** - * Whether the end tag is required. - * @return true if end tag is required - */ - boolean endTag() default true; - } - - /** - * - */ - public interface _ {} - - /** - * - */ - public interface _Child extends _ { - /** - * Finish the current element. - * @return the parent element - */ - _ _(); - } - - /** - * - */ - public interface _Script { - /** - * Add a script element. - * @return a script element builder - */ - SCRIPT script(); - - /** - * Add a script element - * @param src uri of the script - * @return the current element builder - */ - _Script script(String src); - } - - /** - * - */ - public interface _Object { - /** - * Add an object element. - * @return an object element builder - */ - OBJECT object(); - - /** - * Add an object element. - * @param selector as #id.class etc. - * @return an object element builder - */ - OBJECT object(String selector); - } - - /** %head.misc */ - public interface HeadMisc extends _Script, _Object { - /** - * Add a style element. - * @return a style element builder - */ - STYLE style(); - - /** - * Add a css style element. - * @param lines content of the style sheet - * @return the current element builder - */ - HeadMisc style(Object... lines); - - /** - * Add a meta element. - * @return a meta element builder - */ - META meta(); - - /** - * Add a meta element. - * Shortcut of meta().$name(name).$content(content)._(); - * @param name of the meta element - * @param content of the meta element - * @return the current element builder - */ - HeadMisc meta(String name, String content); - - /** - * Add a meta element with http-equiv attribute. - * Shortcut of
- * meta().$http_equiv(header).$content(content)._(); - * @param header for the http-equiv attribute - * @param content of the header - * @return the current element builder - */ - HeadMisc meta_http(String header, String content); - - /** - * Add a link element. - * @return a link element builder - */ - LINK link(); - - /** - * Add a link element. - * Implementation should try to figure out type by the suffix of href. - * So link("style.css"); is a shortcut of - * link().$rel("stylesheet").$type("text/css").$href("style.css")._(); - * - * @param href of the link - * @return the current element builder - */ - HeadMisc link(String href); - } - - /** %heading */ - public interface Heading { - /** - * Add an H1 element. - * @return a new H1 element builder - */ - H1 h1(); - - /** - * Add a complete H1 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h1(String cdata); - - /** - * Add a complete H1 element - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h1(String selector, String cdata); - - /** - * Add an H2 element. - * @return a new H2 element builder - */ - H2 h2(); - - /** - * Add a complete H2 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h2(String cdata); - - /** - * Add a complete H1 element - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h2(String selector, String cdata); - - /** - * Add an H3 element. - * @return a new H3 element builder - */ - H3 h3(); - - /** - * Add a complete H3 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h3(String cdata); - - /** - * Add a complete H1 element - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h3(String selector, String cdata); - - /** - * Add an H4 element. - * @return a new H4 element builder - */ - H4 h4(); - - /** - * Add a complete H4 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h4(String cdata); - - /** - * Add a complete H4 element - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h4(String selector, String cdata); - - /** - * Add an H5 element. - * @return a new H5 element builder - */ - H5 h5(); - - /** - * Add a complete H5 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h5(String cdata); - - /** - * Add a complete H5 element - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h5(String selector, String cdata); - - /** - * Add an H6 element. - * @return a new H6 element builder - */ - H6 h6(); - - /** - * Add a complete H6 element. - * @param cdata the content of the element - * @return the current element builder - */ - Heading h6(String cdata); - - /** - * Add a complete H6 element. - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - Heading h6(String selector, String cdata); - } - - /** %list */ - public interface Listing { - - /** - * Add a UL (unordered list) element. - * @return a new UL element builder - */ - UL ul(); - - /** - * Add a UL (unordered list) element. - * @param selector the css selector in the form of (#id)?(.class)* - * @return a new UL element builder - */ - UL ul(String selector); - - /** - * Add a OL (ordered list) element. - * @return a new UL element builder - */ - OL ol(); - - /** - * Add a OL (ordered list) element. - * @param selector the css selector in the form of (#id)?(.class)* - * @return a new UL element builder - */ - OL ol(String selector); - } - - /** % preformatted */ - public interface Preformatted { - - /** - * Add a PRE (preformatted) element. - * @return a new PRE element builder - */ - PRE pre(); - - /** - * Add a PRE (preformatted) element. - * @param selector the css selector in the form of (#id)?(.class)* - * @return a new PRE element builder - */ - PRE pre(String selector); - } - - /** %coreattrs */ - public interface CoreAttrs { - /** document-wide unique id - * @param id the id - * @return the current element builder - */ - CoreAttrs $id(String id); - - /** space-separated list of classes - * @param cls the classes - * @return the current element builder - */ - CoreAttrs $class(String cls); - - /** associated style info - * @param style the style - * @return the current element builder - */ - CoreAttrs $style(String style); - - /** advisory title - * @param title the title - * @return the current element builder - */ - CoreAttrs $title(String title); - } - - /** %i18n */ - public interface I18nAttrs { - /** language code - * @param lang the code - * @return the current element builder - */ - I18nAttrs $lang(String lang); - - /** direction for weak/neutral text - * @param dir the {@link Dir} value - * @return the current element builder - */ - I18nAttrs $dir(Dir dir); - } - - /** %events */ - public interface EventsAttrs { - - /** a pointer button was clicked - * @param onclick the script - * @return the current element builder - */ - EventsAttrs $onclick(String onclick); - - /** a pointer button was double clicked - * @param ondblclick the script - * @return the current element builder - */ - EventsAttrs $ondblclick(String ondblclick); - - /** a pointer button was pressed down - * @param onmousedown the script - * @return the current element builder - */ - EventsAttrs $onmousedown(String onmousedown); - - /** a pointer button was released - * @param onmouseup the script - * @return the current element builder - */ - EventsAttrs $onmouseup(String onmouseup); - - /** a pointer was moved onto - * @param onmouseover the script - * @return the current element builder - */ - EventsAttrs $onmouseover(String onmouseover); - - /** a pointer was moved within - * @param onmousemove the script - * @return the current element builder - */ - EventsAttrs $onmousemove(String onmousemove); - - /** a pointer was moved away - * @param onmouseout the script - * @return the current element builder - */ - EventsAttrs $onmouseout(String onmouseout); - - /** a key was pressed and released - * @param onkeypress the script - * @return the current element builder - */ - EventsAttrs $onkeypress(String onkeypress); - - /** a key was pressed down - * @param onkeydown the script - * @return the current element builder - */ - EventsAttrs $onkeydown(String onkeydown); - - /** a key was released - * @param onkeyup the script - * @return the current element builder - */ - EventsAttrs $onkeyup(String onkeyup); - } - - /** %attrs */ - public interface Attrs extends CoreAttrs, I18nAttrs, EventsAttrs { - } - - /** Part of %pre.exclusion */ - public interface _FontSize extends _Child { - // BIG omitted cf. http://www.w3.org/TR/html5-diff/ - - /** - * Add a SMALL (small print) element - * @return a new SMALL element builder - */ - SMALL small(); - - /** - * Add a complete small (small print) element. - * Shortcut of: small()._(cdata)._(); - * @param cdata the content of the element - * @return the current element builder - */ - _FontSize small(String cdata); - - /** - * Add a complete small (small print) element. - * Shortcut of: small().$id(id).$class(class)._(cdata)._(); - * @param selector css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - _FontSize small(String selector, String cdata); - } - - /** %fontstyle -(%pre.exclusion) */ - public interface _FontStyle extends _Child { - // TT omitted - - /** - * Add an I (italic, alt voice/mood) element. - * @return the new I element builder - */ - I i(); - - /** - * Add a complete I (italic, alt voice/mood) element. - * @param cdata the content of the element - * @return the current element builder - */ - _FontStyle i(String cdata); - - /** - * Add a complete I (italic, alt voice/mood) element. - * @param selector the css selector in the form of (#id)?(.class)* - * @param cdata the content of the element - * @return the current element builder - */ - _FontStyle i(String selector, String cdata); - - /** - * Add a new B (bold/important) element. - * @return a new B element builder - */ - B b(); - - /** - * Add a complete B (bold/important) element. - * @param cdata the content - * @return the current element builder - */ - _FontStyle b(String cdata); - - /** - * Add a complete B (bold/important) element. - * @param selector the css select (#id)?(.class)* - * @param cdata the content - * @return the current element builder - */ - _FontStyle b(String selector, String cdata); - } - - /** %fontstyle */ - public interface FontStyle extends _FontStyle, _FontSize { - } - - /** %phrase */ - public interface Phrase extends _Child { - - /** - * Add an EM (emphasized) element. - * @return a new EM element builder - */ - EM em(); - - /** - * Add an EM (emphasized) element. - * @param cdata the content - * @return the current element builder - */ - Phrase em(String cdata); - - /** - * Add an EM (emphasized) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase em(String selector, String cdata); - - /** - * Add a STRONG (important) element. - * @return a new STRONG element builder - */ - STRONG strong(); - - /** - * Add a complete STRONG (important) element. - * @param cdata the content - * @return the current element builder - */ - Phrase strong(String cdata); - - /** - * Add a complete STRONG (important) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase strong(String selector, String cdata); - - /** - * Add a DFN element. - * @return a new DFN element builder - */ - DFN dfn(); - - /** - * Add a complete DFN element. - * @param cdata the content - * @return the current element builder - */ - Phrase dfn(String cdata); - - /** - * Add a complete DFN element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase dfn(String selector, String cdata); - - /** - * Add a CODE (code fragment) element. - * @return a new CODE element builder - */ - CODE code(); - - /** - * Add a complete CODE element. - * @param cdata the code - * @return the current element builder - */ - Phrase code(String cdata); - - /** - * Add a complete CODE element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the code - * @return the current element builder - */ - Phrase code(String selector, String cdata); - - /** - * Add a SAMP (sample) element. - * @return a new SAMP element builder - */ - SAMP samp(); - - /** - * Add a complete SAMP (sample) element. - * @param cdata the content - * @return the current element builder - */ - Phrase samp(String cdata); - - /** - * Add a complete SAMP (sample) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase samp(String selector, String cdata); - - /** - * Add a KBD (keyboard) element. - * @return a new KBD element builder - */ - KBD kbd(); - - /** - * Add a KBD (keyboard) element. - * @param cdata the content - * @return the current element builder - */ - Phrase kbd(String cdata); - - /** - * Add a KBD (keyboard) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase kbd(String selector, String cdata); - - /** - * Add a VAR (variable) element. - * @return a new VAR element builder - */ - VAR var(); - - /** - * Add a VAR (variable) element. - * @param cdata the content - * @return the current element builder - */ - Phrase var(String cdata); - - /** - * Add a VAR (variable) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase var(String selector, String cdata); - - /** - * Add a CITE element. - * @return a new CITE element builder - */ - CITE cite(); - - /** - * Add a CITE element. - * @param cdata the content - * @return the current element builder - */ - Phrase cite(String cdata); - - /** - * Add a CITE element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase cite(String selector, String cdata); - - /** - * Add an ABBR (abbreviation) element. - * @return a new ABBR element builder - */ - ABBR abbr(); - - /** - * Add a ABBR (abbreviation) element. - * @param cdata the content - * @return the current element builder - */ - Phrase abbr(String cdata); - - /** - * Add a ABBR (abbreviation) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - Phrase abbr(String selector, String cdata); - - // ACRONYM omitted, use ABBR - } - - /** Part of %pre.exclusion */ - public interface _ImgObject extends _Object, _Child { - - /** - * Add a IMG (image) element. - * @return a new IMG element builder - */ - IMG img(); - - /** - * Add a IMG (image) element. - * @param src the source URL of the image - * @return the current element builder - */ - _ImgObject img(String src); - } - - /** Part of %pre.exclusion */ - public interface _SubSup extends _Child { - - /** - * Add a SUB (subscript) element. - * @return a new SUB element builder - */ - SUB sub(); - - /** - * Add a complete SUB (subscript) element. - * @param cdata the content - * @return the current element builder - */ - _SubSup sub(String cdata); - - /** - * Add a complete SUB (subscript) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _SubSup sub(String selector, String cdata); - - /** - * Add a SUP (superscript) element. - * @return a new SUP element builder - */ - SUP sup(); - - /** - * Add a SUP (superscript) element. - * @param cdata the content - * @return the current element builder - */ - _SubSup sup(String cdata); - - /** - * Add a SUP (superscript) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _SubSup sup(String selector, String cdata); - } - - /** - * - */ - public interface _Anchor { - - /** - * Add a A (anchor) element. - * @return a new A element builder - */ - A a(); - - /** - * Add a A (anchor) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new A element builder - */ - A a(String selector); - - /** Shortcut for a().$href(href)._(anchorText)._(); - * @param href the URI - * @param anchorText for the URI - * @return the current element builder - */ - _Anchor a(String href, String anchorText); - - /** Shortcut for a(selector).$href(href)._(anchorText)._(); - * @param selector in the form of (#id)?(.class)* - * @param href the URI - * @param anchorText for the URI - * @return the current element builder - */ - _Anchor a(String selector, String href, String anchorText); - } - - /** - * INS and DEL are unusual for HTML - * "in that they may serve as either block-level or inline elements - * (but not both)". - *
cf. http://www.w3.org/TR/html4/struct/text.html#h-9.4 - *
cf. http://www.w3.org/TR/html5/edits.html#edits - */ - public interface _InsDel { - - /** - * Add an INS (insert) element. - * @return an INS element builder - */ - INS ins(); - - /** - * Add a complete INS element. - * @param cdata inserted data - * @return the current element builder - */ - _InsDel ins(String cdata); - - /** - * Add a DEL (delete) element. - * @return a DEL element builder - */ - DEL del(); - - /** - * Add a complete DEL element. - * @param cdata deleted data - * @return the current element builder - */ - _InsDel del(String cdata); - } - - /** %special -(A|%pre.exclusion) */ - public interface _Special extends _Script, _InsDel { - - /** - * Add a BR (line break) element. - * @return a new BR element builder - */ - BR br(); - - /** - * Add a BR (line break) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return the current element builder - */ - _Special br(String selector); - - /** - * Add a MAP element. - * @return a new MAP element builder - */ - MAP map(); - - /** - * Add a MAP element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new MAP element builder - */ - MAP map(String selector); - - /** - * Add a Q (inline quotation) element. - * @return a q (inline quotation) element builder - */ - Q q(); - - /** - * Add a complete Q element. - * @param cdata the content - * @return the current element builder - */ - _Special q(String cdata); - - /** - * Add a Q element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _Special q(String selector, String cdata); - - /** - * Add a SPAN element. - * @return a new SPAN element builder - */ - SPAN span(); - - /** - * Add a SPAN element. - * @param cdata the content - * @return the current element builder - */ - _Special span(String cdata); - - /** - * Add a SPAN element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _Special span(String selector, String cdata); - - /** - * Add a bdo (bidirectional override) element - * @return a bdo element builder - */ - BDO bdo(); - - /** - * Add a bdo (bidirectional override) element - * @param dir the direction of the text - * @param cdata the text - * @return the current element builder - */ - _Special bdo(Dir dir, String cdata); - } - - /** %special */ - public interface Special extends _Anchor, _ImgObject, _SubSup, _Special { - } - - /** - * - */ - public interface _Label extends _Child { - - /** - * Add a LABEL element. - * @return a new LABEL element builder - */ - LABEL label(); - - /** - * Add a LABEL element. - * Shortcut of label().$for(forId)._(cdata)._(); - * @param forId the for attribute - * @param cdata the content - * @return the current element builder - */ - _Label label(String forId, String cdata); - } - - /** - * - */ - public interface _FormCtrl { - - /** - * Add a INPUT element. - * @return a new INPUT element builder - */ - INPUT input(); - - /** - * Add a INPUT element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new INPUT element builder - */ - INPUT input(String selector); - - /** - * Add a SELECT element. - * @return a new SELECT element builder - */ - SELECT select(); - - /** - * Add a SELECT element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new SELECT element builder - */ - SELECT select(String selector); - - /** - * Add a TEXTAREA element. - * @return a new TEXTAREA element builder - */ - TEXTAREA textarea(); - - /** - * Add a TEXTAREA element. - * @param selector - * @return a new TEXTAREA element builder - */ - TEXTAREA textarea(String selector); - - /** - * Add a complete TEXTAREA element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _FormCtrl textarea(String selector, String cdata); - - /** - * Add a BUTTON element. - * @return a new BUTTON element builder - */ - BUTTON button(); - - /** - * Add a BUTTON element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new BUTTON element builder - */ - BUTTON button(String selector); - - /** - * Add a complete BUTTON element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _FormCtrl button(String selector, String cdata); - } - - /** %formctrl */ - public interface FormCtrl extends _Label, _FormCtrl { - } - - /** - * - */ - public interface _Content extends _Child { - /** - * Content of the element - * @param lines of content - * @return the current element builder - */ - _Content _(Object... lines); - } - - /** - * - */ - public interface _RawContent extends _Child { - /** - * Raw (no need to be HTML escaped) content - * @param lines of content - * @return the current element builder - */ - _RawContent _r(Object... lines); - } - - /** #PCDATA */ - public interface PCData extends _Content, _RawContent { - } - - /** %inline */ - public interface Inline extends PCData, FontStyle, Phrase, Special, FormCtrl { - } - - /** - * - */ - public interface I extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface B extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface SMALL extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface EM extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface STRONG extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface DFN extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface CODE extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface SAMP extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface KBD extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface VAR extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface CITE extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface ABBR extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface ACRONYM extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface SUB extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface SUP extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface SPAN extends Attrs, Inline, _Child { - } - - /** The dir attribute is required for the BDO element */ - public interface BDO extends CoreAttrs, I18nAttrs, Inline, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface BR extends CoreAttrs, _Child { - } - - /** - * - */ - public interface _Form { - - /** - * Add a FORM element. - * @return a new FORM element builder - */ - FORM form(); - - /** - * Add a FORM element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new FORM element builder - */ - FORM form(String selector); - } - - /** - * - */ - public interface _FieldSet { - - /** - * Add a FIELDSET element. - * @return a new FIELDSET element builder - */ - FIELDSET fieldset(); - - /** - * Add a FIELDSET element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new FIELDSET element builder - */ - FIELDSET fieldset(String selector); - } - - /** %block -(FORM|FIELDSET) */ - public interface _Block extends Heading, Listing, Preformatted { - - /** - * Add a P (paragraph) element. - * @return a new P element builder - */ - P p(); - - /** - * Add a P (paragraph) element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new P element builder - */ - P p(String selector); - - /** - * Add a DL (description list) element. - * @return a new DL element builder - */ - DL dl(); - - /** - * Add a DL element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new DL element builder - */ - DL dl(String selector); - - /** - * Add a DIV element. - * @return a new DIV element builder - */ - DIV div(); - - /** - * Add a DIV element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new DIV element builder - */ - DIV div(String selector); - - // NOSCRIPT omitted - // cf. http://www.w3.org/html/wg/tracker/issues/117 - - /** - * Add a BLOCKQUOTE element. - * @return a new BLOCKQUOTE element builder - */ - BLOCKQUOTE blockquote(); - - /** - * Alias of blockquote - * @return a new BLOCKQUOTE element builder - */ - BLOCKQUOTE bq(); - - /** - * Add a HR (horizontal rule) element. - * @return a new HR element builder - */ - HR hr(); - - /** - * Add a HR element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new HR element builder - */ - _Block hr(String selector); - - /** - * Add a TABLE element. - * @return a new TABLE element builder - */ - TABLE table(); - - /** - * Add a TABLE element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new TABLE element builder - */ - TABLE table(String selector); - - /** - * Add a ADDRESS element. - * @return a new ADDRESS element builder - */ - ADDRESS address(); - - /** - * Add a complete ADDRESS element. - * @param cdata the content - * @return the current element builder - */ - _Block address(String cdata); - - /** - * Embed a sub-view. - * @param cls the sub-view class - * @return the current element builder - */ - _Block _(Class cls); - } - - /** %block */ - public interface Block extends _Block, _Form, _FieldSet { - } - - /** %flow */ - public interface Flow extends Block, Inline { - } - - /** - * - */ - public interface _Body extends Block, _Script, _InsDel { - } - - /** - * - */ - public interface BODY extends Attrs, _Body, _Child { - - /** - * The document has been loaded. - * @param script to invoke - * @return the current element builder - */ - BODY $onload(String script); - - /** - * The document has been removed - * @param script to invoke - * @return the current element builder - */ - BODY $onunload(String script); - } - - /** - * - */ - public interface ADDRESS extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface DIV extends Attrs, Flow, _Child { - } - - /** - * - */ - public interface A extends Attrs, _Child, /* %inline -(A) */ - PCData, FontStyle, Phrase, _ImgObject, _Special, - _SubSup, FormCtrl { - // $charset omitted. - - /** advisory content type - * @param cdata the content-type - * @return the current element builder - */ - A $type(String cdata); - - // $name omitted. use id instead. - /** URI for linked resource - * @param uri the URI - * @return the current element builder - */ - A $href(String uri); - - /** language code - * @param cdata the code - * @return the current element builder - */ - A $hreflang(String cdata); - - /** forward link types - * @param linkTypes the types - * @return the current element builder - */ - A $rel(EnumSet linkTypes); - - /** - * forward link types - * @param linkTypes space-separated list of link types - * @return the current element builder. - */ - A $rel(String linkTypes); - - // $rev omitted. Instead of rev="made", use rel="author" - - /** accessibility key character - * @param cdata the key - * @return the current element builder - */ - A $accesskey(String cdata); - - // $shape and coords omitted. use area instead of a for image maps. - /** position in tabbing order - * @param index the index - * @return the current element builder - */ - A $tabindex(int index); - - /** the element got the focus - * @param script to invoke - * @return the current element builder - */ - A $onfocus(String script); - - /** the element lost the focus - * @param script to invoke - * @return the current element builder - */ - A $onblur(String script); - } - - /** - * - */ - public interface MAP extends Attrs, Block, _Child { - - /** - * Add a AREA element. - * @return a new AREA element builder - */ - AREA area(); - - /** - * Add a AREA element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new AREA element builder - */ - AREA area(String selector); - - /** for reference by usemap - * @param name of the map - * @return the current element builder - */ - MAP $name(String name); - } - - /** - * - */ - @Element(endTag=false) - public interface AREA extends Attrs, _Child { - - /** controls interpretation of coords - * @param shape of the area - * @return the current element builder - */ - AREA $shape(Shape shape); - - /** comma-separated list of lengths - * @param cdata coords of the area - * @return the current element builder - */ - AREA $coords(String cdata); - - /** URI for linked resource - * @param uri the URI - * @return the current element builder - */ - AREA $href(String uri); - - // $nohref omitted./ - /** short description - * @param desc the description - * @return the current element builder - */ - AREA $alt(String desc); - - /** position in tabbing order - * @param index of the order - * @return the current element builder - */ - AREA $tabindex(int index); - - /** accessibility key character - * @param cdata the key - * @return the current element builder - */ - AREA $accesskey(String cdata); - - /** the element got the focus - * @param script to invoke - * @return the current element builder - */ - AREA $onfocus(String script); - - /** the element lost the focus - * @param script to invoke - * @return the current element builder - */ - AREA $onblur(String script); - } - - /** - * - */ - @Element(endTag=false) - public interface LINK extends Attrs, _Child { - // $charset omitted - /** URI for linked resource - * @param uri the URI - * @return the current element builder - */ - LINK $href(String uri); - - /** language code - * @param cdata the code - * @return the current element builder - */ - LINK $hreflang(String cdata); - - /** advisory content type - * @param cdata the type - * @return the current element builder - */ - LINK $type(String cdata); - - /** forward link types - * @param linkTypes the types - * @return the current element builder - */ - LINK $rel(EnumSet linkTypes); - - /** - * forward link types. - * @param linkTypes space-separated link types - * @return the current element builder - */ - LINK $rel(String linkTypes); - - // $rev omitted. Instead of rev="made", use rel="author" - - /** for rendering on these media - * @param mediaTypes the media types - * @return the current element builder - */ - LINK $media(EnumSet mediaTypes); - - /** - * for rendering on these media. - * @param mediaTypes comma-separated list of media - * @return the current element builder - */ - LINK $media(String mediaTypes); - } - - /** - * - */ - @Element(endTag=false) - public interface IMG extends Attrs, _Child { - - /** URI of image to embed - * @param uri the URI - * @return the current element builder - */ - IMG $src(String uri); - - /** short description - * @param desc the description - * @return the current element builder - */ - IMG $alt(String desc); - - // $longdesc omitted. use instead - // $name omitted. use id instead. - - /** override height - * @param pixels the height - * @return the current element builder - */ - IMG $height(int pixels); - - /** - * override height - * @param cdata the height (can use %, * etc.) - * @return the current element builder - */ - IMG $height(String cdata); - - /** override width - * @param pixels the width - * @return the current element builder - */ - IMG $width(int pixels); - - /** - * override width - * @param cdata the width (can use %, * etc.) - * @return the current element builder - */ - IMG $width(String cdata); - - /** use client-side image map - * @param uri the URI - * @return the current element builder - */ - IMG $usemap(String uri); - - /** use server-side image map - * @return the current element builder - */ - IMG $ismap(); - } - - /** - * - */ - public interface _Param extends _Child { - - /** - * Add a PARAM (parameter) element. - * @return a new PARAM element builder - */ - PARAM param(); - - /** - * Add a PARAM element. - * Shortcut of param().$name(name).$value(value)._(); - * @param name of the value - * @param value the value - * @return the current element builder - */ - _Param param(String name, String value); - } - - /** - * - */ - public interface OBJECT extends Attrs, _Param, Flow, _Child { - // $declare omitted. repeat element completely - - // $archive, classid, codebase, codetype ommited. use data and type - - /** reference to object's data - * @param uri the URI - * @return the current element builder - */ - OBJECT $data(String uri); - - /** content type for data - * @param contentType the type - * @return the current element builder - */ - OBJECT $type(String contentType); - - // $standby omitted. fix the resource instead. - - /** override height - * @param pixels the height - * @return the current element builder - */ - OBJECT $height(int pixels); - - /** - * override height - * @param length the height (can use %, *) - * @return the current element builder - */ - OBJECT $height(String length); - - /** override width - * @param pixels the width - * @return the current element builder - */ - OBJECT $width(int pixels); - - /** - * override width - * @param length the height (can use %, *) - * @return the current element builder - */ - OBJECT $width(String length); - - /** use client-side image map - * @param uri the URI/name of the map - * @return the current element builder - */ - OBJECT $usemap(String uri); - - /** submit as part of form - * @param cdata the name of the object - * @return the current element builder - */ - OBJECT $name(String cdata); - - /** position in tabbing order - * @param index of the order - * @return the current element builder - */ - OBJECT $tabindex(int index); - } - - /** - * - */ - @Element(endTag=false) - public interface PARAM { - - /** document-wide unique id - * @param cdata the id - * @return the current element builder - */ - PARAM $id(String cdata); - - /** property name. Required. - * @param cdata the name - * @return the current element builder - */ - PARAM $name(String cdata); - - /** property value - * @param cdata the value - * @return the current element builder - */ - PARAM $value(String cdata); - - // $type and valuetype omitted - } - - /** - * - */ - @Element(endTag=false) - public interface HR extends Attrs, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface P extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H1 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H2 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H3 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H4 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H5 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface H6 extends Attrs, Inline, _Child { - } - - /** - * - */ - public interface PRE extends Attrs, _Child, /* (%inline;)* -(%pre.exclusion) */ - PCData, _FontStyle, Phrase, _Anchor, _Special, - FormCtrl { - } - - /** - * - */ - public interface Q extends Attrs, Inline, _Child { - - /** URI for source document or msg - * @param uri the URI - * @return the current element builder - */ - Q $cite(String uri); - } - - /** - * - */ - public interface BLOCKQUOTE extends Attrs, Block, _Script, _Child { - - /** URI for source document or msg - * @param uri the URI - * @return the current element builder - */ - BLOCKQUOTE $cite(String uri); - } - - /** - * @see _InsDel INS/DEL quirks. - */ - public interface INS extends Attrs, Flow, _Child { - /** info on reason for change - * @param uri - * @return the current element builder - */ - INS $cite(String uri); - - /** date and time of change - * @param datetime - * @return the current element builder - */ - INS $datetime(String datetime); - } - - /** - * @see _InsDel INS/DEL quirks. - */ - public interface DEL extends Attrs, Flow, _Child { - /** info on reason for change - * @param uri the info URI - * @return the current element builder - */ - DEL $cite(String uri); - - /** date and time of change - * @param datetime the time - * @return the current element builder - */ - DEL $datetime(String datetime); - } - - /** - * - */ - public interface _Dl extends _Child { - - /** - * Add a DT (term of the item) element. - * @return a new DT element builder - */ - DT dt(); - - /** - * Add a complete DT element. - * @param cdata the content - * @return the current element builder - */ - _Dl dt(String cdata); - - /** - * Add a DD (definition/description) element. - * @return a new DD element builder - */ - DD dd(); - - /** - * Add a complete DD element. - * @param cdata the content - * @return the current element builder - */ - _Dl dd(String cdata); - } - - /** - * - */ - public interface DL extends Attrs, _Dl, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface DT extends Attrs, Inline, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface DD extends Attrs, Flow, _Child { - } - - /** - * - */ - public interface _Li extends _Child { - - /** - * Add a LI (list item) element. - * @return a new LI element builder - */ - LI li(); - - /** - * Add a LI element. - * @param cdata the content - * @return the current element builder - */ - _Li li(String cdata); - } - - /** - * - */ - public interface OL extends Attrs, _Li, _Child { - } - - /** - * - */ - public interface UL extends Attrs, _Li, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface LI extends Attrs, Flow, _Child { - } - - /** - * - */ - public interface FORM extends Attrs, _Child, /* (%block;|SCRIPT)+ -(FORM) */ - _Script, _Block, _FieldSet { - /** server-side form handler - * @param uri - * @return the current element builder - */ - FORM $action(String uri); - - /** HTTP method used to submit the form - * @param method - * @return the current element builder - */ - FORM $method(Method method); - - /** - * contentype for "POST" method. - * The default is "application/x-www-form-urlencoded". - * Use "multipart/form-data" for input type=file - * @param enctype - * @return the current element builder - */ - FORM $enctype(String enctype); - - /** list of MIME types for file upload - * @param cdata - * @return the current element builder - */ - FORM $accept(String cdata); - - /** name of form for scripting - * @param cdata - * @return the current element builder - */ - FORM $name(String cdata); - - /** the form was submitted - * @param script - * @return the current element builder - */ - FORM $onsubmit(String script); - - /** the form was reset - * @param script - * @return the current element builder - */ - FORM $onreset(String script); - - /** (space and/or comma separated) list of supported charsets - * @param cdata - * @return the current element builder - */ - FORM $accept_charset(String cdata); - } - - /** - * - */ - public interface LABEL extends Attrs, _Child, /* (%inline;)* -(LABEL) */ - PCData, FontStyle, Phrase, Special, _FormCtrl { - /** matches field ID value - * @param cdata - * @return the current element builder - */ - LABEL $for(String cdata); - - /** accessibility key character - * @param cdata - * @return the current element builder - */ - LABEL $accesskey(String cdata); - - /** the element got the focus - * @param script - * @return the current element builder - */ - LABEL $onfocus(String script); - - /** the element lost the focus - * @param script - * @return the current element builder - */ - LABEL $onblur(String script); - } - - /** - * - */ - @Element(endTag=false) - public interface INPUT extends Attrs, _Child { - /** what kind of widget is needed. default is "text". - * @param inputType - * @return the current element builder - */ - INPUT $type(InputType inputType); - - /** submit as part of form - * @param cdata - * @return the current element builder - */ - INPUT $name(String cdata); - - /** Specify for radio buttons and checkboxes - * @param cdata - * @return the current element builder - */ - INPUT $value(String cdata); - - /** for radio buttons and check boxes - * @return the current element builder - */ - INPUT $checked(); - - /** unavailable in this context - * @return the current element builder - */ - INPUT $disabled(); - - /** for text and passwd - * @return the current element builder - */ - INPUT $readonly(); - - /** specific to each type of field - * @param cdata - * @return the current element builder - */ - INPUT $size(String cdata); - - /** max chars for text fields - * @param length - * @return the current element builder - */ - INPUT $maxlength(int length); - - /** for fields with images - * @param uri - * @return the current element builder - */ - INPUT $src(String uri); - - /** short description - * @param cdata - * @return the current element builder - */ - INPUT $alt(String cdata); - - // $usemap omitted. use img instead of input for image maps. - /** use server-side image map - * @return the current element builder - */ - INPUT $ismap(); - - /** position in tabbing order - * @param index - * @return the current element builder - */ - INPUT $tabindex(int index); - - /** accessibility key character - * @param cdata - * @return the current element builder - */ - INPUT $accesskey(String cdata); - - /** the element got the focus - * @param script - * @return the current element builder - */ - INPUT $onfocus(String script); - - /** the element lost the focus - * @param script - * @return the current element builder - */ - INPUT $onblur(String script); - - /** some text was selected - * @param script - * @return the current element builder - */ - INPUT $onselect(String script); - - /** the element value was changed - * @param script - * @return the current element builder - */ - INPUT $onchange(String script); - - /** list of MIME types for file upload (csv) - * @param contentTypes - * @return the current element builder - */ - INPUT $accept(String contentTypes); - } - - /** - * - */ - public interface _Option extends _Child { - /** - * Add a OPTION element. - * @return a new OPTION element builder - */ - OPTION option(); - - /** - * Add a complete OPTION element. - * @param cdata the content - * @return the current element builder - */ - _Option option(String cdata); - } - - /** - * - */ - public interface SELECT extends Attrs, _Option, _Child { - /** - * Add a OPTGROUP element. - * @return a new OPTGROUP element builder - */ - OPTGROUP optgroup(); - - /** field name - * @param cdata - * @return the current element builder - */ - SELECT $name(String cdata); - - /** rows visible - * @param rows - * @return the current element builder - */ - SELECT $size(int rows); - - /** default is single selection - * @return the current element builder - */ - SELECT $multiple(); - - /** unavailable in this context - * @return the current element builder - */ - SELECT $disabled(); - - /** position in tabbing order - * @param index - * @return the current element builder - */ - SELECT $tabindex(int index); - - /** the element got the focus - * @param script - * @return the current element builder - */ - SELECT $onfocus(String script); - - /** the element lost the focus - * @param script - * @return the current element builder - */ - SELECT $onblur(String script); - - /** the element value was changed - * @param script - * @return the current element builder - */ - SELECT $onchange(String script); - } - - /** - * - */ - public interface OPTGROUP extends Attrs, _Option, _Child { - /** unavailable in this context - * @return the current element builder - */ - OPTGROUP $disabled(); - - /** for use in hierarchical menus - * @param cdata - * @return the current element builder - */ - OPTGROUP $label(String cdata); - } - - /** - * - */ - @Element(endTag=false) - public interface OPTION extends Attrs, PCData, _Child { - /** currently selected option - * @return the current element builder - */ - OPTION $selected(); - - /** unavailable in this context - * @return the current element builder - */ - OPTION $disabled(); - - /** for use in hierarchical menus - * @param cdata - * @return the current element builder - */ - OPTION $label(String cdata); - - /** defaults to element content - * @param cdata - * @return the current element builder - */ - OPTION $value(String cdata); - } - - /** - * - */ - public interface TEXTAREA extends Attrs, PCData, _Child { - /** variable name for the text - * @param cdata - * @return the current element builder - */ - TEXTAREA $name(String cdata); - - /** visible rows - * @param rows - * @return the current element builder - */ - TEXTAREA $rows(int rows); - - /** visible columns - * @param cols - * @return the current element builder - */ - TEXTAREA $cols(int cols); - - /** unavailable in this context - * @return the current element builder - */ - TEXTAREA $disabled(); - - /** text is readonly - * @return the current element builder - */ - TEXTAREA $readonly(); - - /** position in tabbing order - * @param index - * @return the current element builder - */ - TEXTAREA $tabindex(int index); - - /** accessibility key character - * @param cdata - * @return the current element builder - */ - TEXTAREA $accesskey(String cdata); - - /** the element got the focus - * @param script - * @return the current element builder - */ - TEXTAREA $onfocus(String script); - - /** the element lost the focus - * @param script - * @return the current element builder - */ - TEXTAREA $onblur(String script); - - /** some text was selected - * @param script - * @return the current element builder - */ - TEXTAREA $onselect(String script); - - /** the element value was changed - * @param script - * @return the current element builder - */ - TEXTAREA $onchange(String script); - } - - /** - * - */ - public interface _Legend extends _Child { - /** - * Add a LEGEND element. - * @return a new LEGEND element builder - */ - LEGEND legend(); - - /** - * Add a LEGEND element. - * @param cdata - * @return the current element builder - */ - _Legend legend(String cdata); - } - - /** - * - */ - public interface FIELDSET extends Attrs, _Legend, PCData, Flow, _Child { - } - - /** - * - */ - public interface LEGEND extends Attrs, Inline, _Child { - /** accessibility key character - * @param cdata - * @return the current element builder - */ - LEGEND $accesskey(String cdata); - } - - /** - * - */ - public interface BUTTON extends /* (%flow;)* -(A|%formctrl|FORM|FIELDSET) */ - _Block, PCData, FontStyle, Phrase, _Special, _ImgObject, _SubSup, Attrs { - /** name of the value - * @param cdata - * @return the current element builder - */ - BUTTON $name(String cdata); - - /** sent to server when submitted - * @param cdata - * @return the current element builder - */ - BUTTON $value(String cdata); - - /** for use as form button - * @param type - * @return the current element builder - */ - BUTTON $type(ButtonType type); - - /** unavailable in this context - * @return the current element builder - */ - BUTTON $disabled(); - - /** position in tabbing order - * @param index - * @return the current element builder - */ - BUTTON $tabindex(int index); - - /** accessibility key character - * @param cdata - * @return the current element builder - */ - BUTTON $accesskey(String cdata); - - /** the element got the focus - * @param script - * @return the current element builder - */ - BUTTON $onfocus(String script); - - /** the element lost the focus - * @param script - * @return the current element builder - */ - BUTTON $onblur(String script); - } - - /** - * - */ - public interface _TableRow { - /** - * Add a TR (table row) element. - * @return a new TR element builder - */ - TR tr(); - - /** - * Add a TR element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new TR element builder - */ - TR tr(String selector); - } - - /** - * - */ - public interface _TableCol extends _Child { - /** - * Add a COL element. - * @return a new COL element builder - */ - COL col(); - - /** - * Add a COL element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return the current element builder - */ - _TableCol col(String selector); - } - - /** - * - */ - public interface _Table extends _TableRow, _TableCol { - /** - * Add a CAPTION element. - * @return a new CAPTION element builder - */ - CAPTION caption(); - - /** - * Add a CAPTION element. - * @param cdata - * @return the current element builder - */ - _Table caption(String cdata); - - /** - * Add a COLGROPU element. - * @return a new COLGROUP element builder - */ - COLGROUP colgroup(); - - /** - * Add a THEAD element. - * @return a new THEAD element builder - */ - THEAD thead(); - - /** - * Add a THEAD element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new THEAD element builder - */ - THEAD thead(String selector); - - /** - * Add a TFOOT element. - * @return a new TFOOT element builder - */ - TFOOT tfoot(); - - /** - * Add a TFOOT element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new TFOOT element builder - */ - TFOOT tfoot(String selector); - - /** - * Add a tbody (table body) element. - * Must be after thead/tfoot and no tr at the same level. - * @return a new tbody element builder - */ - TBODY tbody(); - - /** - * Add a TBODY element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new TBODY element builder - */ - TBODY tbody(String selector); - - // $summary, width, border, frame, rules, cellpadding, cellspacing omitted - // use css instead - } - /** - * TBODY should be used after THEAD/TFOOT, iff there're no TABLE.TR elements. - */ - public interface TABLE extends Attrs, _Table, _Child { - } - - /** - * - */ - public interface CAPTION extends Attrs, Inline, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface THEAD extends Attrs, _TableRow, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface TFOOT extends Attrs, _TableRow, _Child { - } - - /** - * - */ - public interface TBODY extends Attrs, _TableRow, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface COLGROUP extends Attrs, _TableCol, _Child { - /** default number of columns in group. default: 1 - * @param cols - * @return the current element builder - */ - COLGROUP $span(int cols); - - // $width omitted. use css instead. - } - - /** - * - */ - @Element(endTag=false) - public interface COL extends Attrs, _Child { - /** COL attributes affect N columns. default: 1 - * @param cols - * @return the current element builder - */ - COL $span(int cols); - // $width omitted. use css instead. - } - - /** - * - */ - public interface _Tr extends _Child { - /** - * Add a TH element. - * @return a new TH element builder - */ - TH th(); - - /** - * Add a complete TH element. - * @param cdata the content - * @return the current element builder - */ - _Tr th(String cdata); - - /** - * Add a TH element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _Tr th(String selector, String cdata); - - /** - * Add a TD element. - * @return a new TD element builder - */ - TD td(); - - /** - * Add a TD element. - * @param cdata the content - * @return the current element builder - */ - _Tr td(String cdata); - - /** - * Add a TD element. - * @param selector the css selector in the form of (#id)*(.class)* - * @param cdata the content - * @return the current element builder - */ - _Tr td(String selector, String cdata); - } - - /** - * - */ - @Element(endTag=false) - public interface TR extends Attrs, _Tr, _Child { - } - - /** - * - */ - public interface _Cell extends Attrs, Flow, _Child { - // $abbr omited. begin cell text with terse text instead. - // use $title for elaberation, when appropriate. - // $axis omitted. use scope. - /** space-separated list of id's for header cells - * @param cdata - * @return the current element builder - */ - _Cell $headers(String cdata); - - /** scope covered by header cells - * @param scope - * @return the current element builder - */ - _Cell $scope(Scope scope); - - /** number of rows spanned by cell. default: 1 - * @param rows - * @return the current element builder - */ - _Cell $rowspan(int rows); - - /** number of cols spanned by cell. default: 1 - * @param cols - * @return the current element builder - */ - _Cell $colspan(int cols); - } - - /** - * - */ - @Element(endTag=false) - public interface TH extends _Cell { - } - - /** - * - */ - @Element(endTag=false) - public interface TD extends _Cell { - } - - /** - * - */ - public interface _Head extends HeadMisc { - /** - * Add a TITLE element. - * @return a new TITLE element builder - */ - TITLE title(); - - /** - * Add a TITLE element. - * @param cdata the content - * @return the current element builder - */ - _Head title(String cdata); - - /** - * Add a BASE element. - * @return a new BASE element builder - */ - BASE base(); - - /** - * Add a complete BASE element. - * @param uri - * @return the current element builder - */ - _Head base(String uri); - } - - /** - * - */ - public interface HEAD extends I18nAttrs, _Head, _Child { - // $profile omitted - } - - /** - * - */ - public interface TITLE extends I18nAttrs, PCData, _Child { - } - - /** - * - */ - @Element(endTag=false) - public interface BASE extends _Child { - /** URI that acts as base URI - * @param uri - * @return the current element builder - */ - BASE $href(String uri); - } - - /** - * - */ - @Element(endTag=false) - public interface META extends I18nAttrs, _Child { - /** HTTP response header name - * @param header - * @return the current element builder - */ - META $http_equiv(String header); - - /** metainformation name - * @param name - * @return the current element builder - */ - META $name(String name); - - /** associated information - * @param cdata - * @return the current element builder - */ - META $content(String cdata); - - // $scheme omitted - } - - /** - * - */ - public interface STYLE extends I18nAttrs, _Content, _Child { - /** content type of style language - * @param cdata - * @return the current element builder - */ - STYLE $type(String cdata); - - /** designed for use with these media - * @param media - * @return the current element builder - */ - STYLE $media(EnumSet media); - - /** advisory title - * @param cdata - * @return the current element builder - */ - STYLE $title(String cdata); - } - - /** - * - */ - public interface SCRIPT extends _Content, _Child { - /** char encoding of linked resource - * @param cdata - * @return the current element builder - */ - SCRIPT $charset(String cdata); - - /** content type of script language - * @param cdata - * @return the current element builder - */ - SCRIPT $type(String cdata); - - /** URI for an external script - * @param cdata - * @return the current element builder - */ - SCRIPT $src(String cdata); - - /** UA may defer execution of script - * @param cdata - * @return the current element builder - */ - SCRIPT $defer(String cdata); - } - - /** - * - */ - public interface _Html extends _Head, _Body, _ { - /** - * Add a HEAD element. - * @return a new HEAD element builder - */ - HEAD head(); - - /** - * Add a BODY element. - * @return a new BODY element builder - */ - BODY body(); - - /** - * Add a BODY element. - * @param selector the css selector in the form of (#id)*(.class)* - * @return a new BODY element builder - */ - BODY body(String selector); - } - - // There is only one HEAD and BODY, in that order. - /** - * The root element - */ - public interface HTML extends I18nAttrs, _Html { - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/package-info.java deleted file mode 100644 index 4d0cf4950c..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/hamlet/package-info.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Deprecated. - * Use org.apache.hadoop.yarn.webapp.hamlet2 package instead. - */ -@Deprecated -@InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"}) -package org.apache.hadoop.yarn.webapp.hamlet; -import org.apache.hadoop.classification.InterfaceAudience; - diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestParseSelector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestParseSelector.java deleted file mode 100644 index 3b6de66eed..0000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestParseSelector.java +++ /dev/null @@ -1,57 +0,0 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; - -import org.junit.Test; -import static org.junit.Assert.*; - -import org.apache.hadoop.yarn.webapp.WebAppException; - -import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.*; - -public class TestParseSelector { - - @Test public void testNormal() { - String[] res = parseSelector("#id.class"); - assertEquals("id", res[S_ID]); - assertEquals("class", res[S_CLASS]); - } - - @Test public void testMultiClass() { - String[] res = parseSelector("#id.class1.class2"); - assertEquals("id", res[S_ID]); - assertEquals("class1 class2", res[S_CLASS]); - } - - @Test public void testMissingId() { - String[] res = parseSelector(".class"); - assertNull(res[S_ID]); - assertEquals("class", res[S_CLASS]); - } - - @Test public void testMissingClass() { - String[] res = parseSelector("#id"); - assertEquals("id", res[S_ID]); - assertNull(res[S_CLASS]); - } - - @Test(expected=WebAppException.class) public void testMissingAll() { - parseSelector(""); - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamlet.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamlet.java similarity index 65% rename from hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamlet.java rename to hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamlet.java index d9eaa37b3c..275b64cb79 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamlet.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamlet.java @@ -1,33 +1,31 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.yarn.webapp.hamlet2; import java.util.EnumSet; import java.io.PrintWriter; import org.junit.Test; -import static org.junit.Assert.*; -import static org.mockito.Mockito.*; import org.apache.hadoop.yarn.webapp.SubView; -import org.apache.hadoop.yarn.webapp.hamlet.Hamlet; -import static org.apache.hadoop.yarn.webapp.hamlet.HamletSpec.*; +import static org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec.*; +import static org.junit.Assert.assertEquals; +import static org.mockito.Mockito.*; public class TestHamlet { @@ -36,11 +34,11 @@ public class TestHamlet { title("test"). h1("heading 1"). p("#id.class"). - b("hello"). - em("world!")._(). + b("hello"). + em("world!").__(). div("#footer"). - _("Brought to you by"). - a("http://hostname/", "Somebody")._(); + __("Brought to you by"). + a("https://hostname/", "Somebody").__(); PrintWriter out = h.getWriter(); out.flush(); @@ -64,7 +62,7 @@ public class TestHamlet { verify(out).print(" id=\"footer\""); verify(out).print("Brought to you by"); verify(out).print(""); verify(out).print(""); @@ -79,9 +77,9 @@ public class TestHamlet { TABLE t = h.table("#id"); for (int i = 0; i < 3; ++i) { - t.tr().td("1").td("2")._(); + t.tr().td("1").td("2").__(); } - t._(); + t.__(); PrintWriter out = h.getWriter(); out.flush(); @@ -97,12 +95,12 @@ public class TestHamlet { meta_http("Content-type", "text/html; charset=utf-8"). title("test enum attrs"). link().$rel("stylesheet"). - $media(EnumSet.of(Media.screen, Media.print)). - $type("text/css").$href("style.css")._(). + $media(EnumSet.of(Media.screen, Media.print)). + $type("text/css").$href("style.css").__(). link().$rel(EnumSet.of(LinkType.index, LinkType.start)). - $href("index.html")._(); + $href("index.html").__(); - h.div("#content")._("content")._(); + h.div("#content").__("content").__(); PrintWriter out = h.getWriter(); out.flush(); @@ -126,12 +124,12 @@ public class TestHamlet { @Test public void testPreformatted() { Hamlet h = newHamlet(). div(). - i("inline before pre"). - pre(). - _("pre text1\npre text2"). - i("inline in pre"). - _("pre text after inline")._(). - i("inline after pre")._(); + i("inline before pre"). + pre(). + __("pre text1\npre text2"). + i("inline in pre"). + __("pre text after inline").__(). + i("inline after pre").__(); PrintWriter out = h.getWriter(); out.flush(); @@ -149,8 +147,8 @@ public class TestHamlet { @Test public void testSubViews() { Hamlet h = newHamlet(). title("test sub-views"). - div("#view1")._(TestView1.class)._(). - div("#view2")._(TestView2.class)._(); + div("#view1").__(TestView1.class).__(). + div("#view2").__(TestView2.class).__(); PrintWriter out = h.getWriter(); out.flush(); @@ -163,4 +161,4 @@ public class TestHamlet { PrintWriter out = spy(new PrintWriter(System.out)); return new Hamlet(out, 0, false); } -} +} \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamletImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamletImpl.java similarity index 55% rename from hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamletImpl.java rename to hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamletImpl.java index 9a1efcf84f..3b19aa30c3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet/TestHamletImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestHamletImpl.java @@ -1,30 +1,29 @@ -/** -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package org.apache.hadoop.yarn.webapp.hamlet; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.yarn.webapp.hamlet2; import java.io.PrintWriter; import org.junit.Test; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.*; -import org.apache.hadoop.yarn.webapp.hamlet.HamletImpl; -import org.apache.hadoop.yarn.webapp.hamlet.HamletSpec.*; +import org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec.*; public class TestHamletImpl { /** @@ -35,25 +34,25 @@ public class TestHamletImpl { PrintWriter out = spy(new PrintWriter(System.out)); HamletImpl hi = new HamletImpl(out, 0, false); hi. - root("start")._attr("name", "value"). - _("start text"). + root("start")._attr("name", "value"). + __("start text"). elem("sub")._attr("name", "value"). - _("sub text")._(). + __("sub text").__(). elem("sub1")._noEndTag()._attr("boolean", null). - _("sub1text")._(). - _("start text2"). + __("sub1text").__(). + __("start text2"). elem("pre")._pre(). - _("pre text"). - elem("i")._inline()._("inline")._()._(). - elem("i")._inline()._("inline after pre")._(). - _("start text3"). + __("pre text"). + elem("i")._inline().__("inline").__().__(). + elem("i")._inline().__("inline after pre").__(). + __("start text3"). elem("sub2"). - _("sub2text")._(). + __("sub2text").__(). elem("sub3")._noEndTag(). - _("sub3text")._(). + __("sub3text").__(). elem("sub4")._noEndTag(). - elem("i")._inline()._("inline")._(). - _("sub4text")._()._(); + elem("i")._inline().__("inline").__(). + __("sub4text").__().__(); out.flush(); assertEquals(0, hi.nestLevel); @@ -75,11 +74,11 @@ public class TestHamletImpl { verify(e).$class("class"); H1 t = mock(H1.class); - HamletImpl.setSelector(t, "#id.class")._("heading"); + HamletImpl.setSelector(t, "#id.class").__("heading"); verify(t).$id("id"); verify(t).$class("class"); - verify(t)._("heading"); + verify(t).__("heading"); } @Test public void testSetLinkHref() { @@ -105,4 +104,4 @@ public class TestHamletImpl { verifyNoMoreInteractions(script); } -} +} \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestParseSelector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestParseSelector.java new file mode 100644 index 0000000000..e2141e6942 --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/hamlet2/TestParseSelector.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.yarn.webapp.hamlet2; + +import org.junit.Test; + +import static org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; + +import org.apache.hadoop.yarn.webapp.WebAppException; + +public class TestParseSelector { + + @Test public void testNormal() { + String[] res = parseSelector("#id.class"); + assertEquals("id", res[S_ID]); + assertEquals("class", res[S_CLASS]); + } + + @Test public void testMultiClass() { + String[] res = parseSelector("#id.class1.class2"); + assertEquals("id", res[S_ID]); + assertEquals("class1 class2", res[S_CLASS]); + } + + @Test public void testMissingId() { + String[] res = parseSelector(".class"); + assertNull(res[S_ID]); + assertEquals("class", res[S_CLASS]); + } + + @Test public void testMissingClass() { + String[] res = parseSelector("#id"); + assertEquals("id", res[S_ID]); + assertNull(res[S_CLASS]); + } + + @Test(expected=WebAppException.class) public void testMissingAll() { + parseSelector(""); + } +} \ No newline at end of file