Package ortus.boxlang.compiler.ast
Class BoxClass
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxClass
- All Implemented Interfaces:
IBoxDocumentableNode,BoxVisitable
Root node for a Class
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxClass(List<BoxImport> imports, List<BoxStatement> body, List<BoxAnnotation> annotations, List<BoxDocumentationAnnotation> documentation, List<BoxProperty> properties, Position position, String sourceText) Creates an AST for a Class -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.voidAccept method for visitor support.getBody()Get documentation from nodevoidsetAnnotations(List<BoxAnnotation> annotations) voidsetBody(List<BoxStatement> body) voidsetDocumentation(List<BoxDocumentationAnnotation> documentation) Set documentation for nodevoidsetImports(List<BoxImport> imports) voidsetProperties(List<BoxProperty> properties) toMap()Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDescendantsOfType, getDescription, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ortus.boxlang.compiler.ast.IBoxDocumentableNode
finalizeDocumentation, getDocComment
-
Constructor Details
-
BoxClass
public BoxClass(List<BoxImport> imports, List<BoxStatement> body, List<BoxAnnotation> annotations, List<BoxDocumentationAnnotation> documentation, List<BoxProperty> properties, Position position, String sourceText) Creates an AST for a Class- Parameters:
imports- list of importsbody- list of statementsannotations- list of annotationsdocumentation- list of documentation annotationsproperties- list of propertiesposition- position in the source filesourceText- the source text- See Also:
-
-
Method Details
-
getBody
-
getAnnotations
-
getDocumentation
Description copied from interface:IBoxDocumentableNodeGet documentation from node- Specified by:
getDocumentationin interfaceIBoxDocumentableNode- Returns:
- list of documentation annotations
-
getImports
-
getProperties
-
setBody
-
setAnnotations
-
setDocumentation
Description copied from interface:IBoxDocumentableNodeSet documentation for node- Specified by:
setDocumentationin interfaceIBoxDocumentableNode- Parameters:
documentation- list of documentation annotations
-
setImports
-
setProperties
-
toMap
-
accept
Description copied from interface:BoxVisitableAccept method for visitor support.- Specified by:
acceptin interfaceBoxVisitable- Parameters:
v- the visitor implementation
-
accept
Description copied from interface:BoxVisitableAccept method for replacing visitor support. Each accept returns the node, or a replacement node.- Specified by:
acceptin interfaceBoxVisitable- Parameters:
v- the visitor implementation
-