scale.annot
Class Creator

java.lang.Object
  extended by scale.annot.Creator
Direct Known Subclasses:
CreatorSource

public abstract class Creator
extends java.lang.Object

This class is used to specify who created an Anotation.

$Id: Creator.java,v 1.16 2007-08-13 12:32:02 burrill Exp $

Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.

Anotations carry an indication of what tool created them. This is for debugging and error checking. We use a typed object class hierarchy to represent the creator. Some sample sub-classes for the Creator class are as follows:

We use a class hierarchy because it gives us more flexibility. Note - by class hierarchy we mean a hierarchy for which all instances of a specific sub-class are considered equal. Hence, an instance can be refered to by its super-class.

See Also:
Annotation

Constructor Summary
Creator(java.lang.String name)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Creator

public Creator(java.lang.String name)
Parameters:
name - is the name of creator of the annotation.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object