public class SimpleAnalysis extends AbstractAnalysis
| Modifier and Type | Field and Description |
|---|---|
static SimpleAnalysis[] |
EMPTY_LIST |
| 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) |
String |
toString() |
compareTopublic static final SimpleAnalysis[] EMPTY_LIST
public SimpleAnalysis(GlobalPlace globalPlace, CGValuedElement cgElement, int depth, int structuralHashCode, SimpleAnalysis[] children)
public CommonAnalysis addAnalysis(AbstractAnalysis anAnalysis)
AbstractAnalysisaddAnalysis in class AbstractAnalysispublic CommonAnalysis addCommonAnalysis(CommonAnalysis commonAnalysis)
AbstractAnalysisaddCommonAnalysis in class AbstractAnalysispublic CommonAnalysis addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
AbstractAnalysisaddSimpleAnalysis in class AbstractAnalysispublic void dispose()
public int getDepth()
public CGValuedElement getElement()
public int getMaxDepth()
AbstractAnalysisgetMaxDepth in class AbstractAnalysispublic int getMinDepth()
AbstractAnalysisgetMinDepth in class AbstractAnalysispublic SimpleAnalysis getParent()
public CGValuedElement getPrimaryElement()
AbstractAnalysisgetPrimaryElement in class AbstractAnalysispublic int getStructuralHashCode()
AbstractAnalysisgetStructuralHashCode in class AbstractAnalysispublic boolean isStructurallyEqualTo(AbstractAnalysis thatAnalysis)
AbstractAnalysisisStructurallyEqualTo in class AbstractAnalysispublic boolean isStructurallyEqualTo(SimpleAnalysis that)
AbstractAnalysisisStructurallyEqualTo in class AbstractAnalysispublic void setCommonAnalysis(CommonAnalysis commonAnalysis)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.