当前位置: 首页>>代码示例>>Java>>正文


Java Sink.lineBreak方法代码示例

本文整理汇总了Java中org.apache.maven.doxia.sink.Sink.lineBreak方法的典型用法代码示例。如果您正苦于以下问题:Java Sink.lineBreak方法的具体用法?Java Sink.lineBreak怎么用?Java Sink.lineBreak使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.maven.doxia.sink.Sink的用法示例。


在下文中一共展示了Sink.lineBreak方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createReportHeader

import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
/**
 * Create the header and title for the HTML report page.
 *
 * @param bundle
 *        The resource bundle with the text.
 * @param sink
 *        The sink for writing to the main report file.
 */
private void createReportHeader (final ResourceBundle bundle, final Sink sink)
{
  sink.head ();
  sink.title ();
  sink.text (bundle.getString ("report.jjdoc.title"));
  sink.title_ ();
  sink.head_ ();

  sink.body ();

  sink.section1 ();
  sink.sectionTitle1 ();
  sink.text (bundle.getString ("report.jjdoc.title"));
  sink.sectionTitle1_ ();
  sink.text (bundle.getString ("report.jjdoc.description"));
  sink.section1_ ();

  sink.lineBreak ();
  sink.table ();
  sink.tableRow ();
  sink.tableHeaderCell ();
  sink.text (bundle.getString ("report.jjdoc.table.heading"));
  sink.tableHeaderCell_ ();
  sink.tableRow_ ();
}
 
开发者ID:phax,项目名称:ph-javacc-maven-plugin,代码行数:34,代码来源:JJDocMojo.java

示例2: processEnum

import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
private void processEnum(Sink sink, String className) {
  Class<?> clazz = getClassForNameIsh(sink, className);
  if (clazz == null) {
    sink.text("Was not able to find class: " + className);
    sink.lineBreak();
    return;
  }
  if (clazz.isEnum()) {
    classHeading(sink, className);
    final Object[] constants = clazz.getEnumConstants();
    final List<String> constantsWrapped = Lists.newArrayList();
    for (Object c : constants) {
      constantsWrapped.add("\"" + c + "\"");
    }
    sink.text("Enumerated Type.  Valid values are: ");
    sink.monospaced();
    sink.text(Joiner.on(", ").join(constantsWrapped));
    sink.monospaced_();
    sink.lineBreak();
  } else {
    sink.text("!??!?!!?" + clazz);
    sink.lineBreak();
  }

}
 
开发者ID:spotify,项目名称:docgenerator,代码行数:26,代码来源:DocgeneratorMojo.java

示例3: doGenerateReport

import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doGenerateReport( ResourceBundle bundle, Sink sink, JDependXMLReportParser jdepend )
{
    this.jdepend = jdepend;

    sink.head();
    sink.title();
    sink.text( bundle.getString( "report.title" ) ); //$NON-NLS-1$
    sink.title_();
    sink.head_();

    sink.body();
    sink.section1();

    sink.sectionTitle1();
    sink.text( bundle.getString( "report.metricresults" ) ); //$NON-NLS-1$
    sink.sectionTitle1_();

    doSectionLinks( bundle, sink );

    sink.lineBreak();
    sink.lineBreak();

    sink.text( bundle.getString( "report.intro" ) ); //$NON-NLS-1$

    sink.lineBreak();
    sink.lineBreak();

    doSummarySection( bundle, sink );

    doPackagesSection( bundle, sink );

    doCycleSection( bundle, sink );

    doExplanationSection( bundle, sink );

    sink.section1_();
    sink.body_();
    sink.flush();
    sink.close();

}
 
开发者ID:mojohaus,项目名称:jdepend-maven-plugin,代码行数:42,代码来源:ReportGenerator.java

示例4: 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_();

}
 
开发者ID:mojohaus,项目名称:jdepend-maven-plugin,代码行数:76,代码来源:ReportGenerator.java

示例5: 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 );

}
 
开发者ID:mojohaus,项目名称:jdepend-maven-plugin,代码行数:18,代码来源:ReportGenerator.java

示例6: 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 );

}
 
开发者ID:mojohaus,项目名称:jdepend-maven-plugin,代码行数:19,代码来源:ReportGenerator.java

示例7: doCycles

import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doCycles( ResourceBundle bundle, Sink sink )
{

    List cycleList = jdepend.cycles;

    if ( cycleList.size() <= 0 )
    {
        sink.text( bundle.getString( "report.nocyclicdependencies" ) ); //$NON-NLS-1$
        sink.lineBreak();
    }
    else
    {
        sink.table();

        sink.tableRow();
        sink.tableHeaderCell();
        sink.text( bundle.getString( "report.package.title" ) ); //$NON-NLS-1$
        sink.tableHeaderCell_();

        sink.tableHeaderCell();
        sink.text( bundle.getString( "report.packagedependencies" ) ); //$NON-NLS-1$
        sink.tableHeaderCell_();
        sink.tableRow_();

        for ( int i = 0; i < cycleList.size(); i++ )
        {
            cyclepackage = (CyclePackage) cycleList.get( i );

            sink.tableRow();
            sink.tableCell();
            sink.text( cyclepackage.getName() );
            sink.tableCell_();

            /* Package Dependencies List */

            List packageList = cyclepackage.getPackageList();
            sink.tableCell();
            if ( packageList.size() <= 0 )
            {
                sink.italic();
                sink.text( bundle.getString( "report.none" ) ); //$NON-NLS-1$
                sink.italic_();
            }
            else
            {
                for ( int j = 0; j < packageList.size(); j++ )
                {
                    sink.text( (String) packageList.get( j ) );
                    sink.lineBreak();
                }
            }
            sink.tableCell_();
            sink.tableRow_();

        }
        sink.table_();
    }

}
 
开发者ID:mojohaus,项目名称:jdepend-maven-plugin,代码行数:60,代码来源:ReportGenerator.java


注:本文中的org.apache.maven.doxia.sink.Sink.lineBreak方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。