public abstract class Tag extends Object
HTMLTagSupportWrapper| 限定符和类型 | 字段和说明 |
|---|---|
protected Object[] |
args |
protected Statement |
bs |
protected ByteWriter |
bw |
protected Context |
ctx |
protected GroupTemplate |
gt |
protected Tag |
parent |
| 构造器和说明 |
|---|
Tag() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterRender() |
boolean |
containHtmlAttribute(String attrName) |
protected void |
doBodyRender()
主要方法:渲染标签体
|
Object[] |
getArgs() |
protected BodyContent |
getBodyContent()
得到内容暂时保存在BodyContent。
|
Object |
getHtmlAttribute(String attrName)
获取html属性,注意,html属性中“-”符号会去掉转为下一个首字母大写
|
Tag |
getParent() |
protected void |
inintBase(Context ctx,
Object[] args,
Statement st) |
void |
init(Context ctx,
Object[] args,
Statement st) |
abstract void |
render() |
protected void |
setTagParent() |
protected Object[] args
protected GroupTemplate gt
protected Context ctx
protected ByteWriter bw
protected Statement bs
protected Tag parent
protected void doBodyRender()
protected BodyContent getBodyContent()
public abstract void render()
public void afterRender()
protected void setTagParent()
public Tag getParent()
public Object[] getArgs()
public Object getHtmlAttribute(String attrName)
attrName - public boolean containHtmlAttribute(String attrName)
Copyright © 2019. All rights reserved.