Interface IModel
- All Known Implementing Classes:
AbstractSingleFileModel
public interface IModel
For use with
ResourceFileTypeManifold. Implementors of IModel store and manage
state necessary to generate source code in the context of ResourceFileTypeManifold.contribute(javax.tools.JavaFileManager.Location, String, boolean, String, IModel, DiagnosticListener)-
Method Summary
Modifier and TypeMethodDescriptionvoidAddfileto the set of files this model uses.getFiles()getFqn()getHost()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 Details
-
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
-
addFile
Addfileto the set of files this model uses. The addition of a new flie -
removeFile
Removefilefrom the set of files this model uses -
updateFile
Updatesfilein the set of files this model uses -
isProcessing
- Returns:
- True if the model is processing or otherwise in an unsettled state
-