public abstract class AbstractAnalysis extends Object implements 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.
|
public abstract CommonAnalysis addAnalysis(AbstractAnalysis anAnalysis)
public abstract CommonAnalysis addCommonAnalysis(CommonAnalysis commonAnalysis)
public abstract CommonAnalysis addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
public int compareTo(AbstractAnalysis o2)
compareTo
in interface Comparable<AbstractAnalysis>
public abstract int getMaxDepth()
public abstract int getMinDepth()
public abstract CGValuedElement getPrimaryElement()
public abstract int getStructuralHashCode()
public abstract boolean isStructurallyEqualTo(AbstractAnalysis thatAnalysis)
public abstract boolean isStructurallyEqualTo(SimpleAnalysis thatAnalysis)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.