IF Computer > MINERVA > Manual > Reference > MINERVA to Java Interface

MINERVA to Java Interface

MINERVA
ifcomputer logo
f
Expert Services on the Web

MINERVA provides three ways to use Java methods and objects.

  • Metagen: high level generator to add all methods of a given class. This is the most convenient method and highly recommended for most purposes. Based on reflection. Generates names automatically from Java counterparts, thus makes it easy to use existing Java documentation for complete libraries.

    Used in most cases that involve Java libraries, e.g. programs in ExamplePrograms/Extensions.

    Implemented in the minerva program metagen.

  • Reflection: allows fine-grained access via reflection, independent naming of Prolog and Java entities, programmer controlled timing of class retrieval and on-the-fly interface generation

    Implemented as built-in system library.

  • Static: extremely flexible mechanism to beforehand link Java libraries with MINERVA.

    Used for example for the interface with the JAVA AWT graphical user interface library.

    Implemented with the command minervax.

All three mechnisms

  • can use any Java object as opaque Prolog data type
  • allow to map Java method names to MINERVA predicate names
  • automatically convert between corresponding MINERVA and Java data types
  • can be used together as needed

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/MinervaToJavaInterface/print_en.html
published 2008/8/25 update 2002/3/20 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS