public class TextPosition extends java.lang.Object implements java.lang.Comparable<TextPosition>
Modifier and Type | Field and Description |
---|---|
static TextPosition |
NOT_AVAILABLE |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TextPosition other) |
static TextPosition |
create(int line,
int column) |
static TextPosition |
endOf(org.codehaus.groovy.ast.ASTNode node) |
boolean |
equals(java.lang.Object obj) |
int |
getColumn() |
int |
getColumnIndex() |
int |
getLine() |
int |
getLineIndex() |
int |
hashCode() |
TextPosition |
shiftVertically(int numLines) |
static TextPosition |
startOf(org.codehaus.groovy.ast.ASTNode node) |
static TextPosition |
startOf(org.codehaus.groovy.syntax.Token token) |
java.lang.String |
toString() |
public static final TextPosition NOT_AVAILABLE
public int getLine()
public int getColumn()
public int getLineIndex()
public int getColumnIndex()
public TextPosition shiftVertically(int numLines)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(TextPosition other)
compareTo
in interface java.lang.Comparable<TextPosition>
public static TextPosition startOf(org.codehaus.groovy.syntax.Token token)
public static TextPosition startOf(org.codehaus.groovy.ast.ASTNode node)
public static TextPosition endOf(org.codehaus.groovy.ast.ASTNode node)
public static TextPosition create(int line, int column)
Copyright © 2016. All rights reserved