Package org.pkl.core.ast.internal
Class ToStringNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- org.pkl.core.ast.PklNode
-
- org.pkl.core.ast.ExpressionNode
-
- org.pkl.core.ast.expression.unary.UnaryExpressionNode
-
- org.pkl.core.ast.internal.ToStringNode
-
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,java.lang.Cloneable
public abstract class ToStringNode extends UnaryExpressionNode
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedToStringNode(com.oracle.truffle.api.source.SourceSection sourceSection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvokeMethodVirtualNodecreateInvokeNode()protected java.lang.StringevalBoolean(boolean value)protected java.lang.StringevalFloat(double value)protected java.lang.StringevalInt(long value)protected java.lang.StringevalString(java.lang.String value)protected java.lang.StringevalTyped(com.oracle.truffle.api.frame.VirtualFrame frame, VmTyped value, InvokeMethodVirtualNode invokeNode)protected java.lang.Objectfallback(java.lang.Object value)-
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
-
evalString
protected java.lang.String evalString(java.lang.String value)
-
evalInt
protected java.lang.String evalInt(long value)
-
evalFloat
protected java.lang.String evalFloat(double value)
-
evalBoolean
protected java.lang.String evalBoolean(boolean value)
-
evalTyped
protected java.lang.String evalTyped(com.oracle.truffle.api.frame.VirtualFrame frame, VmTyped value, InvokeMethodVirtualNode invokeNode)
-
fallback
protected java.lang.Object fallback(java.lang.Object value)
- Overrides:
fallbackin classUnaryExpressionNode
-
createInvokeNode
protected InvokeMethodVirtualNode createInvokeNode()
-
-