|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to the compilation (machine code generation) unit of the JVM.
| Method Summary | |
void |
addCompilationListener(CompilationListener listener)
Adds a listener to recieve notification when a method is compiled. |
boolean |
forceCompilation(java.lang.reflect.Constructor constructor)
Force the compiler to generate code for the specified Constructor using the default OptimizationLevel. |
boolean |
forceCompilation(java.lang.reflect.Constructor constructor,
OptimizationLevel optLevel)
Forces the compiler to generate code for the specified constructor using the specified OptimizationLevel. |
boolean |
forceCompilation(java.lang.reflect.Method method)
Force the compiler to generate code for this method using the default OptimizationLevel. |
boolean |
forceCompilation(java.lang.reflect.Method method,
OptimizationLevel optLevel)
Forces the compiler to generate code for this method using the specified OptimizationLevel. |
OptimizationLevel |
getOptimizationLevel(java.lang.reflect.Constructor constructor)
Returns the OptimizationLevel for a Constructor. |
OptimizationLevel |
getOptimizationLevel(java.lang.reflect.Method method)
Returns the OptimizationLevel for a Method. |
java.util.List |
getOptimizationLevels()
Returns a List of the available OptimizationLevels in this CompilationSystem, in ascending order, i.e. starting with the lowest level (unoptimized), followed by increasing optimization levels. |
boolean |
isCompiled(java.lang.reflect.Constructor constructor)
Returns boolean true if the Constructor is compiled, false otherwise. |
boolean |
isCompiled(java.lang.reflect.Method method)
Returns boolean true if the Method is compiled, false otherwise. |
boolean |
isOptimized(java.lang.reflect.Constructor constructor)
Returns boolean true if the Method is optimized, i.e. has an optimization level higher than the lowest available one. |
boolean |
isOptimized(java.lang.reflect.Method method)
Returns boolean true if the Method is optimized, i.e. has an optimization level higher than the lowest available one. |
void |
redefineMethod(java.lang.reflect.Method method,
byte[] buffer,
int offset,
int length)
Redefines the specified method. |
void |
removeCompilationListener(CompilationListener listener)
Removes a listener which recieves notification when a method is compiled. |
| Methods inherited from interface com.bea.jvm.Describable |
getDescription |
| Method Detail |
public java.util.List getOptimizationLevels()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.OptimizationLevel
public boolean isCompiled(java.lang.reflect.Method method)
throws NotAvailableException
method - the method to check.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean isCompiled(java.lang.reflect.Constructor constructor)
throws NotAvailableException
constructor - the constructor to check.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean isOptimized(java.lang.reflect.Method method)
throws NotAvailableException
method - the Method to check.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean isOptimized(java.lang.reflect.Constructor constructor)
throws NotAvailableException
constructor - the Constructor to check.
NotAvailableException - if this functionality isn't available in
this JVM.
public OptimizationLevel getOptimizationLevel(java.lang.reflect.Method method)
throws NotAvailableException
method - the Method for which to return the optimization level.
NotAvailableException - if this functionality isn't available in
this JVM.OptimizationLevel
public OptimizationLevel getOptimizationLevel(java.lang.reflect.Constructor constructor)
throws NotAvailableException
constructor - the Constructor for which to return the optimization
level.
NotAvailableException - if this functionality isn't available in
this JVM.OptimizationLevel
public boolean forceCompilation(java.lang.reflect.Method method)
throws NotAvailableException
method - the method to recompile.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean forceCompilation(java.lang.reflect.Constructor constructor)
throws NotAvailableException
constructor - the method to recompile.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean forceCompilation(java.lang.reflect.Method method,
OptimizationLevel optLevel)
throws NotAvailableException
method - the Method to recompile.optLevel - the optimization level to use when recompiling.
NotAvailableException - if this functionality isn't available in
this JVM.
public boolean forceCompilation(java.lang.reflect.Constructor constructor,
OptimizationLevel optLevel)
throws NotAvailableException
constructor - the Constructor to recompile.optLevel - the optimization level to use when recompiling.
NotAvailableException - if this functionality isn't available in
this JVM.
public void addCompilationListener(CompilationListener listener)
throws NotAvailableException
listener - the listener to receive information about compiled
methods.
NotAvailableException - if this functionality isn't available in
this JVM.
public void removeCompilationListener(CompilationListener listener)
throws NotAvailableException
listener - the listener to be removed.
NotAvailableException - if this functionality isn't available in
this JVM.
public void redefineMethod(java.lang.reflect.Method method,
byte[] buffer,
int offset,
int length)
throws NotAvailableException
method - the method to be redefined.buffer - the byte buffer containing the bytecode for the new
version of the method.offset - the offset to start reading from.length - the length to read.
NotAvailableException - if this functionality isn't available in
this JVM. This exception is currently thrown by all
JRockit versions.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||