Package org.pkl.core.ast.internal
Class GetClassNode
- java.lang.Object
-
- com.oracle.truffle.api.nodes.Node
-
- org.pkl.core.ast.PklNode
-
- org.pkl.core.ast.ExpressionNode
-
- org.pkl.core.ast.internal.GetClassNode
-
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,java.lang.Cloneable
public abstract class GetClassNode extends ExpressionNode
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.PklNode
sourceSection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGetClassNode()protectedGetClassNode(com.oracle.truffle.api.source.SourceSection sourceSection)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected VmClassevalBoolean(boolean value)protected VmClassevalFloat(double value)protected VmClassevalInt(long value)protected VmClassevalString(java.lang.String value)protected VmClassevalVmValue(java.lang.Object value, java.lang.Class<? extends VmValue> cachedClass)abstract VmClassexecuteWith(com.oracle.truffle.api.frame.VirtualFrame frame, java.lang.Object value)When only using this execute method, pass `null` for `valueNode` toGetClassNodeGen.create(com.oracle.truffle.api.source.SourceSection, org.pkl.core.ast.ExpressionNode).protected static java.lang.Class<? extends VmValue>getValueClass(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
-
executeWith
public abstract VmClass executeWith(com.oracle.truffle.api.frame.VirtualFrame frame, java.lang.Object value)
When only using this execute method, pass `null` for `valueNode` toGetClassNodeGen.create(com.oracle.truffle.api.source.SourceSection, org.pkl.core.ast.ExpressionNode).
-
evalString
protected VmClass evalString(java.lang.String value)
-
evalInt
protected VmClass evalInt(long value)
-
evalFloat
protected VmClass evalFloat(double value)
-
evalBoolean
protected VmClass evalBoolean(boolean value)
-
evalVmValue
protected VmClass evalVmValue(java.lang.Object value, java.lang.Class<? extends VmValue> cachedClass)
-
getValueClass
protected static java.lang.Class<? extends VmValue> getValueClass(java.lang.Object value)
-
-