|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.annot.Annotation
scale.score.analyses.AliasAnnote
public class AliasAnnote
An annotation to represent alias variables. The alias variables
$Id: AliasAnnote.java,v 1.19 2007-08-27 18:26:51 burrill Exp $
Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
The alias variables are used by the alias analyzer as an abstraction. We add the alias annotation to each of the declaration nodes in a program.
| Field Summary |
|---|
| Fields inherited from class scale.annot.Annotation |
|---|
knownAnnotations |
| Method Summary | |
|---|---|
static java.lang.Object |
annotationKey()
Define a unique key for the annotation which is used for comparisons. |
static Annotation |
create(Declaration n,
Creator c,
Support s,
AliasVar av)
Create a alias annotation. |
static Annotation |
create(Expr n,
Creator c,
Support s,
AliasVar av)
Create a alias annotation. |
boolean |
equivalent(Annotation a)
Return true if the annotations are equivalent. |
AliasVar |
getAliasVar()
Get the alias variable. |
java.lang.String |
getDisplayLabel()
Return a String suitable for labeling this node in a graphical display. |
java.lang.Object |
getKey()
Return the key for the alias annotation. |
boolean |
isUnique()
Indicates that a node is only allowed one instance of this annotation. |
java.lang.String |
toStringSpecial()
Return a string representation of the alias annotation. |
| Methods inherited from class scale.annot.Annotation |
|---|
addNode, allAnnotations, allMatchingAnnotations, annotationName, equals, getAnnotation, getCreator, getDisplayColorHint, getDisplayName, getDisplayShapeHint, getNodeID, getSupport, hasAnnotation, hasEqualAnnotation, hashCode, removeAllAnnotationTables, removeNode, removeNode, sameSupport, toString, toStringAnnotations, toStringClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Annotation create(Expr n,
Creator c,
Support s,
AliasVar av)
n - is the node to which the annotation will be attachedc - the tool which creates the annotations - the support values for the annotation (belief/combination)av - the alias variable representing the declaration.
public static Annotation create(Declaration n,
Creator c,
Support s,
AliasVar av)
n - is the node to which the annotation will be attachedc - the tool which creates the annotations - the support values for the annotation (belief/combination)av - the alias variable representing the declaration.
public boolean equivalent(Annotation a)
Annotation
equivalent in class Annotationa - the other annotation
public final AliasVar getAliasVar()
public boolean isUnique()
isUnique in class Annotationpublic static java.lang.Object annotationKey()
public java.lang.Object getKey()
getKey in class Annotationpublic java.lang.String toStringSpecial()
toStringSpecial in class Annotationpublic java.lang.String getDisplayLabel()
getDisplayLabel in interface DisplayNodegetDisplayLabel in class Annotation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||