Class Main


  • public class Main
    extends java.lang.Object
    Executes the language generator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.xtext.generator.JavaIoFileSystemAccess fileAccess  
      private org.eclipse.xtext.generator.IGenerator generator  
      private com.google.inject.Provider<org.eclipse.emf.ecore.resource.ResourceSet> resourceSetProvider  
      private org.eclipse.xtext.validation.IResourceValidator validator  
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Executes the language generator.
      protected void runGenerator​(java.lang.String string)
      Executes the generator on an EMF resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resourceSetProvider

        @Inject
        private com.google.inject.Provider<org.eclipse.emf.ecore.resource.ResourceSet> resourceSetProvider
      • validator

        @Inject
        private org.eclipse.xtext.validation.IResourceValidator validator
      • generator

        @Inject
        private org.eclipse.xtext.generator.IGenerator generator
      • fileAccess

        @Inject
        private org.eclipse.xtext.generator.JavaIoFileSystemAccess fileAccess
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Executes the language generator.
        Parameters:
        args - at least an EMF resource
      • runGenerator

        protected void runGenerator​(java.lang.String string)
        Executes the generator on an EMF resource.
        Parameters:
        string - the EMF resource