Package spoon.reflect
This package defines the Spoon's compile-time meta-model of Java programs.
The meta-model defines a read/write compile-time meta-representation of Java 5 programs.
The programmers should instantiate or resolve the meta-elements by using Factory
's sub-factories because it ensures
the model consistency. The CoreFactory
is the raw factory for program elements and is the
only factory to be implemented when wanting to provide an alternative implementation of the Spoon meta-model.
Related Documentation
-
Interface Summary Interface Description CtModel represents a Java program, modeled by a set of compile-time (Ct) objects where each object is a program element (for instance, a CtClass represents a class).ModelStreamer This interface defines the protocol to save and load a factory and it's associated model through output and input streams. -
Class Summary Class Description CtModelImpl CtModelImpl.CtRootPackage ModelElementContainerDefaultCapacities Recommended default capacities for containers (primarilyArrayList
) of AST model elements.