public class SourceInfoCorrelation extends Object implements SourceInfo
Constructor and Description |
---|
SourceInfoCorrelation(SourceInfoCorrelation parent,
SourceOrigin origin) |
SourceInfoCorrelation(SourceOrigin origin) |
Modifier and Type | Method and Description |
---|---|
void |
addCorrelation(Correlation c)
Add a Correlation to the SourceInfo.
|
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() |
Correlation |
getPrimaryCorrelation()
Usually (always?) there is only one primary correlation.
|
int |
getStartLine() |
int |
getStartPos() |
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 SourceInfoCorrelation(SourceOrigin origin)
public SourceInfoCorrelation(SourceInfoCorrelation parent, SourceOrigin origin)
public void addCorrelation(Correlation c)
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 Correlation getPrimaryCorrelation()
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.