Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.Value


      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


public class AnnotationValueFactory
{

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

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

   {
      AnnotationValue[] annotationAnns = complexAnnotation.getAnnotationType().getAnnotations();
      assertNotNull(annotationAnns);
      checkExpectedAnnotations(annotationAnns, COMPLEXANNOTATION_EXPECTED_ANNOTATIONS);
     
      Value value = complexAnnotation.getValue("stringValue");
      checkStringValue(value, expectedComplexAnnotationData.stringAttribute);
     
      value = complexAnnotation.getValue("intValue");
      checkPrimitiveValue(value, "int", expectedComplexAnnotationData.intAttribute);
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

public class AnnotationValueFactory
{

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

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

public class AnnotationValueFactory
{

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

            Class typeClass = methods[j].getReturnType();
            Object val = methods[j].invoke(annotation, new Object[0]);

            TypeInfo typeInfo = typeInfoFactory.getTypeInfo(typeClass);

            Value value = createValue(annotationHelper, typeInfo, val);
           
            attributes.put(methods[j].getName(), value);
         }
         catch (Throwable e)
         {
View Full Code Here

/* 280 */     MethodInfo[] attributes = annotation.getAnnotationType().getDeclaredMethods();
/* 281 */     if (attributes != null)
/*     */     {
/* 283 */       for (int i = 0; i < attributes.length; i++)
/*     */       {
/* 285 */         Value value = annotation.getValue(attributes[i].getName());
/*     */
/* 287 */         if ((value instanceof AnnotationValue))
/*     */         {
/* 289 */           getDependenciesForAnnotation(topLevelAnnotationName, (AnnotationValue)value, dependencies);
/*     */         } else {
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.