Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.utility
Class TextRange.Empty

java.lang.Object
  extended by org.eclipse.jpt.common.core.utility.AbstractTextRange
      extended by org.eclipse.jpt.common.core.utility.TextRange.Empty
All Implemented Interfaces:
TextRange
Enclosing interface:
TextRange

public static final class TextRange.Empty
extends AbstractTextRange

Empty implementation of text range.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.TextRange
TextRange.Empty
 
Field Summary
static TextRange INSTANCE
           
 
Method Summary
 int getLength()
          Return the length of the text.
 int getLineNumber()
          Return the line number of the text.
 int getOffset()
          Return the offset of the text.
static TextRange instance()
           
 String toString()
           
 
Methods inherited from class org.eclipse.jpt.common.core.utility.AbstractTextRange
buildTextRange, equals, getEnd, hashCode, includes, touches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final TextRange INSTANCE
Method Detail

instance

public static TextRange instance()

getLineNumber

public int getLineNumber()
Description copied from interface: TextRange
Return the line number of the text.


getOffset

public int getOffset()
Description copied from interface: TextRange
Return the offset of the text.


getLength

public int getLength()
Description copied from interface: TextRange
Return the length of the text.


toString

public String toString()
Overrides:
toString in class AbstractTextRange

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.