public class SourceOrigin extends Object implements SourceInfo
SourceInfoCorrelation
?
TODO: make this package-protected?Modifier and Type | Field and Description |
---|---|
static SourceOrigin |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
void |
addCorrelation(Correlation c)
Add a Correlation to the SourceInfo.
|
static SourceOrigin |
create(int startPos,
int endPos,
int startLine,
String fileName)
Creates SourceOrigin nodes.
|
static SourceOrigin |
create(int startLine,
String fileName)
Creates SourceOrigin nodes.
|
boolean |
equals(Object o) |
Correlation |
getCorrelation(Correlation.Axis axis)
Return the Correlation that has been set for a given Axis, or
null if no Correlation has been set on the given axis. |
Correlation[] |
getCorrelations()
Returns the Correlations added along each Axis on which a Correlation has
been set.
|
CorrelationFactory |
getCorrelator()
Returns the correlation factory that created this node.
|
int |
getEndPos() |
String |
getFileName() |
SourceOrigin |
getOrigin() |
int |
getStartLine() |
int |
getStartPos() |
int |
hashCode() |
SourceInfo |
makeChild()
Create a child node of the same type and Origin as this node.
|
SourceInfo |
makeChild(SourceOrigin origin)
Create a child node of the same type as this node, but with a new Origin.
|
String |
toString() |
public static final SourceOrigin UNKNOWN
public static SourceOrigin create(int startPos, int endPos, int startLine, String fileName)
public static SourceOrigin create(int startLine, String fileName)
public void addCorrelation(Correlation c)
SourceInfo
addCorrelation
in interface SourceInfo
public Correlation getCorrelation(Correlation.Axis axis)
SourceInfo
null
if no Correlation has been set on the given axis.getCorrelation
in interface SourceInfo
public Correlation[] getCorrelations()
SourceInfo
getCorrelations
in interface SourceInfo
public CorrelationFactory getCorrelator()
SourceInfo
getCorrelator
in interface SourceInfo
public int getEndPos()
getEndPos
in interface SourceInfo
public String getFileName()
getFileName
in interface SourceInfo
public SourceOrigin getOrigin()
getOrigin
in interface SourceInfo
public int getStartLine()
getStartLine
in interface SourceInfo
public int getStartPos()
getStartPos
in interface SourceInfo
public SourceInfo makeChild()
SourceInfo
makeChild
in interface SourceInfo
public SourceInfo makeChild(SourceOrigin origin)
SourceInfo
makeChild
in interface SourceInfo
Copyright © 2018. All rights reserved.