Package ortus.boxlang.compiler.ast
Class BoxExpression
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxExpression
- All Implemented Interfaces:
BoxVisitable
- Direct Known Subclasses:
BoxAccess,BoxArgument,BoxArrayLiteral,BoxAssignment,BoxBinaryOperation,BoxBooleanLiteral,BoxClosure,BoxComparisonOperation,BoxDecimalLiteral,BoxExpressionError,BoxExpressionInvocation,BoxFQN,BoxFunctionalBIFAccess,BoxFunctionalMemberAccess,BoxFunctionInvocation,BoxIdentifier,BoxIntegerLiteral,BoxLambda,BoxMethodInvocation,BoxNegateOperation,BoxNew,BoxNull,BoxParenthesis,BoxScope,BoxStaticMethodInvocation,BoxStringConcat,BoxStringLiteral,BoxStructLiteral,BoxTernaryOperation,BoxUnaryOperation
Abstract class representing Expressions
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBoxExpression(Position position, String sourceText) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanUtility method to detect if an expression node is a terminal LiteralMethods 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, toMap, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ortus.boxlang.compiler.ast.visitor.BoxVisitable
accept, accept
-
Constructor Details
-
BoxExpression
Constructor- Parameters:
position- position of the expression in the source codesourceText- source code of the expression
-
-
Method Details
-
isLiteral
public boolean isLiteral()Utility method to detect if an expression node is a terminal Literal- Returns:
- true if it is false otherwise
-