Klasse NumberLiteral


public class NumberLiteral extends Expression
Number literal nodes.
Seit:
2.0
  • Felddetails

    • TOKEN_PROPERTY

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

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameter:
      apiLevel - the API level; one of the AST.JLS* constants
      Gibt zurück:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Seit:
      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.
      Gibt zurück:
      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.
      Parameter:
      token - the numeric literal token
      Löst aus:
      IllegalArgumentException - if the argument is incorrect