Class AbstractFileSystemSupport

  • All Implemented Interfaces:
    org.eclipse.xtend.lib.macro.file.FileSystemSupport, org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
    Direct Known Subclasses:
    JavaIOFileSystemSupport

    public abstract class AbstractFileSystemSupport
    extends java.lang.Object
    implements org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected boolean exists​(org.eclipse.emf.common.util.URI uri)  
      boolean exists​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected java.lang.Object getAttribute​(org.eclipse.emf.common.util.URI uri, java.lang.String attributeName)  
      protected java.lang.String getCharset​(org.eclipse.emf.common.util.URI uri)  
      java.lang.String getCharset​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected abstract java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren​(org.eclipse.emf.common.util.URI uri, org.eclipse.xtend.lib.macro.file.Path path)  
      java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren​(org.eclipse.xtend.lib.macro.file.Path path)  
      java.lang.CharSequence getContents​(org.eclipse.xtend.lib.macro.file.Path path)  
      java.io.InputStream getContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path path)  
      org.eclipse.emf.ecore.resource.ResourceSet getContext()  
      org.eclipse.xtext.parser.IEncodingProvider getEncodingProvider()  
      protected java.lang.Long getLastModification​(org.eclipse.emf.common.util.URI uri)  
      long getLastModification​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.common.util.URI absoluteURI, org.eclipse.emf.common.util.URI baseURI, org.eclipse.xtend.lib.macro.file.Path basePath)  
      protected org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.resource.ResourceSet context)  
      org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.ecore.resource.Resource res)  
      org.eclipse.xtext.generator.IFilePostProcessor getPostProcessor()  
      org.eclipse.xtext.workspace.IProjectConfigProvider getProjectConfigProvider()  
      protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected org.eclipse.emf.ecore.resource.URIConverter getURIConverter()  
      protected boolean hasContentsChanged​(java.io.InputStream newContent, java.io.InputStream oldContent)  
      protected boolean isFile​(org.eclipse.emf.common.util.URI uri)  
      boolean isFile​(org.eclipse.xtend.lib.macro.file.Path path)  
      protected java.lang.Boolean isFolder​(org.eclipse.emf.common.util.URI uri)  
      boolean isFolder​(org.eclipse.xtend.lib.macro.file.Path path)  
      void mkdir​(org.eclipse.xtend.lib.macro.file.Path path)  
      void setContents​(org.eclipse.xtend.lib.macro.file.Path path, java.lang.CharSequence contents)  
      void setContentsAsStream​(org.eclipse.xtend.lib.macro.file.Path path, java.io.InputStream source)  
      void setContext​(org.eclipse.emf.ecore.resource.ResourceSet context)  
      void setEncodingProvider​(org.eclipse.xtext.parser.IEncodingProvider encodingProvider)  
      void setPostProcessor​(org.eclipse.xtext.generator.IFilePostProcessor postProcessor)  
      void setProjectConfigProvider​(org.eclipse.xtext.workspace.IProjectConfigProvider projectConfigProvider)  
      protected java.net.URI toURI​(org.eclipse.emf.common.util.URI uri)
      Converts an EMF URI to a java.net.URI.
      java.net.URI toURI​(org.eclipse.xtend.lib.macro.file.Path path)  
      • Methods inherited from class java.lang.Object

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

      • AbstractFileSystemSupport

        public AbstractFileSystemSupport()
    • Method Detail

      • getContents

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

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

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

        protected boolean hasContentsChanged​(java.io.InputStream newContent,
                                             java.io.InputStream oldContent)
      • getChildren

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

        protected abstract java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren​(org.eclipse.emf.common.util.URI uri,
                                                                                                           org.eclipse.xtend.lib.macro.file.Path path)
      • mkdir

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

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

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

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

        protected boolean exists​(org.eclipse.emf.common.util.URI uri)
      • getCharset

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

        protected java.lang.String getCharset​(org.eclipse.emf.common.util.URI uri)
      • getLastModification

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

        protected java.lang.Long getLastModification​(org.eclipse.emf.common.util.URI uri)
      • isFile

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

        protected boolean isFile​(org.eclipse.emf.common.util.URI uri)
      • isFolder

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

        protected java.lang.Boolean isFolder​(org.eclipse.emf.common.util.URI uri)
      • toURI

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

        protected java.net.URI toURI​(org.eclipse.emf.common.util.URI uri)
        Converts an EMF URI to a java.net.URI.
      • getURI

        protected org.eclipse.emf.common.util.URI getURI​(org.eclipse.xtend.lib.macro.file.Path path)
      • getAttribute

        protected java.lang.Object getAttribute​(org.eclipse.emf.common.util.URI uri,
                                                java.lang.String attributeName)
      • getURIConverter

        protected org.eclipse.emf.ecore.resource.URIConverter getURIConverter()
      • getPath

        public org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.ecore.resource.Resource res)
      • getPath

        protected org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.common.util.URI uri,
                                                                org.eclipse.emf.ecore.resource.ResourceSet context)
      • getPath

        protected org.eclipse.xtend.lib.macro.file.Path getPath​(org.eclipse.emf.common.util.URI absoluteURI,
                                                                org.eclipse.emf.common.util.URI baseURI,
                                                                org.eclipse.xtend.lib.macro.file.Path basePath)
      • getEncodingProvider

        @Pure
        public org.eclipse.xtext.parser.IEncodingProvider getEncodingProvider()
      • setEncodingProvider

        public void setEncodingProvider​(org.eclipse.xtext.parser.IEncodingProvider encodingProvider)
      • getPostProcessor

        @Pure
        public org.eclipse.xtext.generator.IFilePostProcessor getPostProcessor()
      • setPostProcessor

        public void setPostProcessor​(org.eclipse.xtext.generator.IFilePostProcessor postProcessor)
      • getProjectConfigProvider

        @Pure
        public org.eclipse.xtext.workspace.IProjectConfigProvider getProjectConfigProvider()
      • setProjectConfigProvider

        public void setProjectConfigProvider​(org.eclipse.xtext.workspace.IProjectConfigProvider projectConfigProvider)
      • getContext

        @Pure
        public org.eclipse.emf.ecore.resource.ResourceSet getContext()
      • setContext

        public void setContext​(org.eclipse.emf.ecore.resource.ResourceSet context)