Package org.pkl.core.ast
Class ConstantValueNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- org.pkl.core.ast.PklNode
-
- org.pkl.core.ast.ExpressionNode
-
- org.pkl.core.ast.ConstantValueNode
-
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,java.lang.Cloneable,ConstantNode
public final class ConstantValueNode extends ExpressionNode implements ConstantNode
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection
-
-
Constructor Summary
Constructors Constructor Description ConstantValueNode(com.oracle.truffle.api.source.SourceSection sourceSection, java.lang.Object value)ConstantValueNode(java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectexecuteGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)java.lang.ObjectgetValue()-
Methods inherited from class org.pkl.core.ast.ExpressionNode
executeBoolean, executeFloat, 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
-
executeGeneric
public java.lang.Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
- Specified by:
executeGenericin classExpressionNode
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfaceConstantNode
-
-