Class DefaultPropertyBodyNode

  • All Implemented Interfaces:
    com.oracle.truffle.api.nodes.NodeInterface, java.lang.Cloneable

    public final class DefaultPropertyBodyNode
    extends ExpressionNode
    Property body for properties that don't have an explicit body. Returns the default value for the property's type, or throws if the type doesn't have a default value.
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object executeGeneric​(com.oracle.truffle.api.frame.VirtualFrame frame)  
      boolean isUndefined()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultPropertyBodyNode

        public DefaultPropertyBodyNode​(com.oracle.truffle.api.source.SourceSection sourceSection,
                                       Identifier propertyName,
                                       @Nullable PropertyTypeNode typeNode)
    • Method Detail

      • isUndefined

        public boolean isUndefined()
      • executeGeneric

        public java.lang.Object executeGeneric​(com.oracle.truffle.api.frame.VirtualFrame frame)
        Specified by:
        executeGeneric in class ExpressionNode