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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:BoxExpressionUtility method to detect if an expression node is a terminal Literal- Overrides:
isLiteralin classBoxExpression- Returns:
- true if it is false otherwise
-
getValue
- Specified by:
getValuein interfaceIBoxSimpleLiteral
-
setValue
-
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
-