Class V8XtextFile

  • All Implemented Interfaces:
    IXtextFile, IV8Element, IV8File, org.eclipse.core.runtime.IAdaptable, org.eclipse.handly.model.IElement, org.eclipse.handly.model.IElementExtension, org.eclipse.handly.model.impl.IElementImpl, org.eclipse.handly.model.impl.IElementImplExtension, org.eclipse.handly.model.impl.ISourceElementImpl, org.eclipse.handly.model.impl.ISourceFileImpl, org.eclipse.handly.model.impl.ISourceFileImplExtension, org.eclipse.handly.model.impl.support.IElementImplSupport, org.eclipse.handly.model.impl.support.IModelManager.Provider, org.eclipse.handly.model.impl.support.ISourceElementImplSupport, org.eclipse.handly.model.impl.support.ISourceFileImplSupport, org.eclipse.handly.model.ISourceElement, org.eclipse.handly.model.ISourceElementExtension, org.eclipse.handly.model.ISourceFile, org.eclipse.handly.model.ISourceFileExtension, org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource>, org.eclipse.xtext.util.concurrent.IWriteAccess<org.eclipse.xtext.resource.XtextResource>
    Direct Known Subclasses:
    DcsFile

    public abstract class V8XtextFile
    extends XtextFile
    implements IV8File
    Represents an Xtext-based V8 source file. This class is intended to be extended by clients.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

        org.eclipse.handly.model.impl.IElementImplExtension.CloseHint
      • Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IReadAccess

        org.eclipse.xtext.util.concurrent.IReadAccess.Priority<State extends Object>
      • Nested classes/interfaces inherited from interface org.eclipse.handly.model.impl.support.ISourceFileImplSupport

        org.eclipse.handly.model.impl.support.ISourceFileImplSupport.NotifyingReconcileOperation, org.eclipse.handly.model.impl.support.ISourceFileImplSupport.ReconcileOperation
    • Field Summary

      • Fields inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

        CLOSE_HINT, FORCE_OPEN
      • Fields inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport

        NEW_ELEMENTS, NO_BODY
      • Fields inherited from interface org.eclipse.handly.model.impl.ISourceFileImplExtension

        WORKING_COPY_BUFFER, WORKING_COPY_CALLBACK, WORKING_COPY_CONTEXT
      • Fields inherited from interface org.eclipse.handly.model.impl.support.ISourceFileImplSupport

        SOURCE_AST, SOURCE_CONTENTS, SOURCE_SNAPSHOT
    • Constructor Summary

      Constructors 
      Constructor Description
      V8XtextFile​(V8ProjectHandle parent, org.eclipse.core.resources.IFile file)
      Constructs a handle for an Xtext-based V8 source file with the given parent element and the given underlying workspace file.
    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods 
      Modifier and Type Method Description
      default org.eclipse.handly.model.impl.support.IModelManager getModelManager_()  
      V8ProjectHandle getParent()  
      • Methods inherited from class org.eclipse.handly.model.impl.support.WorkspaceSourceFile

        getFile_, getResource_
      • Methods inherited from class org.eclipse.handly.model.impl.support.Element

        equals, getName_, getParent_, hashCode, toString
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
      • Methods inherited from interface org.eclipse.handly.model.IElement

        equals, hashCode
      • Methods inherited from interface org.eclipse.handly.model.IElementExtension

        exists, getAncestor, getChildren, getChildren, getLocationUri, getName, getResource
      • Methods inherited from interface org.eclipse.handly.model.impl.IElementImpl

        equalsAndSameParentChain_, getChildrenOfType_, getHandleMemento_, getLocationUri_, getName_, getParent_, getRoot_, toDisplayString_
      • Methods inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

        close_, getBody_, getBody_, getChildren_
      • Methods inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport

        canEqual_, exists_, findBody_, getChildrenFromBody_, getElementManager_, getModel_, isOpenable_, newDoesNotExistException_, open_, peekAtBody_, remove_, removing_, toString_, toStringAncestors_, toStringBody_, toStringChildren_
      • Methods inherited from interface org.eclipse.xtext.util.concurrent.IReadAccess

        tryReadOnly, tryReadOnly, tryReadOnly
      • Methods inherited from interface org.eclipse.handly.model.ISourceElementExtension

        getSourceElementAt, getSourceElementInfo
      • Methods inherited from interface org.eclipse.handly.model.impl.support.ISourceElementImplSupport

        getSourceElementAt_, getSourceElementAt_, getSourceElementInfo_
      • Methods inherited from interface org.eclipse.handly.model.ISourceFileExtension

        getBuffer, isWorkingCopy, needsReconciling, reconcile
      • Methods inherited from interface org.eclipse.handly.model.impl.support.ISourceFileImplSupport

        acquireExistingWorkingCopy_, becomeWorkingCopy_, buildStructure_, close_, defaultEquals_, defaultHashCode_, fileExists_, getBuffer_, getFileBuffer_, getFileSnapshotProvider_, getReconcileOperation_, getWorkingCopyContext_, isWorkingCopy_, needsReconciling_, newWorkingCopyContext_, openParent_, reconcile_, releaseWorkingCopy_, toStringName_, validateExistence_, workingCopyModeChanged_
      • Methods inherited from interface com._1c.g5.v8.dt.core.handle.IV8File

        getFile
      • Methods inherited from interface org.eclipse.xtext.util.concurrent.IWriteAccess

        tryModify, tryModify, tryModify
    • Constructor Detail

      • V8XtextFile

        public V8XtextFile​(V8ProjectHandle parent,
                           org.eclipse.core.resources.IFile file)
        Constructs a handle for an Xtext-based V8 source file with the given parent element and the given underlying workspace file.
        Parameters:
        parent - the parent of the element (not null)
        file - the workspace file underlying the element (not null)
        Throws:
        IllegalArgumentException - if the handle cannot be constructed on the given workspace file
    • Method Detail

      • getParent

        public final V8ProjectHandle getParent()
        Specified by:
        getParent in interface org.eclipse.handly.model.IElementExtension
        Specified by:
        getParent in interface IV8Element
      • getModelManager_

        public default org.eclipse.handly.model.impl.support.IModelManager getModelManager_()
        Specified by:
        getModelManager_ in interface org.eclipse.handly.model.impl.support.IModelManager.Provider