|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.executable.ISeqPosition
public class ISeqPosition
Constructor Summary | |
---|---|
ISeqPosition(YARVMachine.InstructionSequence iseq)
|
Method Summary | |
---|---|
void |
adjustStartOffset(int relativeValue)
Modify startOffset by a relativeValue. |
int |
getEndLine()
Which is the last(end) line that this source position occurs on (zero-based) |
int |
getEndOffset()
Get offset (relative to beginning of source file) immediately after the last character represented by this source position |
java.lang.String |
getFile()
Which file does this source position live in? |
int |
getStartLine()
Which is the first(start) line that this source position occurs on (zero-based) |
int |
getStartOffset()
Get offset (relative to beginning of source file) immediately before first character represented by this source position. |
ISourcePosition |
union(ISourcePosition position)
Calculates the logical union of the two positions and creates a new resulting position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ISeqPosition(YARVMachine.InstructionSequence iseq)
Method Detail |
---|
public java.lang.String getFile()
ISourcePosition
getFile
in interface ISourcePosition
public int getStartLine()
ISourcePosition
getStartLine
in interface ISourcePosition
public int getEndLine()
ISourcePosition
getEndLine
in interface ISourcePosition
public void adjustStartOffset(int relativeValue)
ISourcePosition
adjustStartOffset
in interface ISourcePosition
relativeValue
- to nudge startOffset up or downpublic int getStartOffset()
ISourcePosition
getStartOffset
in interface ISourcePosition
public int getEndOffset()
ISourcePosition
getEndOffset
in interface ISourcePosition
public ISourcePosition union(ISourcePosition position)
ISourcePosition
union
in interface ISourcePosition
position
- to be unioned against this position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |