public class SimpleAnalysis extends AbstractAnalysis
Modifier and Type | Field and Description |
---|---|
protected CGValuedElement |
cgElement |
protected SimpleAnalysis[] |
children |
protected int |
depth |
static SimpleAnalysis[] |
EMPTY_LIST |
protected GlobalPlace |
globalPlace |
protected int |
structuralHashCode |
Constructor and Description |
---|
SimpleAnalysis(GlobalPlace globalPlace,
CGValuedElement cgElement,
int depth,
int structuralHashCode,
SimpleAnalysis[] children) |
Modifier and Type | Method and Description |
---|---|
CommonAnalysis |
addAnalysis(AbstractAnalysis anAnalysis)
Return the analysis that shares this analysis and anAnalysis
|
CommonAnalysis |
addCommonAnalysis(CommonAnalysis commonAnalysis)
Return the analysis that shares this analysis and commonAnalysis
|
CommonAnalysis |
addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
Return the analysis that shares this analysis and simpleAnalysis
|
void |
dispose() |
int |
getDepth() |
CGValuedElement |
getElement() |
int |
getMaxDepth()
Return the depth of the deepest shared analysis.
|
int |
getMinDepth()
Return the depth of the shallowest shared analysis.
|
SimpleAnalysis |
getParent() |
CGValuedElement |
getPrimaryElement()
Return the CG element to be used for this analysis.
|
int |
getStructuralHashCode()
Return the hash code derived from the tree structure of this analysis.
|
boolean |
isStructurallyEqualTo(AbstractAnalysis thatAnalysis)
Return true if the tree structure of this analysis is identical to thatAnalysis.
|
boolean |
isStructurallyEqualTo(SimpleAnalysis that)
Return true if the tree structure of this analysis is identical to thatAnalysis.
|
void |
setCommonAnalysis(CommonAnalysis commonAnalysis) |
java.lang.String |
toString() |
compareTo
@NonNull public static final SimpleAnalysis[] EMPTY_LIST
@NonNull protected final GlobalPlace globalPlace
@NonNull protected final CGValuedElement cgElement
protected final int depth
protected final int structuralHashCode
@NonNull protected final SimpleAnalysis[] children
public SimpleAnalysis(@NonNull GlobalPlace globalPlace, @NonNull CGValuedElement cgElement, int depth, int structuralHashCode, @NonNull SimpleAnalysis[] children)
@NonNull public CommonAnalysis addAnalysis(@NonNull AbstractAnalysis anAnalysis)
AbstractAnalysis
addAnalysis
in class AbstractAnalysis
@NonNull public CommonAnalysis addCommonAnalysis(@NonNull CommonAnalysis commonAnalysis)
AbstractAnalysis
addCommonAnalysis
in class AbstractAnalysis
@NonNull public CommonAnalysis addSimpleAnalysis(@NonNull SimpleAnalysis simpleAnalysis)
AbstractAnalysis
addSimpleAnalysis
in class AbstractAnalysis
public void dispose()
public int getDepth()
@NonNull public CGValuedElement getElement()
public int getMaxDepth()
AbstractAnalysis
getMaxDepth
in class AbstractAnalysis
public int getMinDepth()
AbstractAnalysis
getMinDepth
in class AbstractAnalysis
@Nullable public SimpleAnalysis getParent()
@NonNull public CGValuedElement getPrimaryElement()
AbstractAnalysis
getPrimaryElement
in class AbstractAnalysis
public int getStructuralHashCode()
AbstractAnalysis
getStructuralHashCode
in class AbstractAnalysis
public boolean isStructurallyEqualTo(@NonNull AbstractAnalysis thatAnalysis)
AbstractAnalysis
isStructurallyEqualTo
in class AbstractAnalysis
public boolean isStructurallyEqualTo(@NonNull SimpleAnalysis that)
AbstractAnalysis
isStructurallyEqualTo
in class AbstractAnalysis
public void setCommonAnalysis(@NonNull CommonAnalysis commonAnalysis)
public java.lang.String toString()
toString
in class java.lang.Object