|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.Annotations
public class Annotations
Utility class to retrieve and manipulate annotations. Annotations are object of arbitrary classes that can be added to an instance of a meta class. They can be used to add additional informations to a meta class instance. An example of using anotations is the vMAGIC VHDL parser that stores error information in the created meta class instances. Annotations are also used to store information about comments.
Method Summary | ||
---|---|---|
static
|
getAnnotation(VhdlElement element,
java.lang.Class<T> clazz)
Returns an annotation instance of the given class. |
|
static
|
putAnnotation(VhdlElement element,
java.lang.Class<T> clazz,
T value)
Stores an annotation in the given element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T getAnnotation(VhdlElement element, java.lang.Class<T> clazz)
null
.
T
- element
- the elementclazz
- the class of the instance
null
public static <T> void putAnnotation(VhdlElement element, java.lang.Class<T> clazz, T value)
T
- element
- the elementclazz
- the class of the instancevalue
- the instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |