日期:2014-05-20  浏览次数:20788 次

一个java的问题,谁知道这种语法是什么?
因为不是搞java开发的,但是要用到这个东西,问问java大大们有没有人知道这个语法是什么?先谢了

我理解的大概意思的,通过这段脚本,来实例化对象,并运行程序。不知道对不对。

顺便说一句,javadoc生成的文档,里面的例子用的也是这种格式。

CODE:
################################################################
#   Get   topics   list
################################################################
processBuilder.2.class:adk.comp.rt.ConfigProcessBuilder
processBuilder.2.parameters.attributes:TopicList

processBuilder.2.parameters.filter.0.class:adk.comp.filter.ExtractFilter
processBuilder.2.parameters.filter.0.parameters.from:TopicList
processBuilder.2.parameters.filter.0.parameters.to:TopicList
processBuilder.2.parameters.filter.0.parameters.begin: <ul   class= "nl ">
processBuilder.2.parameters.filter.0.parameters.end: </ul>

processBuilder.2.parameters.filter.1.class:adk.comp.filter.MultiExtract
processBuilder.2.parameters.filter.1.parameters.from:TopicList
processBuilder.2.parameters.filter.1.parameters.to:TopicLink
processBuilder.2.parameters.filter.1.parameters.begin: <a   href= "
processBuilder.2.parameters.filter.1.parameters.end: "

processBuilder.2.parameters.filter.2.class:adk.comp.filter.ConcatenateFilter
processBuilder.2.parameters.filter.2.parameters.fields: "http://www.asite.com/ "   TopicLink
processBuilder.2.parameters.filter.2.parameters.to:TopicLink

processBuilder.2.parameters.filter.3.class:adk.comp.filter.URLRefFilterExtend
processBuilder.2.parameters.filter.3.parameters.baseurl:
processBuilder.2.parameters.filter.3.parameters.url:TopicLink
processBuilder.2.parameters.filter.3.parameters.to:detailpage
processBuilder.2.parameters.filter.3.parameters.forceNavigation:true

processBuilder.2.parameters.filter.4.class:adk.comp.filter.InfoExtractor
processBuilder.2.parameters.filter.4.parameters.attribute:detailpage
processBuilder.2.parameters.filter.4.parameters.attribute.keep:yes
processBuilder.2.parameters.filter.4.parameters.rules.Document:title   content
processBuilder.2.parameters.filter.4.parameters.rules.title.begin: <h1   class= "aTitle ">
processBuilder.2.parameters.filter.4.parameters.rules.title.end: </h1>
processBuilder.2.parameters.filter.4.parameters.rules.content.begin: <div   id= "BodyLabel "   class= "content "   style= "display:block;padding:0px   10px ">
processBuilder.2.parameters.filter.4.parameters.rules.content.end: </div> <br/> <br/>

processBuilder.2.parameters.filter.4.parameters.links.title:title
processBuilder.2.parameters.filter.4.parameters.links.content:content


################################################################
#   Add   project   &   filter
################################################################
processBuilder.3.class:adk.comp.rt.QueryProcessBuilder


################################################################
#   source   configuration
################################################################
source.class:adk.comp.source.HttpSourceExtend
source.parameters.url:http://www.asite.com/
source.parameters.method:GET
source.parameters.getcookies:true
source.parameters.agent:Mozilla/4.0   (compatible;   MSIE   6.0;   Windows   NT   5.1;   MyIE2;   SV1;   Alexa   Toolbar)
[Copy   to   clipboard]


javadoc片段
CODE:
adk.comp.filter.MultiExtract
This   filter   receives   one   tupple   and   extract   several   tuples   to   give   to   the   following   filter   in   the   chain   It   uses   the   ExtractFilter   rules