|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.juliak.asm.AbstractClassGenerator
public abstract class AbstractClassGenerator
Root class for InterfaceType
-based class generators.
Constructor Summary | |
---|---|
AbstractClassGenerator()
|
Method Summary | |
---|---|
Class |
generate(InterfaceType it,
InitializationContext ic)
Generate a class implementing the given Fractal interface type. |
abstract byte[] |
generate(String targetClassname,
InterfaceType it,
InitializationContext ic)
Generate the bytecode of a class implementing the given Fractal interface type. |
protected ClassLoader |
getClassLoader()
|
protected abstract String |
getClassNameSuffix(InterfaceType it)
Return the name of the suffix which is appended to generated class names. |
protected Loader |
getLoader()
|
String |
getTargetClassName(InterfaceType it)
Return the name of the class generated by the current class generator for the specified interface type. |
abstract boolean |
match(InterfaceType it)
Return true if the mode (IN, OUT or IN_OUT) of the class generator matchs the mode (client or server) of the given interface type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractClassGenerator()
Method Detail |
---|
protected abstract String getClassNameSuffix(InterfaceType it)
public abstract boolean match(InterfaceType it)
match
in interface ClassGenerator
public abstract byte[] generate(String targetClassname, InterfaceType it, InitializationContext ic) throws InstantiationException
generate
in interface ClassGenerator
targetClassname
- the name of the class to generateit
- the corresponding interface typeic
- the context for initializing the generated class
InstantiationException
public Class generate(InterfaceType it, InitializationContext ic) throws InstantiationException
generate
in interface ClassGenerator
it
- the interface typeic
- the context for initializing the generated class
InstantiationException
public String getTargetClassName(InterfaceType it)
getTargetClassName
in interface ClassGenerator
protected Loader getLoader()
protected ClassLoader getClassLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |