Class UnaryOperationExpression
java.lang.Object
dev.frostlake.executor.expressions.UnaryOperationExpression
- All Implemented Interfaces:
Expression
Represents a unary operation (e.g., NOT x, -5, EXISTS(...))
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patternThe operator's own place in the parsed fragment — a sign is refused AT the sign: live anchors "Invalid argument types for function 'NEGATE': (BOOLEAN)" on the-, and the 'UNARY PLUS' twin on the+, wherever the operand starts.voidsetPosition(SourcePosition where) toString()
-
Constructor Details
-
UnaryOperationExpression
-
-
Method Details
-
getOperand
-
getOperator
-
getPosition
The operator's own place in the parsed fragment — a sign is refused AT the sign: live anchors "Invalid argument types for function 'NEGATE': (BOOLEAN)" on the-, and the 'UNARY PLUS' twin on the+, wherever the operand starts.- Returns:
- the recorded position, or null
-
setPosition
-
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-
toString
-