本文整理了Java中org.htmlparser.Tag.setParent()
方法的一些代码示例,展示了Tag.setParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.setParent()
方法的具体详情如下:
包路径:org.htmlparser.Tag
类名称:Tag
方法名:setParent
暂无
代码示例来源:origin: org.opencms/opencms-core
/**
* @see org.htmlparser.Node#setParent(org.htmlparser.Node)
*/
public void setParent(Node arg0) {
m_decorated.setParent(arg0);
}
代码示例来源:origin: com.bbossgroups.pdp/pdp-cms
/**
* @see org.htmlparser.Node#setParent(org.htmlparser.Node)
*/
public void setParent(Node arg0) {
m_decorated.setParent(arg0);
}
代码示例来源:origin: org.opencms/opencms-solr
/**
* @see org.htmlparser.Node#setParent(org.htmlparser.Node)
*/
public void setParent(Node arg0) {
m_decorated.setParent(arg0);
}
代码示例来源:origin: com.github.tcnh/fitnesse
private static Tag newTag(Class<? extends Tag> klass) {
Tag tag = null;
try {
tag = klass.newInstance();
tag.setTagName(tag.getTagName().toLowerCase());
Tag endTag = klass.newInstance();
endTag.setTagName("/" + tag.getTagName().toLowerCase());
endTag.setParent(tag);
tag.setEndTag(endTag);
} catch (Exception e) {
LOG.log(Level.WARNING, "Unable to create tag from class " + klass, e);
}
return tag;
}
代码示例来源:origin: org.fitnesse/fitnesse
private static Tag newTag(Class<? extends Tag> klass) {
Tag tag = null;
try {
tag = klass.newInstance();
tag.setTagName(tag.getTagName().toLowerCase());
Tag endTag = klass.newInstance();
endTag.setTagName("/" + tag.getTagName().toLowerCase());
endTag.setParent(tag);
tag.setEndTag(endTag);
} catch (Exception e) {
LOG.log(Level.WARNING, "Unable to create tag from class " + klass, e);
}
return tag;
}
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
/**
* Finish off a tag.
* Perhap add a virtual end tag.
* Set the end tag parent as this tag.
* Perform the semantic acton.
* @param tag The tag to finish off.
* @param lexer A lexer positioned at the end of the tag.
*/
protected void finishTag (Tag tag, Lexer lexer)
throws
ParserException
{
if (null == tag.getEndTag ())
tag.setEndTag (createVirtualEndTag (tag, lexer, lexer.getPage (), lexer.getCursor ().getPosition ()));
tag.getEndTag ().setParent (tag);
tag.doSemanticAction ();
}
内容来源于网络,如有侵权,请联系作者删除!