/JavaBridge.inc

Description
Includes
require_once ("${JAVA_BASE}/JavaProxy.inc") (line 65)
Functions
Java (line 184)

Access the java type with the given name.

Access the java type with the given name. This procedure can be used to access constants or procedures within a class.
To access class features, use the java constructor instead.
Example:

  1.  java("java.lang.Long")->MAX_VALUE

  • see: Java
  • access: public
void Java (string $name)
  • string $name: The type name
java_autoload (line 155)

Load a set of java libraries and make them available in the current name space.

Load a set of java libraries and make them available in the current name space. Available since php 5.3. Example:

  1.  java_autoload("lucene.jar:log4j.jar");
  2.  
  3.  use org::apache::lucene;
  4.  use org::apache::lucene::index;
  5.  use org::apache::lucene::search;
  6.  use org::apache::lucene::search::IndexSearcher as LuceneSearcher;
  7.  
  8.  $searcher new LuceneSearcher(...);
  9.  $term new index::Term("name""someTerm");
  10.  $phrase new search::PhraseQuery();
  11.  
  12.  $phrase->add($term);
  13.  $hits $searcher->search($phrase);
  14.  ...

  • since: PHP 5.3
  • access: public
void java_autoload ([string $libs = null])
  • string $libs: The libraries separated by a semicolon
java_is_false (line 290)

Checks whether a value is false or not.

Checks whether a value is false or not. Example:

  1.  java_is_false(java("java.lang.System")->getProperty("foo"))

  • return: if the PHP or Java value is false.
  • access: public
true java_is_false (mixed $value)
  • mixed $value: A Java object or a PHP value
java_is_null (line 254)

Checks whether a value is null or not.

Checks whether a value is null or not. Example:

  1.  java_is_null(java("java.lang.System")->getProperty("foo"))

  • return: if $value is the PHP or Java null value.
  • access: public
true java_is_null (mixed $value)
  • mixed $value: A Java object or a PHP value
java_is_true (line 272)

Checks whether a value is true or not.

Checks whether a value is true or not. Example:

  1.  java_is_true(java("java.lang.System")->getProperty("foo"))

  • return: if the PHP or Java value is true.
  • access: public
true java_is_true (mixed $value)
  • mixed $value: A Java object or a PHP value

Documentation generated on Mon, 05 Jan 2009 21:10:56 +0100 by phpDocumentor 1.4.2