|
|||||||||||
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,
OptimizationLevel optimizationlevel,
long compilationTime)
Constructor. |
|
CompilationEvent(java.lang.reflect.Method method,
OptimizationLevel optimizationlevel,
long compilationTime)
Constructor. |
Method Summary | |
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()
Returns the OptimizationLevel that was used when compiling the Method. |
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.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.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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |