Class BoxBooleanLiteral
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxExpression
ortus.boxlang.compiler.ast.expression.BoxBooleanLiteral
- All Implemented Interfaces:
IBoxLiteral
,IBoxSimpleLiteral
,BoxVisitable
AST Node representing a boolean value
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxBooleanLiteral
(Boolean value, Position position, String sourceText) Creates the AST nodeBoxBooleanLiteral
(String value, Position position, String sourceText) -
Method Summary
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ortus.boxlang.compiler.ast.expression.IBoxSimpleLiteral
removeLeadingZeros, removeUnderscores
-
Constructor Details
-
BoxBooleanLiteral
Creates the AST node- Parameters:
value
- boolean valueposition
- position of the statement in the source codesourceText
- source code that originated the Node
-
BoxBooleanLiteral
-
-
Method Details
-
isLiteral
public boolean isLiteral()Description copied from class:BoxExpression
Utility method to detect if an expression node is a terminal Literal- Overrides:
isLiteral
in classBoxExpression
- Returns:
- true if it is false otherwise
-
getValue
- Specified by:
getValue
in interfaceIBoxSimpleLiteral
-
setValue
-
toMap
-
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- Specified by:
accept
in interfaceBoxVisitable
- 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
- Parameters:
v
- the visitor implementation
-