Uses of Interface
spoon.reflect.cu.CompilationUnit
Packages that use CompilationUnit
Package
Description
This package defines compilation units that hold the source code and some classes around them (in most cases, these features should be ignored by the programmers).
This package defines all the sub-factories for the Spoon meta-model.
This package contains some default implementations for commonly used processing tasks.
-
Uses of CompilationUnit in spoon.reflect.cu
Methods in spoon.reflect.cu that return CompilationUnitModifier and TypeMethodDescriptionSourcePosition.getCompilationUnit()
Gets the compilation unit for this position. -
Uses of CompilationUnit in spoon.reflect.cu.position
Classes in spoon.reflect.cu.position that implement CompilationUnitMethods in spoon.reflect.cu.position that return CompilationUnit -
Uses of CompilationUnit in spoon.reflect.factory
Methods in spoon.reflect.factory that return CompilationUnitModifier and TypeMethodDescriptionadd a new type to be pretty-printedCompilationUnitFactory.create()
Creates a compilation unit with no associated files.CoreFactory.createCompilationUnit()
Creates a compilation unit.Factory.createCompilationUnit()
FactoryImpl.createCompilationUnit()
CompilationUnitFactory.getOrCreate(String filePath)
Creates or gets a compilation unit for a given file path.CompilationUnitFactory.getOrCreate(CtModule module)
CompilationUnitFactory.getOrCreate(CtPackage ctPackage)
CompilationUnitFactory.getOrCreate(CtType type)
Returns the compilation unit corresponding to this type.CompilationUnitFactory.removeFromCache(String filePath)
Removes compilation unit from the cache and returns it Used by JDTSnippetCompiler to remove processed snippet from the cacheMethods in spoon.reflect.factory that return types with arguments of type CompilationUnitModifier and TypeMethodDescriptionCompilationUnitFactory.getMap()
Gets an immutable compilation unit map.Methods in spoon.reflect.factory with parameters of type CompilationUnitModifier and TypeMethodDescriptionCoreFactory.createBodyHolderSourcePosition(CompilationUnit compilationUnit, int nameSource, int nameEnd, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
Creates a body holder source position.Factory.createBodyHolderSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
FactoryImpl.createBodyHolderSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
CoreFactory.createCompoundSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
Creates a compound source position.CoreFactory.createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
Creates a declaration source position.Factory.createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
FactoryImpl.createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
CoreFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
Creates a source position that points to the given compilation unitFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
FactoryImpl.createPartialSourcePosition(CompilationUnit compilationUnit)
CoreFactory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
Creates a source position.Factory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
FactoryImpl.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
-
Uses of CompilationUnit in spoon.support
Methods in spoon.support that return CompilationUnitMethods in spoon.support with parameters of type CompilationUnitModifier and TypeMethodDescriptionDefaultCoreFactory.createBodyHolderSourcePosition(CompilationUnit compilationUnit, int nameStart, int nameEnd, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
DefaultCoreFactory.createCompoundSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
DefaultCoreFactory.createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
DefaultCoreFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
DefaultCoreFactory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
-
Uses of CompilationUnit in spoon.support.compiler.jdt
Methods in spoon.support.compiler.jdt that return CompilationUnitMethods in spoon.support.compiler.jdt with parameters of type CompilationUnitModifier and TypeMethodDescriptionprotected InputStream
JDTBasedSpoonCompiler.getCompilationUnitInputStream(CompilationUnit cu)
-
Uses of CompilationUnit in spoon.support.reflect.cu
Classes in spoon.support.reflect.cu that implement CompilationUnit -
Uses of CompilationUnit in spoon.support.reflect.cu.position
Methods in spoon.support.reflect.cu.position that return CompilationUnitModifier and TypeMethodDescriptionPartialSourcePositionImpl.getCompilationUnit()
SourcePositionImpl.getCompilationUnit()
Constructors in spoon.support.reflect.cu.position with parameters of type CompilationUnitModifierConstructorDescriptionBodyHolderSourcePositionImpl(CompilationUnit compilationUnit, int nameStart, int nameEnd, int modifierSourceStart, int modifierSourceEnd, int declarationSourceStart, int declarationSourceEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
CompoundSourcePositionImpl(CompilationUnit compilationUnit, int nameStart, int nameEnd, int declarationSourceStart, int declarationSourceEnd, int[] lineSeparatorPositions)
DeclarationSourcePositionImpl(CompilationUnit compilationUnit, int nameStart, int nameEnd, int modifierSourceStart, int modifierSourceEnd, int declarationSourceStart, int declarationSourceEnd, int[] lineSeparatorPositions)
PartialSourcePositionImpl(CompilationUnit compilationUnit)
SourcePositionImpl(CompilationUnit compilationUnit, int sourceStart, int sourceEnd, int[] lineSeparatorPositions)