Uses of Interface
spoon.reflect.cu.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
Modifier and TypeMethodDescriptionSourcePosition.getCompilationUnit()
Gets the compilation unit for this position. -
Uses of CompilationUnit in spoon.reflect.cu.position
-
Uses of CompilationUnit in spoon.reflect.factory
Modifier 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 cacheModifier and TypeMethodDescriptionCompilationUnitFactory.getMap()
Gets an immutable compilation unit map.Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionprotected InputStream
JDTBasedSpoonCompiler.getCompilationUnitInputStream(CompilationUnit cu)
-
Uses of CompilationUnit in spoon.support.reflect.cu
-
Uses of CompilationUnit in spoon.support.reflect.cu.position
Modifier and TypeMethodDescriptionPartialSourcePositionImpl.getCompilationUnit()
SourcePositionImpl.getCompilationUnit()
ModifierConstructorDescriptionBodyHolderSourcePositionImpl(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)