Annotating Your Code
Learn how to annotate your BoxLang or CFML code for DocBox documentation generation
💬 DocBox Comments
/**
* This is a Javadoc compliant comment for DocBox
*/📚 Class Annotating
/**
* Hero is the main entity we'll be using to create awesome stuff
*
* @author Captain America
*/
@name( "SuperHero" )
@transient
class {
// properties and functions
}/**
* Hero is the main entity we'll be using to create awesome stuff
*
* @author Captain America
*
*/
component name="SuperHero" accessors="true" transient{
// properties and functions
}🎯 Property Annotating
Function Annotations
Argument Annotations
Core Blocks
Tag
Explanation
Custom DocBox Blocks
Tag
Explanation
🏷️ Custom Annotations
@doc.type
Return Type Generics
Parameter Type Generics
Inline Generic Annotations
Complex Generic Types
Best Practices for @doc.type
Last updated
Was this helpful?