public class ReflectClassBuilder extends JamClassBuilder implements JamClassPopulator
Constructor and Description |
---|
ReflectClassBuilder(ClassLoader rcl) |
Modifier and Type | Method and Description |
---|---|
MClass |
build(String packageName,
String className)
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.
|
void |
populate(MClass dest)
Called by JAM to 'fill out' an instance of a given MClass with
things like methods and fields.
|
public ReflectClassBuilder(ClassLoader rcl)
public void init(ElementContext ctx)
JamClassBuilder
init
in class JamClassBuilder
public MClass build(String packageName, String className)
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
public void populate(MClass dest)
JamClassPopulator
Called by JAM to 'fill out' an instance of a given MClass with things like methods and fields. The implementing builder is responsible for inspecting the source artifact (typically a source or class file) to call the appropriate createX methods on the given MClass.
populate
in interface JamClassPopulator
Copyright © 2010 - 2020 Adobe. All Rights Reserved