|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.tags.annotation.Util
public abstract class Util
Helper class for getting values from annotations.
Constructor Summary | |
---|---|
Util()
|
Method Summary | ||
---|---|---|
static String[] |
getAnnotationValues(com.thoughtworks.qdox.model.Annotation annotation,
String name,
JavaClassDescription desc)
|
|
static boolean |
getBooleanValue(com.thoughtworks.qdox.model.Annotation annotation,
String name,
Class<?> clazz)
Get a boolean value from an annotation. |
|
static boolean[] |
getBooleanValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as boolean values. |
|
static byte[] |
getByteValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as byte values. |
|
static char[] |
getCharValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as char values. |
|
static Class<?> |
getClassValue(com.thoughtworks.qdox.model.Annotation annotation,
String name,
Class<?> clazz)
|
|
static double[] |
getDoubleValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as double values. |
|
static
|
getEnumValue(com.thoughtworks.qdox.model.Annotation annotation,
String name,
Class<T> enumClass,
Class<?> clazz)
|
|
static
|
getEnumValue(com.thoughtworks.qdox.model.Annotation annotation,
String name,
Class<T> enumClass,
Class<?> clazz,
boolean returnDefault)
|
|
static float[] |
getFloatValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as float values. |
|
static int |
getIntValue(com.thoughtworks.qdox.model.Annotation annotation,
String name,
Class<?> clazz)
|
|
static int[] |
getIntValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as long values. |
|
static long[] |
getLongValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as long values. |
|
static short[] |
getShortValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as short values. |
|
static String |
getStringValue(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name,
Class<?> clazz)
Get a single annotation value |
|
static String[] |
getStringValues(com.thoughtworks.qdox.model.Annotation annotation,
JavaClassDescription desc,
String name)
Helper method to get the values of an annotation as string values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static boolean getBooleanValue(com.thoughtworks.qdox.model.Annotation annotation, String name, Class<?> clazz)
annotation
- The annotation.name
- The name of the attribute.clazz
- The annotation class.
public static int getIntValue(com.thoughtworks.qdox.model.Annotation annotation, String name, Class<?> clazz)
public static String[] getStringValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static long[] getLongValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static int[] getIntValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static float[] getFloatValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static double[] getDoubleValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static char[] getCharValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static short[] getShortValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static byte[] getByteValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static boolean[] getBooleanValues(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name)
annotation
- The annotation.desc
- The java class description.name
- The attribute name from the annotation.
public static String getStringValue(com.thoughtworks.qdox.model.Annotation annotation, JavaClassDescription desc, String name, Class<?> clazz)
annotation
- The annotationdesc
- The class descriptionname
- The name of the annotationclazz
- The class of the annotation
public static Class<?> getClassValue(com.thoughtworks.qdox.model.Annotation annotation, String name, Class<?> clazz)
public static <T extends Enum<T>> T getEnumValue(com.thoughtworks.qdox.model.Annotation annotation, String name, Class<T> enumClass, Class<?> clazz, boolean returnDefault)
public static <T extends Enum<T>> T getEnumValue(com.thoughtworks.qdox.model.Annotation annotation, String name, Class<T> enumClass, Class<?> clazz)
public static String[] getAnnotationValues(com.thoughtworks.qdox.model.Annotation annotation, String name, JavaClassDescription desc) throws IllegalArgumentException
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |