Function: org-babel-java-find-classname

org-babel-java-find-classname is a byte-compiled function defined in ob-java.el.gz.

Signature

(org-babel-java-find-classname BODY)

Documentation

Try to find fully qualified class name in BODY.

Look through BODY for the package and class. If found, put them together into a fully qualified class name and return. Else just return class name. If that isn't found either, default to Main.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-java.el.gz
;; helper functions

(defun org-babel-java-find-classname (body)
  "Try to find fully qualified class name in BODY.
Look through BODY for the package and class.  If found, put them
together into a fully qualified class name and return.  Else just
return class name.  If that isn't found either, default to Main."
  (let ((package (if (string-match org-babel-java--package-re body)
                     (match-string 1 body)))
        (class (if (string-match org-babel-java--class-re body)
                   (match-string 1 body))))
    (or (and package class (concat package "." class))
        (and class class)
        (and package (concat package ".Main"))
        "Main")))