Class NumberLiteral


  • public class NumberLiteral
    extends Expression
    Number literal nodes.
    Since:
    2.0
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • TOKEN_PROPERTY

        public static final SimplePropertyDescriptor TOKEN_PROPERTY
        The "token" structural property of this node type (type: String).
        Since:
        3.0
    • Method Detail

      • propertyDescriptors

        public static List propertyDescriptors​(int apiLevel)
        Returns a list of structural property descriptors for this node type. Clients must not modify the result.
        Parameters:
        apiLevel - the API level; one of the AST.JLS* constants
        Returns:
        a list of property descriptors (element type: StructuralPropertyDescriptor)
        Since:
        3.0
      • getToken

        public String getToken()
        Returns the token of this number literal node. The value is the sequence of characters that would appear in the source program.
        Returns:
        the numeric literal token
      • setToken

        public void setToken​(String token)
        Sets the token of this number literal node. The value is the sequence of characters that would appear in the source program.
        Parameters:
        token - the numeric literal token
        Throws:
        IllegalArgumentException - if the argument is incorrect