Class EmptyObjectLiteralNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- org.pkl.core.ast.PklNode
-
- org.pkl.core.ast.ExpressionNode
-
- org.pkl.core.ast.expression.literal.EmptyObjectLiteralNode
-
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,java.lang.Cloneable
public abstract class EmptyObjectLiteralNode extends ExpressionNode
Object literal node with empty body. Example: RHS of `x = foo {}`
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmptyObjectLiteralNode(com.oracle.truffle.api.source.SourceSection sourceSection)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objecteval(VmClass parent)protected java.lang.Objecteval(VmNull parent)protected java.lang.Objecteval(VmObjectLike parent)protected voidfallback(java.lang.Object parent)protected abstract ExpressionNodegetParentNode()-
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
-
-
-
-
Method Detail
-
getParentNode
protected abstract ExpressionNode getParentNode()
-
eval
protected java.lang.Object eval(VmClass parent)
-
eval
protected java.lang.Object eval(VmObjectLike parent)
-
eval
protected java.lang.Object eval(VmNull parent)
-
fallback
protected void fallback(java.lang.Object parent)
-
-