|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.annot.Annotation scale.clef.PureFunctionAnnotation
public class PureFunctionAnnotation
This annotation is used to mark routines as being "pure functions".
$Id: PureFunctionAnnotation.java,v 1.19 2007-08-27 18:26:15 burrill Exp $
Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
There are various types of "purity". The function
This class no longer creates an annotation. It simply sets the information in the declaration of the routine.
RoutineDecl
Field Summary |
---|
Fields inherited from class scale.annot.Annotation |
---|
knownAnnotations |
Method Summary | |
---|---|
static java.lang.Object |
annotationKey()
|
static Annotation |
create(RoutineDecl declaration,
Creator creator,
Support support,
java.lang.String slevel)
|
boolean |
equivalent(Annotation da)
Return true if the annotations are equivalent. |
java.lang.Object |
getKey()
Return the key for this annotation class. |
boolean |
isUnique()
Returns a flag indicating if a node is permitted to have multiple instances of this annotation type. |
static int |
pfal0()
Return the count of functions marked as not pure. |
static int |
pfal1()
Return the count of functions marked as PUREARGS. |
static int |
pfal2()
Return the count of functions marked as PUREGV. |
static int |
pfal3()
Return the count of functions marked as PUREGV & PUREARGS. |
static int |
pfal4()
Return the count of functions marked as PURESE. |
static int |
pfal5()
Return the count of functions marked as PURESE & PUREARGS. |
static int |
pfal6()
Return the count of functions marked as PURESE & PUREGV. |
static int |
pfal7()
Return the count of functions marked as PURE. |
java.lang.String |
toStringSpecial()
Return a string representation of the additioanl internal state of the annotation. |
Methods inherited from class scale.annot.Annotation |
---|
addNode, allAnnotations, allMatchingAnnotations, annotationName, equals, getAnnotation, getCreator, getDisplayColorHint, getDisplayLabel, 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 int pfal0()
public static int pfal1()
public static int pfal2()
public static int pfal3()
public static int pfal4()
public static int pfal5()
public static int pfal6()
public static int pfal7()
public static Annotation create(RoutineDecl declaration, Creator creator, Support support, java.lang.String slevel) throws InvalidException
InvalidException
public boolean equivalent(Annotation da)
equivalent
in class Annotation
da
- the other annotationpublic boolean isUnique()
Annotation
isUnique
in class Annotation
public static java.lang.Object annotationKey()
public java.lang.Object getKey()
Annotation
this.annotationKey()returns the wrong key when used in a parent class method, each sub-class must implement a method to return its key.
public Object getKey() { return ThisClass.annotationKey(); }
getKey
in class Annotation
public java.lang.String toStringSpecial()
Annotation
toStringSpecial
in class Annotation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |