Package org.pkl.core.ast.member
Class DefaultPropertyBodyNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
org.pkl.core.ast.PklNode
org.pkl.core.ast.ExpressionNode
org.pkl.core.ast.member.DefaultPropertyBodyNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Property body for properties that don't have an explicit body. Returns the default value for the
property's type, or throws if the type doesn't have a default value.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Field Summary
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPropertyBodyNode(com.oracle.truffle.api.source.SourceSection sourceSection, Identifier propertyName, @Nullable PropertyTypeNode typeNode) -
Method Summary
Modifier and TypeMethodDescriptionexecuteGeneric(com.oracle.truffle.api.frame.VirtualFrame frame) booleanMethods inherited from class org.pkl.core.ast.ExpressionNode
executeBoolean, executeFloat, executeIntMethods inherited from class org.pkl.core.ast.PklNode
exceptionBuilder, getShortName, getSourceSection, toStringMethods 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 Details
-
DefaultPropertyBodyNode
public DefaultPropertyBodyNode(com.oracle.truffle.api.source.SourceSection sourceSection, Identifier propertyName, @Nullable @Nullable PropertyTypeNode typeNode)
-
-
Method Details
-
isUndefined
public boolean isUndefined() -
executeGeneric
- Specified by:
executeGenericin classExpressionNode
-