.. index:: java(Reference，ReturnValue)
.. _java/2:

.. rst-class:: right

**object**

``java(Reference,ReturnValue)``
===============================

* ``Reference`` - Either a class name or a Java reference to an object
* ``ReturnValue`` - Value returned by a method call (possibly the Java value void)


Minimal abstraction of the JPL API for calling Java from Logtalk using familiar message sending syntax and a ``forward/1`` handler to resolve methods.

| **Author:** Paulo Moura and Sergio Castro
| **Version:** 1.3
| **Date:** 2019/6/13

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Implements:**
|    ``public`` :ref:`forwarding <forwarding/0>`
|    ``public`` :ref:`java_access_protocol <java_access_protocol/0>`

| **Remarks:**


   - *Usage:* Send to this object any valid message as listed in the JavaDocs for the given reference.

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(see entity ancestors)

Protected predicates
--------------------

(see entity ancestors)

Private predicates
------------------

(see entity ancestors)

Operators
---------

(none)

.. seealso::

   :ref:`java(Reference) <java/1>`, :ref:`java <java/0>`, :ref:`java_hook <java_hook/0>`

