@Override public MutableTypeMirror getComponentType() { return ensureDelegateType().getComponentType(); }
@Override public String toString(ClassSerializer serializer, boolean typed) { return paramsToString("new " + type.toString(serializer, typed) + " {", serializer, typed); }
public MutableArrayTypeValue getArrayValue(MutableArrayType array, Object... values) { return new MutableArrayValue(array, toTypeValues(array.getComponentType(), values)); }
public MutableArrayTypeValue getAnnotationArrayValue(MutableArrayType array, Object... values) { return new MutableAnnotationArrayValue(array, toTypeValues(array.getComponentType(), values)); }
public MutableTypeMirror toParamType(MutableTypeMirror type) { switch (type.getKind()) { case TYPEVAR: return processingEnv.getTypeUtils().getTypeVariable(((MutableTypeVariable)type).getVariable().toString()); case ARRAY: return processingEnv.getTypeUtils().getArrayType(toParamType(((MutableArrayType)type).getComponentType())); default: return processingEnv.getTypeUtils().toMutableType(type); } } }
MutableTypeValue typeValue = processingEnv.getTypeUtils().getTypeValue(method.invoke(value.getValue())); if (typeValue instanceof MutableArrayTypeValue) { types.add((MutableDeclaredType) ((MutableArrayTypeValue) typeValue).asType().getComponentType()); } else if (typeValue instanceof MutableDeclaredTypeValue) { types.add(((MutableDeclaredTypeValue) typeValue).asType()); types.add((MutableDeclaredType) ((MutableArrayTypeValue) value).asType().getComponentType());
public MutableTypeMirror stripTypeVariableTypes(MutableTypeMirror mutableType) { if (mutableType instanceof MutableDeclaredType) { ((MutableDeclaredType)mutableType).stripTypeParametersTypes(); return mutableType; } if (mutableType instanceof MutableTypeVariable) { ((MutableTypeVariable)mutableType).setLowerBounds(null); ((MutableTypeVariable)mutableType).setUpperBounds(null); return mutableType; } if (mutableType instanceof MutableWildcardType) { ((MutableWildcardType)mutableType).setSuperBound(null); ((MutableWildcardType)mutableType).setExtendsBound(null); } if (mutableType instanceof MutableArrayType) { stripTypeVariableTypes(((MutableArrayType)mutableType).getComponentType()); } return mutableType; }
return types.getArrayType(fromMutableType(((MutableArrayType)type).getComponentType()));
return isSameType(((MutableArrayType)type1).getComponentType(), ((MutableArrayType)type2).getComponentType());
extractDeclaredType(((MutableArrayType) type).getComponentType(), types); return types;