Class NullCoalescingNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- org.pkl.core.ast.PklNode
-
- org.pkl.core.ast.ExpressionNode
-
- org.pkl.core.ast.expression.binary.ShortCircuitingExpressionNode
-
- org.pkl.core.ast.expression.binary.NullCoalescingNode
-
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,java.lang.Cloneable
public abstract class NullCoalescingNode extends ShortCircuitingExpressionNode
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.expression.binary.ShortCircuitingExpressionNode
rightNode
-
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullCoalescingNode(com.oracle.truffle.api.source.SourceSection sourceSection, ExpressionNode rightNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objecteval(com.oracle.truffle.api.frame.VirtualFrame frame, VmNull left)protected java.lang.Objectfallback(java.lang.Object left)-
Methods inherited from class org.pkl.core.ast.expression.binary.ShortCircuitingExpressionNode
getLeftNode, operatorNotDefined, operatorNotDefined
-
Methods inherited from class org.pkl.core.ast.ExpressionNode
executeBoolean, executeFloat, executeGeneric, executeInt
-
Methods inherited from class org.pkl.core.ast.PklNode
exceptionBuilder, getShortName, getSourceSection, toString
-
Methods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize
-
-
-
-
Constructor Detail
-
NullCoalescingNode
protected NullCoalescingNode(com.oracle.truffle.api.source.SourceSection sourceSection, ExpressionNode rightNode)
-
-
Method Detail
-
eval
protected java.lang.Object eval(com.oracle.truffle.api.frame.VirtualFrame frame, VmNull left)
-
fallback
protected java.lang.Object fallback(java.lang.Object left)
- Overrides:
fallbackin classShortCircuitingExpressionNode
-
-