From d73c1981174977f4b3d9c0df69263c38c8b54ced Mon Sep 17 00:00:00 2001 From: Jyothsna Srinivas Date: Fri, 16 Feb 2018 17:03:44 +0530 Subject: [PATCH] Add FFI imports required for EtaBuilder --- eta-parser | 2 +- package.yaml | 1 + .../Configurations/GeneralCommandLine.hs | 10 ++++++ .../Execution/Process/BaseOSProcessHandler.hs | 17 ++++++++++ .../Execution/Process/ProcessAdapter.hs | 10 ++++++ .../Execution/Process/ProcessEvent.hs | 10 ++++++ .../Util/ImportProject/ProjectDescriptor.hs | 10 ++++++ .../eta/FFI/Com/IntelliJ/OpenApi/Util/Key.hs | 10 ++++++ .../IntelliJ/OpenApi/Util/UserDataHandler.hs | 10 ++++++ .../IntelliJ/OpenApi/Vfs/CharsetToolkit.hs | 14 ++++++++ .../JPS/Builders/DirtyFilesHolder.hs | 10 ++++++ .../Builders/Java/JavaSourceRootDescriptor.hs | 11 +++++++ .../JPS/Incremental/CompileContext.hs | 21 ++++++++++++ .../JPS/Incremental/MessageHandler.hs | 13 ++++++++ .../JPS/Incremental/Messages/BuildMessage.hs | 33 +++++++++++++++++++ .../Incremental/Messages/CompilerMessage.hs | 11 +++++++ .../JPS/Incremental/ModuleBuildTarget.hs | 10 ++++++ .../JPS/Incremental/ModuleLevelBuilder.hs | 25 ++++++++++++++ .../JPS/Incremental/ProjectBuildException.hs | 15 +++++++++ .../JPS/Model/Ex/JpsCompositeElementBase.hs | 10 ++++++ .../JPS/Model/Ex/JpsElementChildRoleBase.hs | 10 ++++++ .../Ex/JpsElementTypeWithDummyProperties.hs | 10 ++++++ .../JPS/Model/JpsCompositeElement.hs | 16 +++++++++ .../JetBrains/JPS/Model/JpsDummyElement.hs | 10 ++++++ .../FFI/Org/JetBrains/JPS/Model/JpsElement.hs | 10 ++++++ .../JPS/Model/JpsElementContainer.hs | 10 ++++++ .../FFI/Org/JetBrains/JPS/Model/JpsProject.hs | 14 ++++++++ .../JPS/Model/JpsReferenceableElement.hs | 11 +++++++ .../JetBrains/JPS/Model/Module/JpsModule.hs | 10 ++++++ .../JPS/Model/Module/JpsModuleType.hs | 10 ++++++ .../JpsModelSerializationDataService.hs | 19 +++++++++++ .../eta/FFI/Org/JetBrains/JPS/ModuleChunk.hs | 14 ++++++++ 32 files changed, 396 insertions(+), 1 deletion(-) create mode 100644 src/main/eta/FFI/Com/IntelliJ/Execution/Configurations/GeneralCommandLine.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/Execution/Process/BaseOSProcessHandler.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessAdapter.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessEvent.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/IDE/Util/ImportProject/ProjectDescriptor.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/Key.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/UserDataHandler.hs create mode 100644 src/main/eta/FFI/Com/IntelliJ/OpenApi/Vfs/CharsetToolkit.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Builders/DirtyFilesHolder.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Builders/Java/JavaSourceRootDescriptor.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/CompileContext.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/MessageHandler.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/BuildMessage.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/CompilerMessage.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleBuildTarget.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleLevelBuilder.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ProjectBuildException.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsCompositeElementBase.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementChildRoleBase.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementTypeWithDummyProperties.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsCompositeElement.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsDummyElement.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElement.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElementContainer.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsProject.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsReferenceableElement.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModule.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModuleType.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/Model/Serialization/JpsModelSerializationDataService.hs create mode 100644 src/main/eta/FFI/Org/JetBrains/JPS/ModuleChunk.hs diff --git a/eta-parser b/eta-parser index b2c61ac..502871a 160000 --- a/eta-parser +++ b/eta-parser @@ -1 +1 @@ -Subproject commit b2c61ac2b07dc61b3630a34cd64c910c7cd80035 +Subproject commit 502871aa2eb82ebe65c8e1834aa7fc2412eac235 diff --git a/package.yaml b/package.yaml index 49973ec..2349bbf 100644 --- a/package.yaml +++ b/package.yaml @@ -25,6 +25,7 @@ dependencies: - base >=4.8 && <4.9 - containers == 0.5.10.2 - eta-parser +- eta-java-interop library: source-dirs: src/main/eta diff --git a/src/main/eta/FFI/Com/IntelliJ/Execution/Configurations/GeneralCommandLine.hs b/src/main/eta/FFI/Com/IntelliJ/Execution/Configurations/GeneralCommandLine.hs new file mode 100644 index 0000000..387b330 --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/Execution/Configurations/GeneralCommandLine.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.Execution.Configurations.GeneralCommandLine where + +import P + +-- Start com.intellij.execution.configurations.GeneralCommandLine + +data GeneralCommandLine = GeneralCommandLine @com.intellij.execution.configurations.GeneralCommandLine + deriving Class + +-- End com.intellij.execution.configurations.GeneralCommandLine diff --git a/src/main/eta/FFI/Com/IntelliJ/Execution/Process/BaseOSProcessHandler.hs b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/BaseOSProcessHandler.hs new file mode 100644 index 0000000..14a188f --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/BaseOSProcessHandler.hs @@ -0,0 +1,17 @@ +module FFI.Com.IntelliJ.Execution.Process.BaseOSProcessHandler where + +import P + +-- Start com.intellij.execution.process.BaseOSProcessHandler + +data BaseOSProcessHandler = BaseOSProcessHandler + @com.intellij.execution.process.BaseOSProcessHandler + deriving Class + +-- TODO addProcessListener + +foreign import java unsafe startNotify :: Java BaseOSProcessHandler () + +foreign import java unsafe waitFor :: Java BaseOSProcessHandler Bool + +-- End com.intellij.execution.process.BaseOSProcessHandler diff --git a/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessAdapter.hs b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessAdapter.hs new file mode 100644 index 0000000..2633192 --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessAdapter.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.Execution.Process.ProcessAdapter where + +import P + +-- Start com.intellij.execution.process.ProcessAdapter + +data ProcessAdapter = ProcessAdapter @com.intellij.execution.process.ProcessAdapter + deriving Class + +-- End com.intellij.execution.process.ProcessAdapter diff --git a/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessEvent.hs b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessEvent.hs new file mode 100644 index 0000000..c364a4d --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/Execution/Process/ProcessEvent.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.Execution.Process.ProcessEvent where + +import P + +-- Start com.intellij.execution.process.ProcessEvent + +data ProcessEvent = ProcessEvent @com.intellij.execution.process.ProcessEvent + deriving Class + +-- End com.intellij.execution.process.ProcessEvent diff --git a/src/main/eta/FFI/Com/IntelliJ/IDE/Util/ImportProject/ProjectDescriptor.hs b/src/main/eta/FFI/Com/IntelliJ/IDE/Util/ImportProject/ProjectDescriptor.hs new file mode 100644 index 0000000..dc15a26 --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/IDE/Util/ImportProject/ProjectDescriptor.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.IDE.Util.ImportProject.ProjectDescriptor where + +import P + +-- Start com.intellij.ide.util.importProject.ProjectDescriptor + +data ProjectDescriptor = ProjectDescriptor @com.intellij.ide.util.importProject.ProjectDescriptor + deriving Class + +-- End com.intellij.ide.util.importProject.ProjectDescriptor diff --git a/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/Key.hs b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/Key.hs new file mode 100644 index 0000000..bbf9a57 --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/Key.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.OpenApi.Util.Key where + +import P + +-- Start com.intellij.openapi.util.Key + +data Key = Key @com.intellij.openapi.util.Key + deriving Class + +-- End com.intellij.openapi.util.Key diff --git a/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/UserDataHandler.hs b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/UserDataHandler.hs new file mode 100644 index 0000000..e8fd68c --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Util/UserDataHandler.hs @@ -0,0 +1,10 @@ +module FFI.Com.IntelliJ.OpenApi.Util.UserDataHandler where + +import P + +-- Start com.intellij.openapi.util.UserDataHandler + +data UserDataHandler = UserDataHandler @com.intellij.openapi.util.UserDataHandler + deriving Class + +-- End com.intellij.openapi.util.UserDataHandler diff --git a/src/main/eta/FFI/Com/IntelliJ/OpenApi/Vfs/CharsetToolkit.hs b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Vfs/CharsetToolkit.hs new file mode 100644 index 0000000..bb05480 --- /dev/null +++ b/src/main/eta/FFI/Com/IntelliJ/OpenApi/Vfs/CharsetToolkit.hs @@ -0,0 +1,14 @@ +module FFI.Com.IntelliJ.OpenApi.Vfs.CharsetToolkit + (getDefaultCharset) where + +import P +import Interop.Java.NIO + +-- Start com.intellij.openapi.vfs.CharsetToolkit + +data CharsetToolkit = CharsetToolkit @com.intellij.openapi.vfs.CharsetToolkit + deriving Class + +foreign import java unsafe getDefaultCharset :: Java CharsetToolkit Charset + +-- End com.intellij.openapi.vfs.CharsetToolkit diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Builders/DirtyFilesHolder.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Builders/DirtyFilesHolder.hs new file mode 100644 index 0000000..d820bd3 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Builders/DirtyFilesHolder.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Builders.DirtyFilesHolder where + +import P + +-- Start org.jetbrains.jps.builders.DirtyFilesHolder + +data DirtyFilesHolder = DirtyFilesHolder @org.jetbrains.jps.builders.DirtyFilesHolder + deriving Class + +-- End org.jetbrains.jps.builders.DirtyFilesHolder diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Builders/Java/JavaSourceRootDescriptor.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Builders/Java/JavaSourceRootDescriptor.hs new file mode 100644 index 0000000..b1a160c --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Builders/Java/JavaSourceRootDescriptor.hs @@ -0,0 +1,11 @@ +module FFI.Org.JetBrains.JPS.Builders.Java.JavaSourceRootDescriptor where + +import P + +-- Start org.jetbrains.jps.builders.java.JavaSourceRootDescriptor + +data JavaSourceRootDescriptor = JavaSourceRootDescriptor + @org.jetbrains.jps.builders.java.JavaSourceRootDescriptor + deriving Class + +-- End org.jetbrains.jps.builders.java.JavaSourceRootDescriptor diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/CompileContext.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/CompileContext.hs new file mode 100644 index 0000000..037fa52 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/CompileContext.hs @@ -0,0 +1,21 @@ +module FFI.Org.JetBrains.JPS.Incremental.CompileContext + ( CompileContext + , getProjectDescriptor + ) where + +import P +import FFI.Org.JetBrains.JPS.Incremental.MessageHandler +import FFI.Com.IntelliJ.IDE.Util.ImportProject.ProjectDescriptor +import FFI.Com.IntelliJ.OpenApi.Util.UserDataHandler + +-- Start org.jetbrains.jps.incremental.CompileContext + +data CompileContext = CompileContext @org.jetbrains.jps.incremental.CompileContext + deriving Class + +type instance Inherits CompileContext = '[UserDataHandler, MessageHandler] + +foreign import java unsafe "@interface" getProjectDescriptor + :: Java CompileContext ProjectDescriptor + +-- End org.jetbrains.jps.incremental.CompileContext diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/MessageHandler.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/MessageHandler.hs new file mode 100644 index 0000000..6207f30 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/MessageHandler.hs @@ -0,0 +1,13 @@ +module FFI.Org.JetBrains.JPS.Incremental.MessageHandler where + +import P +import FFI.Org.JetBrains.JPS.Incremental.Messages.BuildMessage + +-- Start org.jetbrains.jps.incremental.MessageHandler + +data MessageHandler = MessageHandler @org.jetbrains.jps.incremental.MessageHandler + deriving Class + +foreign import java unsafe "interface" processMessage :: BuildMessage -> Java MessageHandler () + +-- End org.jetbrains.jps.incremental.MessageHandler diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/BuildMessage.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/BuildMessage.hs new file mode 100644 index 0000000..0b11469 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/BuildMessage.hs @@ -0,0 +1,33 @@ +module FFI.Org.JetBrains.JPS.Incremental.Messages.BuildMessage where + +import P + +-- Start org.jetbrains.jps.incremental.messages.BuildMessage + +data BuildMessage = BuildMessage @org.jetbrains.jps.incremental.messages.BuildMessage + deriving Class + +-- End org.jetbrains.jps.incremental.messages.BuildMessage + +-- Start org.jetbrains.jps.incremental.messages.BuildMessage.Kind + +data Kind = Kind @org.jetbrains.jps.incremental.messages.BuildMessage$Kind + deriving Class + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.messages.BuildMessage.Kind.ERROR" _ERROR :: + Kind + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.messages.BuildMessage.Kind.WARNING" _WARNING :: + Kind + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.messages.BuildMessage.Kind.INFO" _INFO :: + Kind + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.messages.BuildMessage.Kind.PROGRESS" _PROGRESS :: + Kind + +-- End org.jetbrains.jps.incremental.messages.BuildMessage.Kind diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/CompilerMessage.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/CompilerMessage.hs new file mode 100644 index 0000000..a85db56 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/Messages/CompilerMessage.hs @@ -0,0 +1,11 @@ +module FFI.Org.JetBrains.JPS.Incremental.Messages.CompilerMessage where + +import P +import FFI.Org.JetBrains.JPS.Incremental.Messages.BuildMessage + +-- Start org.jetbrains.jps.incremental.messages.CompilerMessage + +data CompilerMessage = CompilerMessage @org.jetbrains.jps.incremental.messages.CompilerMessage + deriving Class + +type instance Inherits CompilerMessage = '[BuildMessage] diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleBuildTarget.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleBuildTarget.hs new file mode 100644 index 0000000..ea1d94b --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleBuildTarget.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Incremental.ModuleBuildTarget where + +import P + +-- Start org.jetbrains.jps.incremental.ModuleBuildTarget + +data ModuleBuildTarget = ModuleBuildTarget @org.jetbrains.jps.incremental.ModuleBuildTarget + deriving Class + +-- End org.jetbrains.jps.incremental.ModuleBuildTarget diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleLevelBuilder.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleLevelBuilder.hs new file mode 100644 index 0000000..1ce8e25 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ModuleLevelBuilder.hs @@ -0,0 +1,25 @@ +module FFI.Org.JetBrains.JPS.Incremental.ModuleLevelBuilder where + +import P + +-- Start org.jetbrains.jps.incremental.ModuleLevelBuilder + +data ModuleLevelBuilder = ModuleLevelBuilder @org.jetbrains.jps.incremental.ModuleLevelBuilder + deriving Class + +data ExitCode = ExitCode @org.jetbrains.jps.incremental.ModuleLevelBuilder$ExitCode + deriving Class + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.ModuleLevelBuilder.ExitCode.NOTHING_DONE" + nothingDone :: ExitCode + +foreign import java unsafe + "@static @field org.jetbrains.jps.incremental.ModuleLevelBuilder.ExitCode.OK" + ok :: ExitCode + +data OutputConsumer = OutputConsumer @org.jetbrains.jps.incremental.ModuleLevelBuilder$OutputConsumer + deriving Class + + + -- End org.jetbrains.jps.incremental.ModuleLevelBuilder diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ProjectBuildException.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ProjectBuildException.hs new file mode 100644 index 0000000..ffd4f70 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Incremental/ProjectBuildException.hs @@ -0,0 +1,15 @@ +module FFI.Org.JetBrains.JPS.Incremental.ProjectBuildException where + +import P +import Data.Typeable + +-- Start org.jetbrains.jps.incremental.ProjectBuildException + +data ProjectBuildException = ProjectBuildException @org.jetbrains.jps.incremental.ProjectBuildException + deriving (Class, Typeable) + +type instance Inherits ProjectBuildException = '[JException] + +foreign import java unsafe "@new" newProjectBuildException :: JString -> Java a ProjectBuildException + +-- End org.jetbrains.jps.incremental.ProjectBuildException diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsCompositeElementBase.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsCompositeElementBase.hs new file mode 100644 index 0000000..ecf489c --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsCompositeElementBase.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.Ex.JpsCompositeElementBase where + +import P + +-- Start org.jetbrains.jps.model.ex.JpsCompositeElementBase + +data JpsCompositeElementBase = JpsCompositeElementBase @org.jetbrains.jps.model.ex.JpsCompositeElementBase + deriving Class + +-- End org.jetbrains.jps.model.ex.JpsCompositeElementBase diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementChildRoleBase.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementChildRoleBase.hs new file mode 100644 index 0000000..2b110e1 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementChildRoleBase.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.Ex.JpsElementChildRoleBase where + +import P + +-- Start org.jetbrains.jps.model.ex.JpsElementChildRoleBase + +data JpsElementChildRoleBase = JpsElementChildRoleBase @org.jetbrains.jps.model.ex.JpsElementChildRoleBase + deriving Class + +-- End org.jetbrains.jps.model.ex.JpsElementChildRoleBase diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementTypeWithDummyProperties.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementTypeWithDummyProperties.hs new file mode 100644 index 0000000..1e9bdef --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Ex/JpsElementTypeWithDummyProperties.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.Ex.JpsElementTypeWithDummyProperties where + +import P + +-- Start org.jetbrains.jps.model.ex.JpsElementTypeWithDummyProperties + +data JpsElementTypeWithDummyProperties = JpsElementTypeWithDummyProperties @org.jetbrains.jps.model.ex.JpsElementTypeWithDummyProperties + deriving Class + +-- End org.jetbrains.jps.model.ex.JpsElementTypeWithDummyProperties diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsCompositeElement.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsCompositeElement.hs new file mode 100644 index 0000000..34848ae --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsCompositeElement.hs @@ -0,0 +1,16 @@ +module FFI.Org.JetBrains.JPS.Model.JpsCompositeElement where + +import P +import FFI.Org.JetBrains.JPS.Model.JpsElement +import FFI.Org.JetBrains.JPS.Model.JpsElementContainer + +-- Start org.jetbrains.jps.model.JpsCompositeElement + +data JpsCompositeElement = JpsCompositeElement @org.jetbrains.jps.model.JpsCompositeElement + deriving Class + +type instance Inherits JpsCompositeElement = '[JpsElement] + +foreign import java unsafe getContainer :: Java JpsCompositeElement JpsElementContainer + +-- End org.jetbrains.jps.model.JpsCompositeElement diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsDummyElement.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsDummyElement.hs new file mode 100644 index 0000000..8c709af --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsDummyElement.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.JpsDummyElement where + +import P + +-- Start org.jetbrains.jps.model.module.JpsDummyElement + +data JpsDummyElement = JpsDummyElement @org.jetbrains.jps.model.module.JpsDummyElement + deriving Class + +-- End org.jetbrains.jps.model.module.JpsDummyElement diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElement.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElement.hs new file mode 100644 index 0000000..d674fda --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElement.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.JpsElement where + +import P + +-- Start org.jetbrains.jps.model.JpsElement + +data JpsElement = JpsElement @org.jetbrains.jps.model.JpsElement + deriving Class + +-- End org.jetbrains.jps.model.JpsElement diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElementContainer.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElementContainer.hs new file mode 100644 index 0000000..1e4e27a --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsElementContainer.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.JpsElementContainer where + +import P + +-- Start org.jetbrains.jps.model.JpsElementContainer + +data JpsElementContainer = JpsElementContainer @org.jetbrains.jps.model.JpsElementContainer + deriving Class + +-- End org.jetbrains.jps.model.JpsElementContainer diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsProject.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsProject.hs new file mode 100644 index 0000000..6e02594 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsProject.hs @@ -0,0 +1,14 @@ +module FFI.Org.JetBrains.JPS.Model.JpsProject where + +import P +import FFI.Org.JetBrains.JPS.Model.JpsCompositeElement +import FFI.Org.JetBrains.JPS.Model.JpsReferenceableElement + +-- Start org.jetbrains.jps.model.JpsProject + +data JpsProject = JpsProject @org.jetbrains.jps.model.JpsProject + deriving Class + +type instance Inherits JpsProject = '[JpsCompositeElement, JpsReferenceableElement JpsProject] + +-- End org.jetbrains.jps.model.JpsProject diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsReferenceableElement.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsReferenceableElement.hs new file mode 100644 index 0000000..36e395d --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/JpsReferenceableElement.hs @@ -0,0 +1,11 @@ +module FFI.Org.JetBrains.JPS.Model.JpsReferenceableElement where + +import P + +-- Start org.jetbrains.jps.model.JpsReferenceableElement + +data JpsReferenceableElement e = JpsReferenceableElement + (@org.jetbrains.jps.model.JpsReferenceableElement e) + deriving Class + +-- End org.jetbrains.jps.model.JpsReferenceableElement diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModule.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModule.hs new file mode 100644 index 0000000..6fe3d84 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModule.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.Module.JpsModule where + +import P + +-- Start org.jetbrains.jps.model.module.JpsModule + +data JpsModule = JpsModule @org.jetbrains.jps.model.module.JpsModule + deriving Class + +-- End org.jetbrains.jps.model.module.JpsModule diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModuleType.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModuleType.hs new file mode 100644 index 0000000..b9280b0 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModuleType.hs @@ -0,0 +1,10 @@ +module FFI.Org.JetBrains.JPS.Model.Module.JpsModuleType where + +import P + +-- Start org.jetbrains.jps.model.module.JpsElementChildRoleBase + +data JpsModuleType = JpsModuleType @org.jetbrains.jps.model.module.JpsModuleType + deriving Class + +-- End org.jetbrains.jps.model.module.JpsModuleType diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/Model/Serialization/JpsModelSerializationDataService.hs b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Serialization/JpsModelSerializationDataService.hs new file mode 100644 index 0000000..b760f81 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/Model/Serialization/JpsModelSerializationDataService.hs @@ -0,0 +1,19 @@ +module FFI.Org.JetBrains.JPS.Model.Serialization.JpsModelSerializationDataService where + +import P +import Java.Utils +import Interop.Java.IO +import FFI.Org.JetBrains.JPS.Model.JpsProject + +-- Start org.jetbrains.jps.model.serialization.JpsModelSerializationDataService + +data JpsModelSerializationDataService = JpsModelSerializationDataService + @org.jetbrains.jps.model.serialization.JpsModelSerializationDataService + deriving Class + +foreign import java unsafe + "@static org.jetbrains.jps.model.serialization.JpsModelSerializationDataService" + getBaseDirectory :: JpsProject -> Java JpsModelSerializationDataService File + + +-- End org.jetbrains.jps.model.serialization.JpsModelSerializationDataService diff --git a/src/main/eta/FFI/Org/JetBrains/JPS/ModuleChunk.hs b/src/main/eta/FFI/Org/JetBrains/JPS/ModuleChunk.hs new file mode 100644 index 0000000..13a7592 --- /dev/null +++ b/src/main/eta/FFI/Org/JetBrains/JPS/ModuleChunk.hs @@ -0,0 +1,14 @@ +module FFI.Org.JetBrains.JPS.ModuleChunk where + +import P +import Java.Collections +import FFI.Org.JetBrains.JPS.Model.Module.JpsModule + +-- Start org.jetbrains.jps.ModuleChunk + +data ModuleChunk = ModuleChunk @org.jetbrains.jps.ModuleChunk + deriving Class + +foreign import java unsafe getModule :: Java ModuleChunk (Set JpsModule) + +-- End org.jetbrains.jps.ModuleChunk