|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.codegen.cse.AbstractAnalysis
public abstract class AbstractAnalysis
An AbstractAnalysis describes one or more occurrences of a structurally identical tree of CGValuedElements.
A SimpleAnalysis describes a single occurrence that may grow into:
A CommonAnalysis describes a multiple occurrence.
Constructor Summary | |
---|---|
AbstractAnalysis()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAnalysis()
Method Detail |
---|
@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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |