Class GrammarResource

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource, org.eclipse.emf.ecore.resource.Resource.Internal

    public class GrammarResource
    extends DerivedStateAwareResource
    Resource implementation that instantiates the infered packages as part of the derived state computation.
    • Constructor Detail

      • GrammarResource

        public GrammarResource()
    • Method Detail

      • doLinking

        protected void doLinking()
        Overridden to do only the clean-part of the linking but not the actual linking. This is deferred until someone wants to access the content of the resource.
        Overrides:
        doLinking in class LazyLinkingResource
      • superDoLinking

        protected void superDoLinking()
        Performs the actual linking.
      • getErrors

        public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getErrors()
        Overridden to make sure the errors are up-to-date when someone wants to access them.
        Specified by:
        getErrors in interface org.eclipse.emf.ecore.resource.Resource
        Overrides:
        getErrors in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
      • getWarnings

        public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getWarnings()
        Overridden to make sure the warnings are up-to-date when someone wants to access them.
        Specified by:
        getWarnings in interface org.eclipse.emf.ecore.resource.Resource
        Overrides:
        getWarnings in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
      • addSyntaxDiagnostic

        protected void addSyntaxDiagnostic​(java.util.List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> diagnostics,
                                           INode node)
        Overrides:
        addSyntaxDiagnostic in class XtextResource
        Since:
        2.9