Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.FieldInfo


/* 289 */     if (classInfo == null)
/* 290 */       throw new IllegalArgumentException("ClassInfo cannot be null!");
/* 291 */     ClassInfo current = classInfo;
/* 292 */     while (current != null)
/*     */     {
/* 294 */       FieldInfo result = locateFieldInfo(current, name);
/* 295 */       if (result != null)
/* 296 */         return result;
/* 297 */       current = current.getSuperclass();
/*     */     }
/* 299 */     throw new JoinpointException("Field not found '" + name + "' for class " + classInfo.getName());
View Full Code Here


/* 144 */     if (obj == this)
/* 145 */       return true;
/* 146 */     if ((obj == null) || (!(obj instanceof FieldInfo))) {
/* 147 */       return false;
/*     */     }
/* 149 */     FieldInfo other = (FieldInfo)obj;
/* 150 */     if (!getName().equals(other.getName()))
/* 151 */       return false;
/* 152 */     return getDeclaringClass().equals(other.getDeclaringClass());
/*     */   }
View Full Code Here

/*     */   {
/* 137 */     if (this == obj) return true;
/* 138 */     if ((obj == null) || (!(obj instanceof FieldInfo))) {
/* 139 */       return false;
/*     */     }
/* 141 */     FieldInfo other = (FieldInfo)obj;
/*     */
/* 143 */     if (!this.name.equals(other.getName()))
/* 144 */       return false;
/* 145 */     return this.declaringClass.equals(other.getDeclaringClass());
/*     */   }
View Full Code Here

/* 145 */       MethodInfo method = (MethodInfo)MethodInfo.class.cast(member);
/* 146 */       return new MethodSignature(method);
/*     */     }
/* 148 */     if ((member instanceof FieldInfo))
/*     */     {
/* 150 */       FieldInfo field = (FieldInfo)FieldInfo.class.cast(member);
/* 151 */       return new FieldSignature(field);
/*     */     }
/* 153 */     if ((member instanceof ConstructorInfo))
/*     */     {
/* 155 */       ConstructorInfo constructor = (ConstructorInfo)ConstructorInfo.class.cast(member);
View Full Code Here

/*     */
/*     */   public FieldInfo getDeclaredField(String name)
/*     */   {
/* 247 */     synchronized (this.fields)
/*     */     {
/* 249 */       FieldInfo field = (FieldInfo)this.fields.get(name);
/* 250 */       if (field != null)
/* 251 */         return field;
/*     */     }
/* 253 */     if (this.fieldArray != null)
/* 254 */       return null;
View Full Code Here

   {
      boolean trace = log.isTraceEnabled();
      if (trace)
         log.trace("Get field get Joinpoint jpf=" + jpf + " target=" + object + " name=" + name);

      FieldInfo fieldInfo = findFieldInfo(jpf.getClassInfo(), name);
      FieldGetJoinpoint joinpoint = jpf.getFieldGetJoinpoint(fieldInfo);
      joinpoint.setTarget(object);
      return joinpoint;
   }
View Full Code Here

   {
      boolean trace = log.isTraceEnabled();
      if (trace)
         log.trace("Get field set Joinpoint jpf=" + jpf + " target=" + object + " name=" + name + " value=" + value);

      FieldInfo fieldInfo = findFieldInfo(jpf.getClassInfo(), name);
      FieldSetJoinpoint joinpoint = jpf.getFieldSetJoinpoint(fieldInfo);
      joinpoint.setTarget(object);
      joinpoint.setValue(value);
      return joinpoint;
   }
View Full Code Here

      if (classInfo == null)
         throw new IllegalArgumentException("ClassInfo cannot be null!");
      ClassInfo current = classInfo;
      while (current != null)
      {
         FieldInfo result = locateFieldInfo(current, name);
         if (result != null)
            return result;
         current = current.getSuperclass();
      }
      throw new JoinpointException("Field not found '" + name + "' for class " + classInfo.getName());
View Full Code Here

         MethodInfo method = MethodInfo.class.cast(member);
         return new MethodSignature(method);
      }
      if (member instanceof FieldInfo)
      {
         FieldInfo field = FieldInfo.class.cast(member);
         return new FieldSignature(field);
      }
      if (member instanceof ConstructorInfo)
      {
         ConstructorInfo constructor = ConstructorInfo.class.cast(member);
View Full Code Here

   public FieldInfo getDeclaredField(String name)
   {
      synchronized (fields)
      {
         FieldInfo field = fields.get(name);
         if (field != null)
            return field;
      }
      if (fieldArray != null)
         return null;
View Full Code Here

TOP

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

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.