jltools.util
Class  AnnotatedObject
java.lang.Object
  |
  +--jltools.util.AnnotatedObject
- public abstract class AnnotatedObject
- extends java.lang.Object
  
AnnotatedObject
 Overview: AnnotatedObject is any object to which generic
   annotations may be attached.  Each annotation is tagged by an integer.
   Duplicate tags are not allowed.  Annotations may not be null.
 Notes:
   The *Annotation methods methods should not be called directly, but
   instead should be called from 'Annotate'.
 
| 
Method Summary | 
 void | 
copyAnnotationsFrom(AnnotatedObject o)
 
          void copyAnnotationsFrom(AnnotatedObject o)
 Effects: Copies all annotations from . | 
 java.lang.Object | 
getAnnotation(int tag)
 
          Object getAnnotation(int tag)
 Effects: Gets the value of the annotation tagged by . | 
 void | 
removeAnnotation(int tag)
 
          void removeAnnotation(int tag)
 Effects: Causes this to contain no annotation tagged by tag. | 
 void | 
setAnnotation(int tag,
              java.lang.Object val)
 
          void setAnnotation(int tag, Object val)
 Requires: val != null
 Modifies: This. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AnnotatedObject
public AnnotatedObject()
- Contstructor.
 
setAnnotation
public final void setAnnotation(int tag,
                                java.lang.Object val)
- void setAnnotation(int tag, Object val)
 Requires: val != null
 Modifies: This.
 Effects: Causes this to have an annotation tagged with 
   whose value is .
 
getAnnotation
public final java.lang.Object getAnnotation(int tag)
- Object getAnnotation(int tag)
 Effects: Gets the value of the annotation tagged by .  Returns
   null if no such such annotation exists.
 
removeAnnotation
public final void removeAnnotation(int tag)
- void removeAnnotation(int tag)
 Effects: Causes this to contain no annotation tagged by tag.
 
copyAnnotationsFrom
public final void copyAnnotationsFrom(AnnotatedObject o)
- void copyAnnotationsFrom(AnnotatedObject o)
 Effects: Copies all annotations from .