Class FloatLiteralNode

  • All Implemented Interfaces:
    org.plumelib.util.UniqueId

    public class FloatLiteralNode
    extends ValueLiteralNode
    A node for a float literal. For example:
       8.0f
       6.022137e+23F
     
    • Constructor Detail

      • FloatLiteralNode

        public FloatLiteralNode​(com.sun.source.tree.LiteralTree t)
        Create a new FloatLiteralNode.
        Parameters:
        t - the tree for the literal value
    • Method Detail

      • getValue

        public java.lang.Float getValue()
        Description copied from class: ValueLiteralNode
        Returns the value of the literal, null for the null literal.
        Specified by:
        getValue in class ValueLiteralNode
        Returns:
        the value of the literal, null for the null literal
      • accept

        public <R,​P> R accept​(NodeVisitor<R,​P> visitor,
                                    P p)
        Description copied from class: Node
        Accept method of the visitor pattern.
        Specified by:
        accept in class Node
        Type Parameters:
        R - result type of the operation
        P - parameter type
        Parameters:
        visitor - the visitor to be applied to this node
        p - the parameter for this operation