throws MojoExecutionException
{
boolean separatorAdded = false;
if ( isJavaMethod )
{
JavaMethod javaMethod = (JavaMethod) entity;
if ( fixTag( PARAM_TAG ) && javaMethod.getParameters() != null )
{
for ( int i = 0; i < javaMethod.getParameters().length; i++ )
{
JavaParameter javaParameter = javaMethod.getParameters()[i];
separatorAdded = appendDefaultParamTag( sb, indent, separatorAdded, javaParameter );
}
}
if ( fixTag( RETURN_TAG ) )
{
if ( javaMethod.getReturns() != null && !javaMethod.getReturns().isVoid() )
{
separatorAdded = appendDefaultReturnTag( sb, indent, separatorAdded, javaMethod );
}
}
if ( fixTag( THROWS_TAG ) && javaMethod.getExceptions() != null )
{
for ( int i = 0; i < javaMethod.getExceptions().length; i++ )
{
Type exception = javaMethod.getExceptions()[i];
separatorAdded = appendDefaultThrowsTag( sb, indent, separatorAdded, exception );
}
}
}
else
{
separatorAdded = appendDefaultAuthorTag( sb, indent, separatorAdded );
separatorAdded = appendDefaultVersionTag( sb, indent, separatorAdded );
}
if ( fixTag( SINCE_TAG ) )
{
if ( !isJavaMethod )
{
JavaClass javaClass = (JavaClass) entity;
if ( !ignoreClirr )
{
if ( isNewClassFromLastVersion( javaClass ) )
{
separatorAdded = appendDefaultSinceTag( sb, indent, separatorAdded );
}
}
else
{
separatorAdded = appendDefaultSinceTag( sb, indent, separatorAdded );
addSinceClasses( javaClass );
}
}
else
{
JavaMethod javaMethod = (JavaMethod) entity;
if ( !ignoreClirr )
{
if ( isNewMethodFromLastRevision( javaMethod ) )
{
separatorAdded = appendDefaultSinceTag( sb, indent, separatorAdded );
}
}
else
{
if ( sinceClasses != null && !sinceClassesContains( javaMethod.getParentClass() ) )
{
separatorAdded = appendDefaultSinceTag( sb, indent, separatorAdded );
}
}
}