Class EqualNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
org.pkl.core.ast.PklNode
org.pkl.core.ast.ExpressionNode
org.pkl.core.ast.expression.binary.EqualNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
-
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
ConstructorsModifierConstructorDescriptionprotectedEqualNode(com.oracle.truffle.api.source.SourceSection sourceSection) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleaneval(boolean left, boolean right) protected booleaneval(double left, double right) protected booleaneval(double left, long right) protected booleaneval(long left, double right) protected booleaneval(long left, long right) protected booleanprotected booleanThis method effectively covers `VmValue left, VmValue right` but is implemented in a more efficient way.protected booleangetVmValueJavaClassOrNull(Object value) protected static booleanisIncompatibleTypes(Object left, Object right) Methods 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
-
EqualNode
protected EqualNode(com.oracle.truffle.api.source.SourceSection sourceSection)
-
-
Method Details
-
eval
-
eval
protected boolean eval(long left, long right) -
eval
protected boolean eval(long left, double right) -
eval
protected boolean eval(double left, long right) -
eval
protected boolean eval(double left, double right) -
eval
protected boolean eval(boolean left, boolean right) -
eval
This method effectively covers `VmValue left, VmValue right` but is implemented in a more efficient way. -
getVmValueJavaClassOrNull
-
eval
-
isIncompatibleTypes
-