Class CodeGenerationContextImpl

  • All Implemented Interfaces:
    org.eclipse.xtend.lib.macro.CodeGenerationContext, org.eclipse.xtend.lib.macro.file.FileLocations, org.eclipse.xtend.lib.macro.file.FileSystemSupport, org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport, org.eclipse.xtend.lib.macro.services.GlobalTypeLookup, org.eclipse.xtend.lib.macro.services.Tracability

    public class CodeGenerationContextImpl
    extends java.lang.Object
    implements org.eclipse.xtend.lib.macro.CodeGenerationContext
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      boolean exists​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally​(java.lang.Class<?> arg0)  
      org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally​(java.lang.String arg0)  
      java.lang.String getCharset​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      java.lang.CharSequence getContents​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      java.io.InputStream getContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.file.FileLocations getFileLocations()  
      org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport getFileSystemSupport()  
      org.eclipse.xtend.lib.macro.services.GlobalTypeLookup getGlobalTypeLookup()  
      long getLastModification​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.declaration.Element getPrimaryGeneratedJavaElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      org.eclipse.xtend.lib.macro.declaration.Element getPrimarySourceElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      org.eclipse.xtend.lib.macro.file.Path getProjectFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      java.util.Set<org.eclipse.xtend.lib.macro.file.Path> getProjectSourceFolders​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.file.Path getSourceFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.file.Path getTargetFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      org.eclipse.xtend.lib.macro.services.Tracability getTracability()  
      CompilationUnitImpl getUnit()  
      boolean isExternal​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      boolean isFile​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      boolean isFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      boolean isGenerated​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      boolean isSource​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      boolean isThePrimaryGeneratedJavaElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)  
      void mkdir​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      void setContents​(org.eclipse.xtend.lib.macro.file.Path arg0, java.lang.CharSequence arg1)  
      void setContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path arg0, java.io.InputStream arg1)  
      void setUnit​(CompilationUnitImpl unit)  
      java.net.URI toURI​(org.eclipse.xtend.lib.macro.file.Path arg0)  
      • Methods inherited from class java.lang.Object

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

      • CodeGenerationContextImpl

        public CodeGenerationContextImpl()
    • Method Detail

      • getFileLocations

        @Delegate
        public org.eclipse.xtend.lib.macro.file.FileLocations getFileLocations()
      • getFileSystemSupport

        @Delegate
        public org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport getFileSystemSupport()
      • getGlobalTypeLookup

        @Delegate
        public org.eclipse.xtend.lib.macro.services.GlobalTypeLookup getGlobalTypeLookup()
      • getTracability

        @Delegate
        public org.eclipse.xtend.lib.macro.services.Tracability getTracability()
      • getProjectFolder

        public org.eclipse.xtend.lib.macro.file.Path getProjectFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getProjectFolder in interface org.eclipse.xtend.lib.macro.file.FileLocations
      • getProjectSourceFolders

        public java.util.Set<org.eclipse.xtend.lib.macro.file.Path> getProjectSourceFolders​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getProjectSourceFolders in interface org.eclipse.xtend.lib.macro.file.FileLocations
      • getSourceFolder

        public org.eclipse.xtend.lib.macro.file.Path getSourceFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getSourceFolder in interface org.eclipse.xtend.lib.macro.file.FileLocations
      • getTargetFolder

        public org.eclipse.xtend.lib.macro.file.Path getTargetFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getTargetFolder in interface org.eclipse.xtend.lib.macro.file.FileLocations
      • delete

        public void delete​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        delete in interface org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
      • exists

        public boolean exists​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        exists in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • getCharset

        public java.lang.String getCharset​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getCharset in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • getChildren

        public java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getChildren in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • getContents

        public java.lang.CharSequence getContents​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getContents in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • getContentsAsStream

        public java.io.InputStream getContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getContentsAsStream in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • getLastModification

        public long getLastModification​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        getLastModification in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • isFile

        public boolean isFile​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        isFile in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • isFolder

        public boolean isFolder​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        isFolder in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • mkdir

        public void mkdir​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        mkdir in interface org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
      • setContents

        public void setContents​(org.eclipse.xtend.lib.macro.file.Path arg0,
                                java.lang.CharSequence arg1)
        Specified by:
        setContents in interface org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
      • setContentsAsStream

        public void setContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path arg0,
                                        java.io.InputStream arg1)
        Specified by:
        setContentsAsStream in interface org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
      • toURI

        public java.net.URI toURI​(org.eclipse.xtend.lib.macro.file.Path arg0)
        Specified by:
        toURI in interface org.eclipse.xtend.lib.macro.file.FileSystemSupport
      • findTypeGlobally

        public org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally​(java.lang.Class<?> arg0)
        Specified by:
        findTypeGlobally in interface org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
      • findTypeGlobally

        public org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally​(java.lang.String arg0)
        Specified by:
        findTypeGlobally in interface org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
      • getPrimaryGeneratedJavaElement

        public org.eclipse.xtend.lib.macro.declaration.Element getPrimaryGeneratedJavaElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        getPrimaryGeneratedJavaElement in interface org.eclipse.xtend.lib.macro.services.Tracability
      • getPrimarySourceElement

        public org.eclipse.xtend.lib.macro.declaration.Element getPrimarySourceElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        getPrimarySourceElement in interface org.eclipse.xtend.lib.macro.services.Tracability
      • isExternal

        public boolean isExternal​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        isExternal in interface org.eclipse.xtend.lib.macro.services.Tracability
      • isGenerated

        public boolean isGenerated​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        isGenerated in interface org.eclipse.xtend.lib.macro.services.Tracability
      • isSource

        public boolean isSource​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        isSource in interface org.eclipse.xtend.lib.macro.services.Tracability
      • isThePrimaryGeneratedJavaElement

        public boolean isThePrimaryGeneratedJavaElement​(org.eclipse.xtend.lib.macro.declaration.Element arg0)
        Specified by:
        isThePrimaryGeneratedJavaElement in interface org.eclipse.xtend.lib.macro.services.Tracability