Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.parser.java.v2.util
Class OffsetPair

java.lang.Object
  extended by oracle.javatools.parser.java.v2.util.OffsetPair

public class OffsetPair
extends java.lang.Object

A simple mutable struct for storing a start offset and a length together.


Constructor Summary
protected OffsetPair(int start, int length)
           
 
Method Summary
static OffsetPair createFromStartAndEnd(int start, int end)
           
static OffsetPair createFromStartAndLength(int start, int length)
           
 int getEndOffset()
           
 int getLength()
           
 int getStartOffset()
           
 void setStartAndEnd(int start, int end)
           
 void setStartAndLength(int start, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffsetPair

protected OffsetPair(int start,
                     int length)
Method Detail

createFromStartAndLength

public static OffsetPair createFromStartAndLength(int start,
                                                  int length)

createFromStartAndEnd

public static OffsetPair createFromStartAndEnd(int start,
                                               int end)

getStartOffset

public final int getStartOffset()

getEndOffset

public final int getEndOffset()

getLength

public final int getLength()

setStartAndLength

public final void setStartAndLength(int start,
                                    int length)

setStartAndEnd

public final void setStartAndEnd(int start,
                                 int end)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.