Inline::Java::Callback 0.52
Sponsored Links
Inline::Java::Callback 0.52 Ranking & Summary
User Review:
0 (0 times)
File size:
0.092 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
941
Date added:
2007-06-04
Publisher:
Patrick LeBoutillier and Brian Ingerson
Inline::Java::Callback 0.52 description
Inline::Java::Callback is a callback into Perl from Java.
SYNOPSIS
use Inline Java => <<END ;
import org.perl.inline.java.* ;
class Pod_caller extends InlineJavaPerlCaller {
public Pod_caller() throws InlineJavaException {
}
public String perl()
throws InlineJavaException, InlineJavaPerlException {
return (String)CallPerlSub("main::perl",
new Object [] {}) ;
}
}
END
my $pc = new Pod_caller() ;
print($pc->perl() . "n") ; # prints perl
sub perl {
return "perl" ;
}
Inline::Java::Callback allows you to call Perl functions from Java. To do this you need to create an org.perl.inline.java.InlinePerlCaller object. Here is a example of a typical use:
use Inline Java => <<END ;
import java.util.* ;
import org.perl.inline.java.* ;
class Pod_regexp extends InlineJavaPerlCaller {
public Pod_regexp() throws InlineJavaException {
}
public boolean match(String target, String pattern)
throws InlineJavaException {
try {
String m = (String)CallPerlSub("main::regexp",
new Object [] {target, pattern}) ;
if (m.equals("1")){
return true ;
}
}
catch (InlineJavaPerlException pe){
// $@ is in pe.GetObject()
}
return false ;
}
}
END
my $re = new Pod_regexp() ;
my $match = $re->match("Inline::Java", "^Inline") ;
print($match . "n") ; # prints 1
sub regexp {
my $target = shift ;
my $pattern = shift ;
return ($target =~ /$pattern/) ;
}
SYNOPSIS
use Inline Java => <<END ;
import org.perl.inline.java.* ;
class Pod_caller extends InlineJavaPerlCaller {
public Pod_caller() throws InlineJavaException {
}
public String perl()
throws InlineJavaException, InlineJavaPerlException {
return (String)CallPerlSub("main::perl",
new Object [] {}) ;
}
}
END
my $pc = new Pod_caller() ;
print($pc->perl() . "n") ; # prints perl
sub perl {
return "perl" ;
}
Inline::Java::Callback allows you to call Perl functions from Java. To do this you need to create an org.perl.inline.java.InlinePerlCaller object. Here is a example of a typical use:
use Inline Java => <<END ;
import java.util.* ;
import org.perl.inline.java.* ;
class Pod_regexp extends InlineJavaPerlCaller {
public Pod_regexp() throws InlineJavaException {
}
public boolean match(String target, String pattern)
throws InlineJavaException {
try {
String m = (String)CallPerlSub("main::regexp",
new Object [] {target, pattern}) ;
if (m.equals("1")){
return true ;
}
}
catch (InlineJavaPerlException pe){
// $@ is in pe.GetObject()
}
return false ;
}
}
END
my $re = new Pod_regexp() ;
my $match = $re->match("Inline::Java", "^Inline") ;
print($match . "n") ; # prints 1
sub regexp {
my $target = shift ;
my $pattern = shift ;
return ($target =~ /$pattern/) ;
}
Inline::Java::Callback 0.52 Screenshot
Inline::Java::Callback 0.52 Keywords
Bookmark Inline::Java::Callback 0.52
Inline::Java::Callback 0.52 Copyright
WareSeeker.com do not provide cracks, serial numbers etc for Inline::Java::Callback 0.52. Any sharing links from rapidshare.com, yousendit.com or megaupload.com are also prohibited.
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Software
Inline::Java lets you write Perl classes in Java and wrap/use existing Java classes. Free Download
Inline::Java::PerlInterpreter is a Perl module used to call Perl directly from Java using Inline::Java. Free Download
Inline::CPP is a Perl module that can write Perl subroutines and classes in C++. Free Download
Tk::callbacks allows specifying code for Tk to call. Free Download
Inline::Select contains dynamic selection of ILSM for a package. Free Download
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. Free Download
Java::JCR::Lock is a Perl module that can load JCR lock extension wrappers. Free Download
Java::JCR::Lock::Lock is a Perl wrapper for javax.jcr.lock.Lock. Free Download
Latest Software
Popular Software
Favourite Software