public abstract class AbstractAnalysis extends java.lang.Object implements java.lang.Comparable<AbstractAnalysis>
A SimpleAnalysis describes a single occurrence that may grow into:
A CommonAnalysis describes a multiple occurrence.
Constructor and Description |
---|
AbstractAnalysis() |
Modifier and Type | Method and Description |
---|---|
abstract CommonAnalysis |
addAnalysis(AbstractAnalysis anAnalysis)
Return the analysis that shares this analysis and anAnalysis
|
abstract CommonAnalysis |
addCommonAnalysis(CommonAnalysis commonAnalysis)
Return the analysis that shares this analysis and commonAnalysis
|
abstract CommonAnalysis |
addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
Return the analysis that shares this analysis and simpleAnalysis
|
int |
compareTo(AbstractAnalysis o2) |
abstract int |
getMaxDepth()
Return the depth of the deepest shared analysis.
|
abstract int |
getMinDepth()
Return the depth of the shallowest shared analysis.
|
abstract CGValuedElement |
getPrimaryElement()
Return the CG element to be used for this analysis.
|
abstract int |
getStructuralHashCode()
Return the hash code derived from the tree structure of this analysis.
|
abstract boolean |
isStructurallyEqualTo(AbstractAnalysis thatAnalysis)
Return true if the tree structure of this analysis is identical to thatAnalysis.
|
abstract boolean |
isStructurallyEqualTo(SimpleAnalysis thatAnalysis)
Return true if the tree structure of this analysis is identical to thatAnalysis.
|
@NonNull public abstract CommonAnalysis addAnalysis(@NonNull AbstractAnalysis anAnalysis)
@NonNull public abstract CommonAnalysis addCommonAnalysis(@NonNull CommonAnalysis commonAnalysis)
@NonNull public abstract CommonAnalysis addSimpleAnalysis(@NonNull SimpleAnalysis simpleAnalysis)
public int compareTo(AbstractAnalysis o2)
compareTo
in interface java.lang.Comparable<AbstractAnalysis>
public abstract int getMaxDepth()
public abstract int getMinDepth()
@NonNull public abstract CGValuedElement getPrimaryElement()
public abstract int getStructuralHashCode()
public abstract boolean isStructurallyEqualTo(@NonNull AbstractAnalysis thatAnalysis)
public abstract boolean isStructurallyEqualTo(@NonNull SimpleAnalysis thatAnalysis)