Class BoxDocComment
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.comment.BoxComment
ortus.boxlang.compiler.ast.comment.BoxMultiLineComment
ortus.boxlang.compiler.ast.comment.BoxDocComment
- All Implemented Interfaces:
BoxVisitable
Documentation comment
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxDocComment
(String commentText, List<BoxDocumentationAnnotation> annotations, Position position, String sourceText) Create a instance of a BoxDocumentation -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.void
Accept method for visitor support.void
setAnnotations
(List<BoxDocumentationAnnotation> annotations) toMap()
Methods inherited from class ortus.boxlang.compiler.ast.comment.BoxComment
getCommentText, setCommentText
Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
Constructor Details
-
BoxDocComment
public BoxDocComment(String commentText, List<BoxDocumentationAnnotation> annotations, Position position, String sourceText) Create a instance of a BoxDocumentation- Parameters:
annotations
-position
- position within the source codesourceText
- source code
-
-
Method Details
-
getAnnotations
-
setAnnotations
-
toMap
- Overrides:
toMap
in classBoxComment
-
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- Specified by:
accept
in interfaceBoxVisitable
- Overrides:
accept
in classBoxMultiLineComment
- Parameters:
v
- the visitor implementation
-
accept
Description copied from interface:BoxVisitable
Accept method for replacing visitor support. Each accept returns the node, or a replacement node.- Specified by:
accept
in interfaceBoxVisitable
- Overrides:
accept
in classBoxMultiLineComment
- Parameters:
v
- the visitor implementation
-