|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.bea.jvm.event.CompilationEvent
An event delivered when a Method is compiled by the JVM.
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
CompilationEvent(java.lang.reflect.Constructor constructor,
CodeGenerationStrategy strategy,
long compilationTime)
Constructor. |
|
CompilationEvent(java.lang.reflect.Constructor constructor,
OptimizationLevel optimizationlevel,
long compilationTime)
Deprecated. Replaced. @see CompilationEvent#CompilationEvent(Constructor, CodeGenerationStrategy, long) |
|
CompilationEvent(java.lang.reflect.Method method,
CodeGenerationStrategy strategy,
long compilationTime)
Constructor. |
|
CompilationEvent(java.lang.reflect.Method method,
OptimizationLevel optimizationlevel,
long compilationTime)
Deprecated. Replaced. @see CompilationEvent#CompilationEvent(Method, CodeGenerationStrategy, long) |
|
CompilationEvent(java.lang.Object constructorOrMethod,
CodeGenerationStrategy strategy,
OptimizationLevel optimizationLevel,
long compilationTime)
Temporary Constructor that will be removed with all the other deprecated methods in the next release. |
Method Summary | |
CodeGenerationStrategy |
getCodeGenerationStrategy()
Returns the CodeGenerationStrategy that was used to compile the Method. |
long |
getCompilationTime()
Returns the time, in nanoseconds, it took to compile this method. |
java.lang.reflect.Constructor |
getConstructor()
Returns the Constructor that was compiled, which ultimately caused this event to be created. |
java.lang.reflect.Method |
getMethod()
Returns the Method that was compiled, which ultimately caused this event to be created. |
OptimizationLevel |
getOptimizationLevel()
Deprecated. Replaced. @see CompilationEvent#getCodeGenerationStrategy(). |
boolean |
hasConstructor()
Returns true if this event has a Constructor, and not a Method. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompilationEvent(java.lang.reflect.Method method, OptimizationLevel optimizationlevel, long compilationTime)
method
- the method that was compiled.optimizationlevel
- level of optimization used.compilationTime
- the time it took to compile the method in ns.public CompilationEvent(java.lang.reflect.Method method, CodeGenerationStrategy strategy, long compilationTime)
method
- the method that was compiled.strategy
- the code generation strategy used.compilationTime
- the time it took to compile the method in ns.public CompilationEvent(java.lang.reflect.Constructor constructor, OptimizationLevel optimizationlevel, long compilationTime)
constructor
- the constructor that was compiled.optimizationlevel
- level of optimization used.compilationTime
- the time it took to compile the method in ns.public CompilationEvent(java.lang.reflect.Constructor constructor, CodeGenerationStrategy strategy, long compilationTime)
constructor
- the constructor that was compiled.strategy
- the code generation strategy used.compilationTime
- the time it took to compile the method in ns.public CompilationEvent(java.lang.Object constructorOrMethod, CodeGenerationStrategy strategy, OptimizationLevel optimizationLevel, long compilationTime)
strategy
- the code generation strategy used.compilationTime
- the time it took to compile the method in ns.Method Detail |
public OptimizationLevel getOptimizationLevel()
public java.lang.reflect.Method getMethod() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.public java.lang.reflect.Constructor getConstructor() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.public boolean hasConstructor()
public long getCompilationTime()
public CodeGenerationStrategy getCodeGenerationStrategy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |