Class BoxTryCatch
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxStatement
ortus.boxlang.compiler.ast.statement.BoxTryCatch
- All Implemented Interfaces:
BoxVisitable
AST Node representing a catch statement
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxTryCatch
(List<BoxExpression> catchTypes, BoxExpression exception, List<BoxStatement> catchBody, Position position, String sourceText) -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.void
Accept method for visitor support.void
setCatchBody
(List<BoxStatement> catchBody) void
setCatchTypes
(List<BoxExpression> catchTypes) void
setException
(BoxExpression exception) toMap()
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
-
BoxTryCatch
public BoxTryCatch(List<BoxExpression> catchTypes, BoxExpression exception, List<BoxStatement> catchBody, Position position, String sourceText)
-
-
Method Details
-
getCatchBody
-
getException
-
getCatchTypes
-
setException
-
setCatchBody
-
setCatchTypes
-
toMap
-
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- 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.- Parameters:
v
- the visitor implementation
-