-
Notifications
You must be signed in to change notification settings - Fork 36
Provided classes
FileReader class is provided APIs for reading pre-compiled Java class file.
For an example as follows:
$javaClass = new JavaClass(
new FileReader('/path/to/File.class')
);
// or
$javaClass = new JavaClass(
new FileReader('/path/to/File')
);public function __construct(string $file)No introduction.
| Name | Type | Description |
|---|---|---|
| $file | string | Specify file path which you want emulating Java class file. |
public function getBinaryReader(): BinaryReaderReturn an initiated BinaryReader instance.
No parameters.
public function getJavaPathName(): stringGet a real Java class file name.
No parameters.
public function getFileName(): stringGet a real Java class file path.
No parameters.
public function __toString(): stringGet a real Java class file path.
No parameters.
InlineReader class is provided APIs for reading pre-compiled Java class in inline.
$javaClass = new JavaClass(
new InlineReader('/path/to/File.class')
);
// or
$javaClass = new JavaClass(
new InlineReader('/path/to/File')
);public function __construct(string $fileName, string $code)No introduction.
| Name | Type | Description |
|---|---|---|
| $fileName | string | Specify virtual file name for Java class name. |
| $code | string | Specify raw Java class binary. |
public function getBinaryReader(): BinaryReaderReturn an initiated BinaryReader instance.
No parameters.
public function getJavaPathName(): stringGet a real Java class file name.
No parameters.
public function getFileName(): stringGet a real Java class file path.
No parameters.
public function __toString(): stringGet a real Java class file path.
No parameters.
JavaClass class is provided APIs for reading Java class which implemented PHPJava\Core\Stream\Reader\ReaderInterface.
TBD
TBD
JavaArchive class is provided APIs for executing .jar file.
TBD
TBD
GlobalOptions class is provided APIs for changing behavior settings to execute PHPJava.
TBD
TBD
_Boolean class is provided APIs for emulating Java's boolean on PHPJava.
TBD
TBD
_Byte class is provided APIs for emulating Java's byte on PHPJava.
TBD
TBD
_Char class is provided APIs for emulating Java's char on PHPJava.
TBD
TBD
_Double class is provided APIs for emulating Java's double on PHPJava.
TBD
TBD
_Float class is provided APIs for emulating Java's float on PHPJava.
TBD
TBD
_Int class is provided APIs for emulating Java's int on PHPJava.
TBD
TBD
_Long class is provided APIs for emulating Java's long on PHPJava.
TBD
TBD
_Short class is provided APIs for emulating Java's short on PHPJava.
TBD
TBD
Generator class is provided APIs for generating an array with specified Java's type by PHPJava.
TBD
TBD
TypeResolver class is provided APIs for resolving Java's signature, converting types to PHP to Java and vice versa.
TBD
TBD
Formatter class is provided APIs for formatting method names, parameter names and so on.
TBD
TBD
- The Contribution Guide
- CHANGELOG
- How to run JavaClass
- How to run JavaArchive
- How to run Kotlin
-
Provided classes
- Core
- Types
- Utilities
- Provided options
- Operation Injector