GWT 2.6.1

com.google.gwt.core.ext.soyc
Class Range

java.lang.Object
  extended by com.google.gwt.core.ext.soyc.Range

public final class Range
extends java.lang.Object

Represents a contiguous region of characters in the compiler output.


Field Summary
static java.util.Comparator<Range> DEPENDENCY_ORDER_COMPARATOR
          Sorts Ranges so that a Range will be preceeded by any Ranges that enclose it.
(package private)  int end
           
(package private)  int endColumn
           
(package private)  int endLine
           
static java.util.Comparator<Range> SOURCE_ORDER_COMPARATOR
          Sorts Ranges into the order in which they would appear in the source code based on start position and end position.
(package private)  int start
           
(package private)  int startColumn
           
(package private)  int startLine
           
 
Constructor Summary
Range(int start, int end)
          Constructor.
Range(int start, int end, int startLine, int startColumn, int endLine, int endColumn)
          Constructor.
 
Method Summary
 boolean contains(Range o)
          Return true if the given Range lies wholly within the Range.
 boolean equals(java.lang.Object obj)
           
 int getEnd()
           
 int getEndColumn()
           
 int getEndLine()
           
 int getStart()
           
 int getStartColumn()
           
 int getStartLine()
           
 int hashCode()
           
 int length()
           
 java.lang.String toString()
          For debugging use only.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEPENDENCY_ORDER_COMPARATOR

public static final java.util.Comparator<Range> DEPENDENCY_ORDER_COMPARATOR
Sorts Ranges so that a Range will be preceeded by any Ranges that enclose it.


SOURCE_ORDER_COMPARATOR

public static final java.util.Comparator<Range> SOURCE_ORDER_COMPARATOR
Sorts Ranges into the order in which they would appear in the source code based on start position and end position.


end

final int end

endLine

final int endLine

endColumn

final int endColumn

start

final int start

startLine

final int startLine

startColumn

final int startColumn
Constructor Detail

Range

public Range(int start,
             int end)
Constructor.

Parameters:
start - must be non-negative
end - must be greater than or equal to start

Range

public Range(int start,
             int end,
             int startLine,
             int startColumn,
             int endLine,
             int endColumn)
Constructor.

Parameters:
start - must be non-negative
end - must be greater than or equal to start
Method Detail

contains

public boolean contains(Range o)
Return true if the given Range lies wholly within the Range.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getEnd

public int getEnd()

getEndColumn

public int getEndColumn()

getEndLine

public int getEndLine()

getStart

public int getStart()

getStartColumn

public int getStartColumn()

getStartLine

public int getStartLine()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

length

public int length()

toString

public java.lang.String toString()
For debugging use only.

Overrides:
toString in class java.lang.Object

GWT 2.6.1