All Downloads are FREE. Search and download functionalities are using the official Maven repository.

reference.language.identifiers.html Maven / Gradle / Ivy




    
    Identifiers
    
    

    
    

    
    

    
    
    
    

    


Identifiers

Many Prompto objects are uniquely identified by a built-in or user defined name: attributes, categories, methods, variables and so forth.

Type names

Prompto supports both built-in types and user defined types.
The name of a type must start with an uppercase letter, followed by 0 or more letter, digit or underscore.
The formal definition is 'A'..'Z' ('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*.

  • Text is a valid type name
  • TEXT is not a valid type name (it's a symbol)
  • text is not a valid type name

Attribute names

Prompto supports attributes.
The name of an attribute must start with a lowercase letter, followed by 0 or more letter, digit or underscore.
The formal definition is 'a'..'z' ('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*.

  • dateOfBirth is a valid attribute name
  • DateOfBirth is not a valid attribute name

Variable names

Prompto supports variables.
The name of a variable must start with a lowercase letter, followed by 0 or more letter, digit or underscore.
The formal definition is 'a'..'z' ('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*.

  • someItem is a valid variable name
  • SomeItem is not a valid variable name

Method names

Prompto supports methods.
The name of a variable must start with a letter, followed by 0 or more letter, digit or underscore.
The formal definition is ('a'..'z' | 'A'..'Z')('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*.

  • someMethod is a valid method name
  • SomeMethod is a valid method name
  • SOME_METHOD is not a valid method name

Symbol names

Prompto supports enumerations of both built-in types and user defined types.
The name of an enumerated value is called a symbol. It must start with an uppercase letter, followed by 0 or more uppercase letter, digit or underscore.
The formal definition is 'A'..'Z' ('A'..'Z' | '0'..'9' | '_')*.

  • NORTH is a valid symbol
  • North is not a valid symbol





© 2015 - 2025 Weber Informatics LLC | Privacy Policy