Class ParserClassBuilder
- java.lang.Object
-
- org.apache.xmlbeans.impl.jam.provider.JamClassBuilder
-
- org.apache.xmlbeans.impl.jam.internal.parser.ParserClassBuilder
-
- All Implemented Interfaces:
JamClassPopulator
public class ParserClassBuilder extends JamClassBuilder implements JamClassPopulator
-
-
Constructor Summary
Constructors Constructor Description ParserClassBuilder(JamServiceContext jsp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MClass
build(java.lang.String pkg, java.lang.String name)
This is called by JAM when it attempts to load a class.static void
main(java.lang.String[] files)
void
populate(MClass m)
Called by JAM to 'fill out' an instance of a given MClass with things like methods and fields.-
Methods inherited from class org.apache.xmlbeans.impl.jam.provider.JamClassBuilder
init
-
-
-
-
Constructor Detail
-
ParserClassBuilder
public ParserClassBuilder(JamServiceContext jsp)
-
-
Method Detail
-
build
public MClass build(java.lang.String pkg, java.lang.String name)
Description copied from class: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.
- Specified by:
build
in classJamClassBuilder
- Returns:
-
populate
public void populate(MClass m)
Description copied from interface: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.
- Specified by:
populate
in interfaceJamClassPopulator
-
main
public static void main(java.lang.String[] files)
-
-