1 Java

Error

Ax.java: not found

2 Java Compiler

Class Ax.java.Compiler


Java in memory compiler This class allows to dynamically install a Java class in classloader

Constructor Summary

Method
Description
Creates a new java compiler instance.

Method Summary

Modifier and Type
Method
Description
Ax.text.String 
compile(Ax.text.String className, Ax.text.String code)
Compiles the specified class, whose implementation is in the code parameter.
Returns the compilation diagnostics.
Ax.text.String 
Returns the compilation error, or null if the compilation did not have any error.
boolean 
Checks if the compilation was successful.
boolean 

Constructor Detail

Ax.java.Compiler.JSCompiler

Ax.java.Compiler.JSCompiler()
Info:
Creates a new java compiler instance.

Example
Copy
var compiler = new Ax.java.Compiler();

Method Detail

Ax.java.Compiler.compile

string Ax.java.Compiler.compile(
	string className,
	string code
)
Info:
Compiles the specified class, whose implementation is in the code parameter.
Parameters:
className - name of the class to compile
code - code implementing the class
Returns:
string

Ax.java.Compiler.getDiagnostics

array Ax.java.Compiler.getDiagnostics()
Info:
Returns the compilation diagnostics.
Returns:
array

Ax.java.Compiler.getError

string Ax.java.Compiler.getError()
Info:
Returns the compilation error, or null if the compilation did not have any error.
Returns:
string

Ax.java.Compiler.isCompiled

boolean Ax.java.Compiler.isCompiled()
Info:
Checks if the compilation was successful.
Returns:
boolean

Ax.java.Compiler.isEngineAvailable

boolean Ax.java.Compiler.isEngineAvailable()
Returns:
boolean