org.cojen.util
Class AnnotationDescParser
java.lang.Object
org.cojen.util.AnnotationDescParser
public class AnnotationDescParser
- extends Object
Parses an annotation descriptor String to a Cojen Annotation definition.
- Since:
- 2.1
- Author:
- Brian S O'Neill
- See Also:
AnnotationDescPrinter
|
Method Summary |
protected Annotation |
buildRootAnnotation(TypeDesc rootAnnotationType)
Override this method if a root annotation is not provided, as it must be
built after parsing the root annotation type. |
Annotation |
parse(Annotation rootAnnotation)
Parses the given annotation, returning the root annotation that received
the results. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationDescParser
public AnnotationDescParser(String annotationString)
- Parameters:
annotationString - annotation to parse
parse
public Annotation parse(Annotation rootAnnotation)
- Parses the given annotation, returning the root annotation that received
the results.
- Parameters:
rootAnnotation - root annotation
- Returns:
- root annotation
- Throws:
IllegalArgumentExcecption - if annotation is malformed
buildRootAnnotation
protected Annotation buildRootAnnotation(TypeDesc rootAnnotationType)
- Override this method if a root annotation is not provided, as it must be
built after parsing the root annotation type. By default, this method
throws UnsupportedOperationException.
Copyright © 2004-2008 Brian S O'Neill. All Rights Reserved.