org.eclipse.jface.text
Class Fragment
java.lang.Object
|
+--org.eclipse.jface.text.Position
|
+--org.eclipse.jface.text.Fragment
- public class Fragment
- extends Position
Represents a fragment of a ProjectionDocument
.
This class is for internal use only.
- Since:
- 2.1
Constructor Summary |
Fragment(int offset,
int length,
Position origin)
Creates new position representing a fragment. |
Method Summary |
Position |
getOrigin()
Returns the corresponding range in the parent document. |
void |
setOrigin(Position origin)
Sets the corresponding range in the parent document. |
Methods inherited from class org.eclipse.jface.text.Position |
delete, equals, getLength, getOffset, hashCode, includes, isDeleted, overlapsWith, setLength, setOffset, undelete |
Fragment
public Fragment(int offset,
int length,
Position origin)
- Creates new position representing a fragment.
- Parameters:
offset
- the offset of the fragmentlength
- the length of the fragmentorigin
- the cooresponding range in the parent document
getOrigin
public Position getOrigin()
- Returns the corresponding range in the parent document.
- Returns:
- the corresponding range in the parent document
setOrigin
public void setOrigin(Position origin)
- Sets the corresponding range in the parent document.
- Parameters:
origin
- the cooresponding range in the parent document
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.