Java Code Examples for spoon.reflect.declaration.CtType#getQualifiedName()

The following examples show how to use spoon.reflect.declaration.CtType#getQualifiedName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpoonedFile.java    From nopol with GNU General Public License v2.0 5 votes vote down vote up
protected synchronized void processModelledClasses(Collection<? extends CtType<?>> modelledClasses, Collection<? extends Processor<?>> processors) {
    setProcessors(processors);
    for (CtType<?> modelledClass : modelledClasses) {
        String qualifiedName = modelledClass.getQualifiedName();
        //logDebug(logger(), format("[Spoon processing of %s]", qualifiedName));
        try {
            processingManager().process(modelledClass);
        } catch (ProcessInterruption e) {
            continue;
        }
    }
}
 
Example 2
Source File: SpoonedClass.java    From nopol with GNU General Public License v2.0 4 votes vote down vote up
public SpoonedClass(SpoonedProject parentProject, CtType<?> modelledClass, NopolContext nopolContext) {
    super(new File[] { modelledClass.getPosition().getFile() }, nopolContext);
    this.parentProject = parentProject;
    qualifiedClassName = modelledClass.getQualifiedName();
    compiledClasses().putAll(parentProject().compiledClasses());
}