com.amazon.carbonado.util
Class AnnotationDescParser
java.lang.Object
com.amazon.carbonado.util.AnnotationDescParser
public class AnnotationDescParser
- extends Object
Parses an annotation descriptor String to a Cojen Annotation definition.
- 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 © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.