public boolean isMatch(Type type) {
    if (type instanceof GenericArrayType) {
      GenericArrayType aType = (GenericArrayType) type;

      return _componentType.equals(aType.getGenericComponentType());
    } else return false;
  }
  public boolean equals(Object o) {
    if (o == this) return true;
    else if (o instanceof GenericArrayType) {
      GenericArrayType type = (GenericArrayType) o;

      return _componentType.equals(type.getGenericComponentType());
    } else return false;
  }
Example #3
0
 private ClassNode configureGenericArray(GenericArrayType genericArrayType) {
   Type component = genericArrayType.getGenericComponentType();
   ClassNode node = configureType(component);
   return node.makeArray();
 }