|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.dart.compiler.common.SourceInfoImpl
public class SourceInfoImpl
Field Summary | |
---|---|
protected int |
column
|
protected int |
length
|
protected int |
line
|
protected Source |
source
|
protected int |
start
|
Constructor Summary | |
---|---|
SourceInfoImpl(Source source,
int line,
int column,
int start,
int length)
|
Method Summary | |
---|---|
int |
getColumn()
|
int |
getLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
int |
getLine()
|
Source |
getSource()
The source code provider. |
int |
getStart()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Source source
protected int line
protected int column
protected int start
protected int length
Constructor Detail |
---|
public SourceInfoImpl(Source source, int line, int column, int start, int length)
Method Detail |
---|
public Source getSource()
SourceInfo
getSource
in interface SourceInfo
public int getLine()
getLine
in interface SourceInfo
public int getColumn()
getColumn
in interface SourceInfo
public int getStart()
SourceInfo
The parser supplies useful well-defined source ranges to the nodes it creates.
getStart
in interface SourceInfo
-1
if no source startPosition information is recorded for this nodeSourceInfo.getLength()
,
HasSourceInfo#setSourceLocation(Source, int, int, int, int)
public int getLength()
SourceInfo
The parser supplies useful well-defined source ranges to the nodes it creates.
getLength
in interface SourceInfo
0
if no source source position information is recorded for this nodeSourceInfo.getStart()
,
HasSourceInfo#setSourceLocation(Source, int, int, int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |