Class DefaultHierarchyNodeReference
- java.lang.Object
-
- org.eclipse.xtext.ide.editor.hierarchy.DefaultHierarchyNodeReference
-
- All Implemented Interfaces:
IHierarchyNodeReference,INavigatable,org.eclipse.xtext.util.ITextRegion,org.eclipse.xtext.util.ITextRegionWithLineInformation
public class DefaultHierarchyNodeReference extends java.lang.Object implements IHierarchyNodeReference
- Since:
- 2.10
-
-
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 booleancontains(int offset)booleancontains(org.eclipse.xtext.util.ITextRegion other)intgetEndLineNumber()intgetLength()intgetLineNumber()java.lang.ObjectgetNavigationElement()Returns an instance containing enough information to identify an editor that should be opened and a region that should be revealed.intgetOffset()java.lang.StringgetText()org.eclipse.xtext.util.ITextRegionWithLineInformationgetTextRegion()org.eclipse.xtext.util.ITextRegionmerge(org.eclipse.xtext.util.ITextRegion region)org.eclipse.xtext.util.ITextRegionWithLineInformationmerge(org.eclipse.xtext.util.ITextRegionWithLineInformation other)
-
-
-
Method Detail
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceIHierarchyNodeReference
-
getTextRegion
public org.eclipse.xtext.util.ITextRegionWithLineInformation getTextRegion()
-
getNavigationElement
public java.lang.Object getNavigationElement()
Description copied from interface:INavigatableReturns 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:
getNavigationElementin interfaceINavigatable
-
contains
public boolean contains(org.eclipse.xtext.util.ITextRegion other)
- Specified by:
containsin interfaceorg.eclipse.xtext.util.ITextRegion
-
contains
public boolean contains(int offset)
- Specified by:
containsin interfaceorg.eclipse.xtext.util.ITextRegion
-
getEndLineNumber
public int getEndLineNumber()
- Specified by:
getEndLineNumberin interfaceorg.eclipse.xtext.util.ITextRegionWithLineInformation
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceorg.eclipse.xtext.util.ITextRegion
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceorg.eclipse.xtext.util.ITextRegionWithLineInformation
-
getOffset
public int getOffset()
- Specified by:
getOffsetin interfaceorg.eclipse.xtext.util.ITextRegion
-
merge
public org.eclipse.xtext.util.ITextRegion merge(org.eclipse.xtext.util.ITextRegion region)
- Specified by:
mergein interfaceorg.eclipse.xtext.util.ITextRegion
-
merge
public org.eclipse.xtext.util.ITextRegionWithLineInformation merge(org.eclipse.xtext.util.ITextRegionWithLineInformation other)
- Specified by:
mergein interfaceorg.eclipse.xtext.util.ITextRegionWithLineInformation
-
-