Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.dom.rewrite
Class TargetSourceRangeComputer.SourceRange


java.lang.Object
  extended by 
org.eclipse.jdt.core.dom.rewrite.TargetSourceRangeComputer.SourceRange
Enclosing class:
TargetSourceRangeComputer

public static final class TargetSourceRangeComputer.SourceRange
extends Object

Reified source range. Instances are "value" object (cannot be modified).

Since:
3.1

Constructor Summary
TargetSourceRangeComputer.SourceRange (int startPosition, int length)
          Creates a new source range.
 
Method Summary
 int getLength ()
          Returns the source length.
 int getStartPosition ()
          Returns the start position.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetSourceRangeComputer.SourceRange

public TargetSourceRangeComputer.SourceRange(int startPosition,
                                             int length)
Creates a new source range.

Parameters:
startPosition - the 0-based character index, or -1 if no source position information is known
length - the (possibly 0) length, or 0 if no source position information is known
Method Detail

getStartPosition

public int getStartPosition()
Returns the start position.

Returns:
the 0-based character index, or -1 if no source position information is known

getLength

public int getLength()
Returns the source length.

Returns:
a (possibly 0) length, or 0 if no source position information is known

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire