Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.jvm
Interface CodeGenerationStrategy

All Superinterfaces:
  Describable

public interface CodeGenerationStrategy
extends Describable

A representation of the code generation strategy used to generate code for a method or constructor.

Typically the JVM will choose a strategy depending on profiling data telling the cost/benefit ratio of a methods usage and the 'cost' of regenerating the method using a certain strategy.

Author:
  Marcus Hirt

Method Summary
`java.lang.String` | `getDescription()` Returns a description of the code generation strategy.
`int` | `getLevel()` Get a numerical 'optimization level' for this OptimizationLevel.

Method Detail

### getLevel

    public int getLevel()

  Get a numerical 'optimization level' for this OptimizationLevel. It is assumed that increasing numbers represent more expensive code generation, and hopefully better generated code.

  Returns:
    see above.

### getDescription

    public java.lang.String getDescription()

  Returns a description of the code generation strategy.

  Specified by:
    `getDescription` in interface `Describable`
  Returns:
    the description as a String.
  See Also:
    `Describable.getDescription()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD