本文整理汇总了Java中org.apache.maven.doxia.sink.Sink.anchor方法的典型用法代码示例。如果您正苦于以下问题:Java Sink.anchor方法的具体用法?Java Sink.anchor怎么用?Java Sink.anchor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.maven.doxia.sink.Sink
的用法示例。
在下文中一共展示了Sink.anchor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: heading3WithAnchor
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
private void heading3WithAnchor(final Sink sink, final String anchor, final String text) {
sink.section3();
sink.sectionTitle3();
sink.anchor(anchor); sink.anchor_();
sink.text(text);
sink.sectionTitle3_();
sink.section3_();
}
示例2: doSummarySection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doSummarySection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.summary.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.summary.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
sink.lineBreak();
sink.table();
generateHeaderRow( bundle, sink );
list = jdepend.packages;
for ( int i = 0; i < list.size(); i++ )
{
jdpackage = (JDPackage) list.get( i );
stats = jdpackage.getStats();
sink.tableRow();
sink.tableCell();
sink.link( bundle.getString( "report.dash" ) + jdpackage.getPackageName() ); //$NON-NLS-1$
sink.text( jdpackage.getPackageName() );
sink.link_();
sink.tableCell_();
sink.tableCell();
sink.text( stats.getTotalClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getConcreteClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getAbstractClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getCa() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getCe() );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getA() ) );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getI() ) );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getD() ) );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getV() );
sink.tableCell_();
sink.tableRow_();
}
sink.table_();
}
示例3: doPackagesSection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doPackagesSection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.packages.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.packages.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
doPackage( bundle, sink );
}
示例4: doCycleSection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doCycleSection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.cycles.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.cycles.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
sink.lineBreak();
doCycles( bundle, sink );
}