• 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
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
                • Jbinop
                • Jmethod
                • Jtype
                • Jfield
                • Jexprs
                • Jliteral
                • Junop
                • Jlocvar
                • Jcunit
                • Jaccess
                • Maybe-jexpr
                • Jparam
                • Jimport
                • Jcinitializer
                • Jresult
                • Jstatems+jblocks
                • Jexpr-get-field
                • Jliteral-long-dec-nouscores
                • Nat-to-dec-chars-theorems
                • Jmethods-to-jcbody-elements
                • Jclasses-to-jcbody-elements
                • Jblock-locvar-final
                • Jblock-locvar
                • Jliteral-int-dec-nouscores
                • Jfields-to-jcbody-elements
                • Jblock-for
                • Jblock-smethod
                • Jblock-imethod
                • Jblock-ifelse
                • Jblock-asg-name
                • Jparam-list->types
                • Jparam-list->names
                • Jexpr-lit-long-dec-nouscores
                • Jexpr-lit-int-dec-nouscores
                • Jexpr-literal-string
                • Jexpr-literal-floating
                • Jexpr-literal-character
                • Jblock-while
                • Jblock-method
                • Jblock-if
                • Jblock-expr
                • Jblock-do
                • Jblock-asg
                • Jexpr-name-list
                • Jblock-throw
                • Jblock-return
                • Jparam-list
                • Jimport-list
                • Jexpr-literal-true
                • Jexpr-literal-null
                • Jexpr-literal-false
                • Jexpr-literal-1
                • Jexpr-literal-0
                • Jclass-list
                • Jblock-continue
                • Jtype-short
                • Jtype-long
                • Jtype-list
                • Jtype-int
                • Jtype-float
                • Jtype-double
                • Jtype-char
                • Jtype-byte
                • Jtype-boolean
                • Jmethod-list
                • Jliteral-list
                • Jfield-list
                • Jblock-list
                • Jblock-break
                • Jclasses+jcmembers
                  • Jclass
                    • Make-jclass
                      • Jclassp
                      • Jclass-equiv
                      • Jclass->superinterfaces
                      • Change-jclass
                      • Jclass->superclass?
                      • Jclass->strictfp?
                      • Jclass->abstract?
                      • Jclass->static?
                      • Jclass->final?
                      • Jclass->body
                      • Jclass->access
                      • Jclass->name
                      • Jclass-fix
                      • Jclass-count
                    • Jcmember
                    • Jcbody-element
                    • Jcbody-element-list
                • Atj-input-processing
                • Atj-java-pretty-printer
                • Atj-code-generation
                • Atj-java-primitives
                • Atj-java-primitive-arrays
                • Atj-type-macros
                • Atj-java-syntax-operations
                • Atj-fn
                • Atj-library-extensions
                • Atj-java-input-types
                • Atj-test-structures
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • 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
    • Jclass

    Make-jclass

    Basic constructor macro for jclass structures.

    Syntax
    (make-jclass [:access <access>] 
                 [:abstract? <abstract?>] 
                 [:static? <static?>] 
                 [:final? <final?>] 
                 [:strictfp? <strictfp?>] 
                 [:name <name>] 
                 [:superclass? <superclass?>] 
                 [:superinterfaces <superinterfaces>] 
                 [:body <body>]) 
    

    This is the usual way to construct jclass structures. It simply conses together a structure with the specified fields.

    This macro generates a new jclass structure from scratch. See also change-jclass, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-jclass

    (defmacro make-jclass (&rest args)
      (std::make-aggregate 'jclass
                           args
                           '((:access)
                             (:abstract?)
                             (:static?)
                             (:final?)
                             (:strictfp?)
                             (:name)
                             (:superclass?)
                             (:superinterfaces)
                             (:body))
                           'make-jclass
                           nil))

    Function: jclass

    (defun jclass (access abstract? static? final? strictfp?
                          name superclass? superinterfaces body)
     (declare (xargs :guard (and (jaccessp access)
                                 (booleanp abstract?)
                                 (booleanp static?)
                                 (booleanp final?)
                                 (booleanp strictfp?)
                                 (stringp name)
                                 (maybe-stringp superclass?)
                                 (string-listp superinterfaces)
                                 (jcbody-element-listp body))))
     (declare (xargs :guard t))
     (let ((__function__ 'jclass))
       (declare (ignorable __function__))
       (b*
         ((access (mbe :logic (jaccess-fix access)
                       :exec access))
          (abstract? (mbe :logic (acl2::bool-fix abstract?)
                          :exec abstract?))
          (static? (mbe :logic (acl2::bool-fix static?)
                        :exec static?))
          (final? (mbe :logic (acl2::bool-fix final?)
                       :exec final?))
          (strictfp? (mbe :logic (acl2::bool-fix strictfp?)
                          :exec strictfp?))
          (name (mbe :logic (str-fix name) :exec name))
          (superclass? (mbe :logic (acl2::maybe-string-fix superclass?)
                            :exec superclass?))
          (superinterfaces (mbe :logic (string-list-fix superinterfaces)
                                :exec superinterfaces))
          (body (mbe :logic (jcbody-element-list-fix body)
                     :exec body)))
         (list (cons 'access access)
               (cons 'abstract? abstract?)
               (cons 'static? static?)
               (cons 'final? final?)
               (cons 'strictfp? strictfp?)
               (cons 'name name)
               (cons 'superclass? superclass?)
               (cons 'superinterfaces superinterfaces)
               (cons 'body body)))))