|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jam.provider.JamClassBuilder
org.codehaus.jam.provider.CompositeJamClassBuilder
public class CompositeJamClassBuilder
Composite implementation of JamClassBuilder. When building, the first one in the list to not return null wins.
Constructor Summary | |
---|---|
CompositeJamClassBuilder(JamClassBuilder[] builders)
|
Method Summary | |
---|---|
MClass |
build(java.lang.String pkg,
java.lang.String cname)
This is called by JAM when it attempts to load a class. |
void |
init(ElementContext ctx)
This method is called by JAM to initialize this class builder. |
Methods inherited from class org.codehaus.jam.provider.JamClassBuilder |
---|
assertInitialized, createClassToBuild, createClassToBuild, getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeJamClassBuilder(JamClassBuilder[] builders)
Method Detail |
---|
public void init(ElementContext ctx)
JamClassBuilder
init
in class JamClassBuilder
public MClass build(java.lang.String pkg, java.lang.String cname)
JamClassBuilder
This is called by JAM when it attempts to load a class. If the builder has access to an artifact (typically a java source or classfile) that represents the given type, it should call createClassToBuild() to get a new instance of MClass and then return it. No caching should be performed - if an MClass is going to be returned, it should be a new instance returned by createClassToBuild()
If no artififact is available, the builder should just return null, signalling that other JamClassBuilders should attempt to build the class.
build
in class JamClassBuilder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |