org.objectweb.fractal.aokell.lib.asm
Class ASMGeneratorForBoundableInterface

java.lang.Object
  extended by org.objectweb.fractal.aokell.lib.asm.ASMGeneratorForBoundableInterface
All Implemented Interfaces:
GeneratorItf

public class ASMGeneratorForBoundableInterface
extends Object
implements GeneratorItf

This class generates Interface implementations for interfaces which are bound to a target interface. This is typically the case of:

Author:
Lionel Seinturier

Constructor Summary
ASMGeneratorForBoundableInterface()
           
 
Method Summary
 ClassDefinition generate(String targetClassname, String delegateClassname)
          Generate an Interface implementation by extending InterfaceImpl.
protected  String getInterfaceImpl()
          Return the name of the Interface implementation to be used as super class for generated implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMGeneratorForBoundableInterface

public ASMGeneratorForBoundableInterface()
Method Detail

generate

public ClassDefinition generate(String targetClassname,
                                String delegateClassname)
Generate an Interface implementation by extending InterfaceImpl.

Specified by:
generate in interface GeneratorItf
Parameters:
targetClassname - the name of the generated class
delegateClassname - the name of the class where calls will be delegated
Returns:
the generated class definition (Class and bytecode)

getInterfaceImpl

protected String getInterfaceImpl()
Return the name of the Interface implementation to be used as super class for generated implementations.