Package manifold.ext
Class ExtensionManifold
- java.lang.Object
-
- manifold.api.service.BaseService
-
- manifold.api.type.ResourceFileTypeManifold<M>
-
- manifold.api.type.JavaTypeManifold<Model>
-
- manifold.ext.ExtensionManifold
-
- All Implemented Interfaces:
manifold.api.service.IPluginHost,manifold.api.service.IService,manifold.api.type.IFileConnected,manifold.api.type.ISelfCompiled,manifold.api.type.ITypeManifold,manifold.api.type.ITypeProcessor
public class ExtensionManifold extends manifold.api.type.JavaTypeManifold<Model> implements manifold.api.type.ITypeProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSIONS_PACKAGE
-
Constructor Summary
Constructors Constructor Description ExtensionManifold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringcontribute(JavaFileManager.Location location, String topLevelFqn, boolean genStubs, String existing, Model model, DiagnosticListener<JavaFileObject> errorHandler)protected manifold.api.type.ResourceFileTypeManifold.CacheClearercreateCacheClearer()protected Set<String>getAdditionalTypes(String fqnForFile, manifold.api.fs.IFile file)manifold.api.type.ContributorKindgetContributorKind()protected Map<String,manifold.util.concurrent.LocklessLazyVar<Model>>getPeripheralTypes()StringgetTypeNameForFile(String fqn, manifold.api.fs.IFile file)booleanhandlesFile(manifold.api.fs.IFile file)booleanhandlesFileExtension(String fileExtension)voidinit(manifold.api.host.IModule module)booleanisInnerType(String topLevel, String relativeInner)voidprocess(TypeElement typeElement, manifold.internal.javac.TypeProcessor typeProcessor, manifold.internal.javac.IssueReporter<JavaFileObject> issueReporter)-
Methods inherited from class manifold.api.type.ResourceFileTypeManifold
clear, contribute, findFilesForType, findTopLevelFqn, getAllTypeNames, getContent, getModel, getModule, getPackage, getTypeNames, getTypesForFile, init, isDuplicate, isFileBacked, isPackage, isTopLevelType, isType, refreshedFile
-
Methods inherited from class manifold.api.service.BaseService
doInit, doUninit, init, isInited, uninit
-
-
-
-
Field Detail
-
EXTENSIONS_PACKAGE
public static final String EXTENSIONS_PACKAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(manifold.api.host.IModule module)
- Specified by:
initin interfacemanifold.api.type.ITypeManifold- Overrides:
initin classmanifold.api.type.ResourceFileTypeManifold<Model>
-
handlesFileExtension
public boolean handlesFileExtension(String fileExtension)
- Specified by:
handlesFileExtensionin interfacemanifold.api.type.IFileConnected
-
getContributorKind
public manifold.api.type.ContributorKind getContributorKind()
- Specified by:
getContributorKindin interfacemanifold.api.type.ITypeManifold- Overrides:
getContributorKindin classmanifold.api.type.JavaTypeManifold<Model>
-
createCacheClearer
protected manifold.api.type.ResourceFileTypeManifold.CacheClearer createCacheClearer()
- Overrides:
createCacheClearerin classmanifold.api.type.ResourceFileTypeManifold<Model>
-
getTypeNameForFile
public String getTypeNameForFile(String fqn, manifold.api.fs.IFile file)
- Overrides:
getTypeNameForFilein classmanifold.api.type.ResourceFileTypeManifold<Model>
-
handlesFile
public boolean handlesFile(manifold.api.fs.IFile file)
- Specified by:
handlesFilein interfacemanifold.api.type.IFileConnected- Overrides:
handlesFilein classmanifold.api.type.ResourceFileTypeManifold<Model>
-
getAdditionalTypes
protected Set<String> getAdditionalTypes(String fqnForFile, manifold.api.fs.IFile file)
- Overrides:
getAdditionalTypesin classmanifold.api.type.ResourceFileTypeManifold<Model>
-
getPeripheralTypes
protected Map<String,manifold.util.concurrent.LocklessLazyVar<Model>> getPeripheralTypes()
- Overrides:
getPeripheralTypesin classmanifold.api.type.ResourceFileTypeManifold<Model>
-
isInnerType
public boolean isInnerType(String topLevel, String relativeInner)
- Specified by:
isInnerTypein classmanifold.api.type.ResourceFileTypeManifold<Model>
-
contribute
protected String contribute(JavaFileManager.Location location, String topLevelFqn, boolean genStubs, String existing, Model model, DiagnosticListener<JavaFileObject> errorHandler)
- Specified by:
contributein classmanifold.api.type.ResourceFileTypeManifold<Model>
-
process
public void process(TypeElement typeElement, manifold.internal.javac.TypeProcessor typeProcessor, manifold.internal.javac.IssueReporter<JavaFileObject> issueReporter)
- Specified by:
processin interfacemanifold.api.type.ITypeProcessor
-
-