Package spoon.reflect
Class CtModelImpl
java.lang.Object
spoon.reflect.CtModelImpl
- All Implemented Interfaces:
Serializable
,CtModel
,CtQueryable
- See Also:
- Serialized Form
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterChildren(Filter<R> filter)
returns all modules of the modelreturns all packages of the modelCollection<CtType<?>>
returns all top-level types of the modelgetElements(Filter<E> filter)
Returns all the model elements matching the filter.returns the root package of the unnamed moduleReturns the unnamed module.boolean
If true, the first build model has been finished.<I> CtQuery
map(CtConsumableFunction<I> queryStep)
<I, R> CtQuery
map(CtFunction<I,R> function)
void
processWith(Processor<?> processor)
process this model with the given processor<T extends CtModel>
TsetBuildModelIsFinished(boolean buildModelFinished)
Set to true to flag that a build model has been finished.
-
Constructor Details
-
CtModelImpl
-
-
Method Details
-
filterChildren
- Specified by:
filterChildren
in interfaceCtQueryable
- See Also:
CtQuery.filterChildren(Filter)
-
map
- Specified by:
map
in interfaceCtQueryable
- See Also:
CtQuery.map(CtFunction)
-
map
- Specified by:
map
in interfaceCtQueryable
- See Also:
CtQuery.map(CtConsumableFunction)
-
getRootPackage
Description copied from interface:CtModel
returns the root package of the unnamed module- Specified by:
getRootPackage
in interfaceCtModel
-
getAllTypes
Description copied from interface:CtModel
returns all top-level types of the model- Specified by:
getAllTypes
in interfaceCtModel
-
getAllPackages
Description copied from interface:CtModel
returns all packages of the model- Specified by:
getAllPackages
in interfaceCtModel
-
getUnnamedModule
Description copied from interface:CtModel
Returns the unnamed module.- Specified by:
getUnnamedModule
in interfaceCtModel
-
getAllModules
Description copied from interface:CtModel
returns all modules of the model- Specified by:
getAllModules
in interfaceCtModel
-
processWith
Description copied from interface:CtModel
process this model with the given processor- Specified by:
processWith
in interfaceCtModel
-
getElements
Description copied from interface:CtModel
Returns all the model elements matching the filter.- Specified by:
getElements
in interfaceCtModel
-
isBuildModelFinished
public boolean isBuildModelFinished()Description copied from interface:CtModel
If true, the first build model has been finished. This value should be false at the beginning ofSpoonModelBuilder.build()
and true at this end.- Specified by:
isBuildModelFinished
in interfaceCtModel
-
setBuildModelIsFinished
Description copied from interface:CtModel
Set to true to flag that a build model has been finished. By default, this method is called with a true value at the end ofSpoonModelBuilder.build()
- Specified by:
setBuildModelIsFinished
in interfaceCtModel
-