Package manifold.api.type
Interface IModel
-
- All Known Implementing Classes:
AbstractSingleFileModel
public interface IModelFor use withResourceFileTypeManifold. Implementors ofIModelstore and manage state necessary to generate source code in the context ofResourceFileTypeManifold.contribute(javax.tools.JavaFileManager.Location, String, boolean, String, IModel, DiagnosticListener)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddFile(IFile file)Addfileto the set of files this model uses.Set<IFile>getFiles()StringgetFqn()IManifoldHostgetHost()default booleanisProcessing(String fqn)voidremoveFile(IFile file)Removefilefrom the set of files this model usesvoidupdateFile(IFile file)Updatesfilein the set of files this model uses
-
-
-
Method Detail
-
getHost
IManifoldHost getHost()
- Returns:
- The Manifold host within which this model operates
-
getFqn
String getFqn()
- Returns:
- The fully qualified type name to which code will be contributed
-
getFiles
Set<IFile> getFiles()
- Returns:
- The resource file[s] from which information is gathered to contribute source
-
addFile
void addFile(IFile file)
Addfileto the set of files this model uses. The addition of a new flie
-
removeFile
void removeFile(IFile file)
Removefilefrom the set of files this model uses
-
updateFile
void updateFile(IFile file)
Updatesfilein the set of files this model uses
-
isProcessing
default boolean isProcessing(String fqn)
- Returns:
- True if the model is processing or otherwise in an unsettled state
-
-