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() |
compareTo
public static final SimpleAnalysis[] EMPTY_LIST
public SimpleAnalysis(GlobalPlace globalPlace, CGValuedElement cgElement, int depth, int structuralHashCode, SimpleAnalysis[] children)
public CommonAnalysis addAnalysis(AbstractAnalysis anAnalysis)
AbstractAnalysis
addAnalysis
in class AbstractAnalysis
public CommonAnalysis addCommonAnalysis(CommonAnalysis commonAnalysis)
AbstractAnalysis
addCommonAnalysis
in class AbstractAnalysis
public CommonAnalysis addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
AbstractAnalysis
addSimpleAnalysis
in class AbstractAnalysis
public void dispose()
public int getDepth()
public CGValuedElement getElement()
public int getMaxDepth()
AbstractAnalysis
getMaxDepth
in class AbstractAnalysis
public int getMinDepth()
AbstractAnalysis
getMinDepth
in class AbstractAnalysis
public SimpleAnalysis getParent()
public CGValuedElement getPrimaryElement()
AbstractAnalysis
getPrimaryElement
in class AbstractAnalysis
public int getStructuralHashCode()
AbstractAnalysis
getStructuralHashCode
in class AbstractAnalysis
public boolean isStructurallyEqualTo(AbstractAnalysis thatAnalysis)
AbstractAnalysis
isStructurallyEqualTo
in class AbstractAnalysis
public boolean isStructurallyEqualTo(SimpleAnalysis that)
AbstractAnalysis
isStructurallyEqualTo
in class AbstractAnalysis
public void setCommonAnalysis(CommonAnalysis commonAnalysis)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.