Class BoxThrow
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxStatement
ortus.boxlang.compiler.ast.statement.BoxThrow
- All Implemented Interfaces:
BoxVisitable
AST Node representing an throw statement
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxThrow(BoxExpression expression, BoxExpression type, BoxExpression message, BoxExpression detail, BoxExpression errorcode, BoxExpression extendedInfo, Position position, String sourceText) Creates the AST nodeBoxThrow(BoxExpression expression, Position position, String sourceText) Creates the AST node -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.voidAccept method for visitor support.getType()voidsetDetail(BoxExpression detail) voidsetErrorCode(BoxExpression errorcode) voidsetExpression(BoxExpression expression) voidsetExtendedInfo(BoxExpression extendedinfo) voidsetMessage(BoxExpression message) voidsetType(BoxExpression type) 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, toString
-
Constructor Details
-
BoxThrow
Creates the AST node- Parameters:
expression- argument expression to assertposition- position of the statement in the source codesourceText- source code that originated the Node
-
BoxThrow
public BoxThrow(BoxExpression expression, BoxExpression type, BoxExpression message, BoxExpression detail, BoxExpression errorcode, BoxExpression extendedInfo, Position position, String sourceText) Creates the AST node- Parameters:
expression- argument expression to assertposition- position of the statement in the source codesourceText- source code that originated the Node
-
-
Method Details
-
getExpression
-
getType
-
getMessage
-
getDetail
-
getErrorCode
-
getExtendedInfo
-
setExpression
-
setType
-
setMessage
-
setDetail
-
setErrorCode
-
setExtendedInfo
-
toMap
-
accept
Description copied from interface:BoxVisitableAccept method for visitor support.- 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.- Parameters:
v- the visitor implementation
-