Class ValueLiteralNode

    • Field Detail

      • tree

        protected final com.sun.source.tree.LiteralTree tree
        The tree for the value literal.
    • Constructor Detail

      • ValueLiteralNode

        protected ValueLiteralNode​(com.sun.source.tree.LiteralTree tree)
    • Method Detail

      • getValue

        public abstract @Nullable java.lang.Object getValue()
        Returns the value of the literal, null for the null literal.
        Returns:
        the value of the literal, null for the null literal
      • getTree

        public com.sun.source.tree.LiteralTree getTree()
        Description copied from class: Node
        Returns the Tree in the abstract syntax tree, or null if no corresponding tree exists. For instance, this is the case for an ImplicitThisNode.
        Specified by:
        getTree in class Node
        Returns:
        the corresponding Tree or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(@Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getOperands

        @SideEffectFree
        public java.util.Collection<Node> getOperands()
        Description copied from class: Node
        Returns a collection containing all of the operand Nodes of this Node.
        Specified by:
        getOperands in class Node
        Returns:
        a collection containing all of the operand Nodes of this Node