- they are called annotations
- they can be RUNTIME or SOURCE_ONLY
- they are interfaces
- the SOURCE_ONLY annotations can be applied to local variables
A Rafael D Teixeira wrote:
On Thu, 2004-03-18 at 22:35, Jonathan Pryor wrote:I suspect that there is no way to add attributes in Java. Microsoft's Visual J# permits the use of Attributes (IIRC), but it's through their Visual J++ syntax -- through a specially formed JavaDoc comment. Something like (from memory):/** * @attribute-name (args...) */ public void myMethod () {/* ... */} Of course, that's compiler specific, and no standard Java compiler will support that. So when it comes to attributes, you're probably up the creek. - JonMaybe when ikvm supports Java 'Tiger' 1.5, that has attributes added to the language (well sort-of, because it resembles the Visual J# way...). My two cents,
