Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.Value


/*     */
/*     */ public class AnnotationValueFactory
/*     */ {
/*     */   public static Value createValue(AnnotationHelper annotationHelper, TypeInfo type, Object value)
/*     */   {
/*  49 */     Value rtnValue = null;
/*  50 */     if ((type instanceof ArrayInfo))
/*     */     {
/*  52 */       Object[] objects = getArray((ArrayInfo)type, value);
/*  53 */       Value[] values = new Value[objects.length];
/*  54 */       for (int i = 0; i < objects.length; i++)
View Full Code Here


/*     */       {
/*     */         try
/*     */         {
/* 100 */           Object val = methods[j].invoke(annotation, null);
/* 101 */           TypeInfo typeInfo = methods[j].getReturnType();
/* 102 */           Value value = createValue(annotationHelper, typeInfo, val);
/* 103 */           attributes.put(methods[j].getName(), value);
/*     */         }
/*     */         catch (Throwable e)
/*     */         {
/* 107 */           throw new RuntimeException("Error retrieving annotation attribute values", e);
View Full Code Here

      MethodInfo[] attributes = annotation.getAnnotationType().getDeclaredMethods();
      if (attributes != null)
      {
         for (int i = 0 ; i < attributes.length ; i++)
         {
            Value value = annotation.getValue(attributes[i].getName());

            if (value instanceof AnnotationValue)
            {
               getDependenciesForAnnotation(topLevelAnnotationName, (AnnotationValue)value, dependencies);
            }
View Full Code Here

      MethodInfo[] attributes = annotation.getAnnotationType().getDeclaredMethods();
      if (attributes != null)
      {
         for (int i = 0 ; i < attributes.length ; i++)
         {
            Value value = annotation.getValue(attributes[i].getName());

            if (value instanceof AnnotationValue)
            {
               getDependenciesForAnnotation(topLevelAnnotationName, (AnnotationValue)value, dependencies);
            }
View Full Code Here

TOP

Related Classes of org.jboss.reflect.spi.Value

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.