• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • 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
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • 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.