Class GeneratorObjectLiteralNode
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.ObjectLiteralNode
org.pkl.core.ast.expression.generator.GeneratorObjectLiteralNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
An object literal node that contains at least one for- or when-expression.
-
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.expression.literal.ObjectLiteralNode
isCustomThisScope, language, parametersDescriptor, parameterTypes, qualifiedScopeNameFields inherited from class org.pkl.core.ast.PklNode
sourceSection -
Constructor Summary
ConstructorsConstructorDescriptionGeneratorObjectLiteralNode(com.oracle.truffle.api.source.SourceSection sourceSection, VmLanguage language, String qualifiedScopeName, boolean isCustomThisScope, @Nullable com.oracle.truffle.api.frame.FrameDescriptor parametersDescriptor, UnresolvedTypeNode[] parameterTypes, GeneratorMemberNode[] memberNodes) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected GeneratorObjectLiteralNodecopy(ExpressionNode newParentNode) protected VmDynamicevalDynamic(com.oracle.truffle.api.frame.VirtualFrame frame, VmDynamic parent) protected VmDynamicevalDynamicClass(com.oracle.truffle.api.frame.VirtualFrame frame, VmClass parent) protected ObjectevalFunction(com.oracle.truffle.api.frame.VirtualFrame frame, VmFunction parent, AmendFunctionNode amendFunctionNode) protected VmListingevalListing(com.oracle.truffle.api.frame.VirtualFrame frame, VmListing parent) protected VmListingevalListingClass(com.oracle.truffle.api.frame.VirtualFrame frame, VmClass parent) protected VmMappingevalMapping(com.oracle.truffle.api.frame.VirtualFrame frame, VmMapping parent) protected VmMappingevalMappingClass(com.oracle.truffle.api.frame.VirtualFrame frame, VmClass parent) protected Objectprotected VmTypedprotected VmTypedevalTypedObjectClass(com.oracle.truffle.api.frame.VirtualFrame frame, VmClass parent) protected voidMethods inherited from class org.pkl.core.ast.expression.literal.ObjectLiteralNode
checkIsValidFunctionAmendment, createAmendFunctionNode, executeWithParent, getParentNode, isTypedObjectClassMethods inherited from class org.pkl.core.ast.ExpressionNode
executeBoolean, executeFloat, executeGeneric, 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
-
GeneratorObjectLiteralNode
public GeneratorObjectLiteralNode(com.oracle.truffle.api.source.SourceSection sourceSection, VmLanguage language, String qualifiedScopeName, boolean isCustomThisScope, @Nullable @Nullable com.oracle.truffle.api.frame.FrameDescriptor parametersDescriptor, UnresolvedTypeNode[] parameterTypes, GeneratorMemberNode[] memberNodes)
-
-
Method Details
-
copy
- Specified by:
copyin classObjectLiteralNode
-
evalDynamic
-
evalTyped
-
evalListing
-
evalMapping
-
evalNull
-
evalFunction
protected Object evalFunction(com.oracle.truffle.api.frame.VirtualFrame frame, VmFunction parent, AmendFunctionNode amendFunctionNode) -
evalDynamicClass
-
evalMappingClass
-
evalListingClass
-
evalTypedObjectClass
-
fallback
-
checkObjectCannotHaveParameters
protected boolean checkObjectCannotHaveParameters() -
checkListingCannotHaveParameters
protected boolean checkListingCannotHaveParameters() -
checkMappingCannotHaveParameters
protected boolean checkMappingCannotHaveParameters()
-