Package jetbrains.mps.project.facets
Class JavaModuleFacetImpl
- java.lang.Object
-
- jetbrains.mps.extapi.module.ModuleFacetBase
-
- jetbrains.mps.project.facets.JavaModuleFacetImpl
-
- All Implemented Interfaces:
GenerationTargetFacet,JavaModuleFacet,SModuleFacet
public class JavaModuleFacetImpl extends ModuleFacetBase implements JavaModuleFacet
todo: divide into two parts: JavaModuleFacetSrcImpl && JavaModuleFacetPackagedImpl
-
-
Field Summary
-
Fields inherited from interface jetbrains.mps.project.facets.JavaModuleFacet
FACET_TYPE
-
-
Constructor Summary
Constructors Constructor Description JavaModuleFacetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAdditionalSourcePaths()IFilegetClassesGen()Set<String>getClassPath()StringgetFacetPresentation()Set<String>getLibraryClassPath()AbstractModulegetModule()The owning module TODO @deprecated facet is supposed to be a simple primitive flags storage.booleanisCompileInMps()-
Methods inherited from class jetbrains.mps.extapi.module.ModuleFacetBase
attach, checkNotRegistered, dispose, getFacetType, isRegistered, load, save, setModule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.mps.project.facets.JavaModuleFacet
getClassesLocation, getOutputCacheLocation, getOutputCacheRoot, getOutputCacheRoot, getOutputLocation, getOutputRoot, getOutputRoot
-
Methods inherited from interface org.jetbrains.mps.openapi.module.SModuleFacet
getFacetType, load, save
-
-
-
-
Method Detail
-
getFacetPresentation
public String getFacetPresentation()
- Overrides:
getFacetPresentationin classModuleFacetBase
-
isCompileInMps
public boolean isCompileInMps()
- Specified by:
isCompileInMpsin interfaceJavaModuleFacet
-
getModule
@NotNull public AbstractModule getModule()
Description copied from interface:SModuleFacetThe owning module TODO @deprecated facet is supposed to be a simple primitive flags storage. To extend module functionality one has two more ways: TODO extend from one of the SModule subclasses or implement a custom aspect- Specified by:
getModulein interfaceSModuleFacet- Overrides:
getModulein classModuleFacetBase
-
getClassesGen
@Nullable public IFile getClassesGen()
- Specified by:
getClassesGenin interfaceJavaModuleFacet- Returns:
- root folder where generated classes of any module's model reside, or
nullif associated module doesn't expect class files to be written. Note, although generated classes are part of classpath, this method is to access design-time location of generated classes, not that at deployment time. For deployed modules, this method may returnnull, while generated module classes would be available for classloading throughJavaModuleFacet.getClassPath().
-
getLibraryClassPath
public Set<String> getLibraryClassPath()
- Specified by:
getLibraryClassPathin interfaceJavaModuleFacet
-
getClassPath
public final Set<String> getClassPath()
- Specified by:
getClassPathin interfaceJavaModuleFacet
-
getAdditionalSourcePaths
public Set<String> getAdditionalSourcePaths()
- Specified by:
getAdditionalSourcePathsin interfaceJavaModuleFacet- Returns:
- extra locations with source files to compile along with module's own generated artifacts from
JavaModuleFacet.getOutputRoot(), or empty collection.
-
-