• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
                • Midentifier
                • Ascii-identifier-part-p
                • Identifier
                • Tidentifier
                • Umidentifier
                • Ascii-identifier-ignore-p
                • Ascii-identifier-start-p
                • Nonascii-identifier-part-p
                • Nonascii-identifier-ignore-p
                • Nonascii-identifier-start-p
                • Identifier-part-listp
                • Identifier-start-p
                • Identifier-part-p
                • Identifier-ignore-p
                • No-identifier-ignore-p
                • Tidentifierp
                • Identifierp
                • Umidentifier-fix
                • Tidentifier-fix
                • Midentifier-fix
                • Identifier-fix
                • Umidentifierp
                • Midentifierp
                • Identifier-list
              • Primitive-types
              • Reference-types
              • Keywords
              • Unicode-characters
              • Integer-literals
              • String-literals
              • Octal-digits
              • Hexadecimal-digits
              • Decimal-digits
              • Binary-digits
              • Character-literals
              • Null-literal
              • Floating-point-literals
              • Boolean-literals
              • Package-names
              • Literals
            • Semantics
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Syntax

Identifiers

Java identifiers [JLS14:3.8].

Java identifiers are sequences of characters that, among other things, must differ from Java keywords. Since, as discussed in the topic on keywords, there are non-restricted and restricted Java keywords, correspondingly there are two kinds of Java identifiers. One kind excludes only non-restricted keywords: these identifiers are usable in most contexts. The other kind excludes restricted keywords as well (with a slight exception; see midentifier): these identifiers are usable in certain module-related contexts.

Here we also formalize Java type identifiers [JLS14:3.8], which are slightly more restricted identifiers.

Subtopics

Midentifier
Fixtype of Java identifiers, for module-related contexts.
Ascii-identifier-part-p
Check if an ASCII character can be non-starting part of identifiers.
Identifier
Fixtype of Java identifiers, for most contexts.
Tidentifier
Fixtype of Java type identifiers.
Umidentifier
Fixtype of Java unqualified method identifiers.
Ascii-identifier-ignore-p
Check if an ASCII character is ignorable in identifiers.
Ascii-identifier-start-p
Check if an ASCII character can start identifiers.
Nonascii-identifier-part-p
Check if a non-ASCII Java Unicode character can be non-starting part of identifiers.
Nonascii-identifier-ignore-p
Check if a non-ASCII Java Unicode character is ignorable in identifiers.
Nonascii-identifier-start-p
Check if a non-ASCII Java Unicode character can start identifiers.
Identifier-part-listp
Check if a list of Java Unicode characters consists of only characters that can be non-starting parts of identifiers.
Identifier-start-p
Check if a Java Unicode character can start identifiers.
Identifier-part-p
Check if a Java Unicode character can be non-starting part of identifiers.
Identifier-ignore-p
Check if a Java Unicode character is ignorable in identifiers.
No-identifier-ignore-p
Check if a list of Java Unicode characters does not include any character that is ignorable in identifiers.
Tidentifierp
Recognizer for tidentifier.
Identifierp
Recognizer for identifier.
Umidentifier-fix
Fixer for umidentifierp.
Tidentifier-fix
Fixer for tidentifierp.
Midentifier-fix
Fixer for midentifierp.
Identifier-fix
Fixer for identifierp.
Umidentifierp
Recognizer for umidentifier.
Midentifierp
Recognizer for midentifier.
Identifier-list
Fixtype of lists of Java identifiers, for most contexts.