Package com.artemis.gwtref.client

Examples of com.artemis.gwtref.client.Type


  }

  /** Determines if the class or interface represented by first Class parameter is either the same as, or is a superclass or
   * superinterface of, the class or interface represented by the second Class parameter. */
  static public boolean isAssignableFrom (Class c1, Class c2) {
    Type c1Type = ReflectionCache.getType(c1);
    Type c2Type = ReflectionCache.getType(c2);
    return c1Type.isAssignableFrom(c2Type);
  }
View Full Code Here


  }

  /** If the type of the field is parameterized, returns the Class object representing the parameter type at the specified index,
   * null otherwise. */
  public Class getElementType (int index) {
    Type elementType = field.getElementType(index);
    return elementType != null ? elementType.getClassOfType() : null;
  }
View Full Code Here

TOP

Related Classes of com.artemis.gwtref.client.Type

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.