Class DefaultHierarchyNodeReference

    • Field Summary

      • Fields inherited from interface org.eclipse.xtext.util.ITextRegionWithLineInformation

        EMPTY_REGION
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultHierarchyNodeReference​(java.lang.String text, org.eclipse.xtext.util.ITextRegionWithLineInformation textRegion, java.lang.Object navigationElement)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(int offset)  
      boolean contains​(org.eclipse.xtext.util.ITextRegion other)  
      int getEndLineNumber()  
      int getLength()  
      int getLineNumber()  
      java.lang.Object getNavigationElement()
      Returns an instance containing enough information to identify an editor that should be opened and a region that should be revealed.
      int getOffset()  
      java.lang.String getText()  
      org.eclipse.xtext.util.ITextRegionWithLineInformation getTextRegion()  
      org.eclipse.xtext.util.ITextRegion merge​(org.eclipse.xtext.util.ITextRegion region)  
      org.eclipse.xtext.util.ITextRegionWithLineInformation merge​(org.eclipse.xtext.util.ITextRegionWithLineInformation other)  
      • Methods inherited from class java.lang.Object

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

      • DefaultHierarchyNodeReference

        public DefaultHierarchyNodeReference​(java.lang.String text,
                                             org.eclipse.xtext.util.ITextRegionWithLineInformation textRegion,
                                             java.lang.Object navigationElement)
    • Method Detail

      • getTextRegion

        public org.eclipse.xtext.util.ITextRegionWithLineInformation getTextRegion()
      • getNavigationElement

        public java.lang.Object getNavigationElement()
        Description copied from interface: INavigatable

        Returns an instance containing enough information to identify an editor that should be opened and a region that should be revealed.

        Typical navigation elements are resource, object and reference descriptions.

        Avoid usage of resource sets, resources and eobjects as navigation elements, since it can lead to memory leaks.

        Specified by:
        getNavigationElement in interface INavigatable
      • contains

        public boolean contains​(org.eclipse.xtext.util.ITextRegion other)
        Specified by:
        contains in interface org.eclipse.xtext.util.ITextRegion
      • contains

        public boolean contains​(int offset)
        Specified by:
        contains in interface org.eclipse.xtext.util.ITextRegion
      • getEndLineNumber

        public int getEndLineNumber()
        Specified by:
        getEndLineNumber in interface org.eclipse.xtext.util.ITextRegionWithLineInformation
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.eclipse.xtext.util.ITextRegion
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface org.eclipse.xtext.util.ITextRegionWithLineInformation
      • getOffset

        public int getOffset()
        Specified by:
        getOffset in interface org.eclipse.xtext.util.ITextRegion
      • merge

        public org.eclipse.xtext.util.ITextRegion merge​(org.eclipse.xtext.util.ITextRegion region)
        Specified by:
        merge in interface org.eclipse.xtext.util.ITextRegion
      • merge

        public org.eclipse.xtext.util.ITextRegionWithLineInformation merge​(org.eclipse.xtext.util.ITextRegionWithLineInformation other)
        Specified by:
        merge in interface org.eclipse.xtext.util.ITextRegionWithLineInformation