Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.PrimitiveValue


         }
         rtnValue = new ArrayValueImpl(type, values);
      }
      else if (type instanceof PrimitiveInfo)
      {
         rtnValue = new PrimitiveValue(value.toString(), (PrimitiveInfo)type);
      }
      else if (type.getName().equals("java.lang.String"))
      {
         rtnValue = new StringValueImpl((String)value, type);
      }
View Full Code Here


   private void checkPrimitiveValue(Value value, String name, Object expected)
   {
      assertNotNull(value);
      assertTrue(PrimitiveValue.class.isAssignableFrom(value.getClass()));
      PrimitiveValue val = (PrimitiveValue)value;
      TypeInfo type = val.getType();
      assertTrue(PrimitiveInfo.class.isAssignableFrom(type.getClass()));
      assertTrue((type).getName().equals(name));
      Object obj;
      try
      {
         obj = type.convertValue(val.getValue());
      }
      catch (Throwable e)
      {
         throw new RuntimeException(e);
      }
View Full Code Here

         }
         rtnValue = new ArrayValueImpl(type, values);
      }
      else if (type instanceof PrimitiveInfo)
      {
         rtnValue = new PrimitiveValue(value.toString(), (PrimitiveInfo)type);
      }
      else if (type.getName().equals("java.lang.String"))
      {
         rtnValue = new StringValueImpl((String)value, type);
      }
View Full Code Here

         }
         rtnValue = new ArrayValueImpl(type, values);
      }
      else if (type instanceof PrimitiveInfo)
      {
         rtnValue = new PrimitiveValue(value.toString(), (PrimitiveInfo)type);
      }
      else if (type.getName().equals("java.lang.String"))
      {
         rtnValue = new StringValueImpl((String)value, type);
      }
View Full Code Here

/*     */       }
/*  58 */       rtnValue = new ArrayValueImpl(type, values);
/*     */     }
/*  60 */     else if ((type instanceof PrimitiveInfo))
/*     */     {
/*  62 */       rtnValue = new PrimitiveValue(value.toString(), (PrimitiveInfo)type);
/*     */     }
/*  64 */     else if (type.getName().equals("java.lang.String"))
/*     */     {
/*  66 */       rtnValue = new StringValueImpl((String)value, type);
/*     */     }
View Full Code Here

TOP

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

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.