Interface ILocationInResource

  • All Known Subinterfaces:
    IPlatformSpecificLocation<PlatformResource>
    All Known Implementing Classes:
    AbstractLocationInResource, LocationInResource

    public interface ILocationInResource
    Describes the location in a given file or storage.
    Since:
    2.3
    Noextend:
    This interface is not intended to be extended by clients.
    Noimplement:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • getLanguage

        LanguageInfo getLanguage()
        Returns:
        the language that this resource belongs to. May be null.
      • getAbsoluteResourceURI

        AbsoluteURI getAbsoluteResourceURI()
        Returns:
        the EMF resource URI for this location. May be null if the resource is not an EMF resource.
      • getSrcRelativeResourceURI

        SourceRelativeURI getSrcRelativeResourceURI()
        Returns the URI of this resource relative to the classpath if applicable. Otherwise the URI relative to the project root.
      • getContents

        java.io.InputStream getContents()
                                 throws java.io.IOException
        Returns the contents of the resource. May be null.
        Throws:
        java.io.IOException
      • getProjectConfig

        IProjectConfig getProjectConfig()
        Returns:
        the project configuration for this location. Never null.
      • getTextRegion

        org.eclipse.xtext.util.ITextRegionWithLineInformation getTextRegion()
        Returns:
        the range in the resource. May be null.