/** * Returns <code>true</code> if the given type node is a complex type or * either an array or pointer of complex type. * * @param type a type node. * @return <code>true</code> if the given type node is a complex type or * either an array or pointer of complex type. */ public static boolean isComplexType(final Type type) { if (type instanceof ComplexType) { return true; } else if ((type instanceof ArrayOf) || (type instanceof PointerOf)) { return isComplexType(getContainedType((TypeContainer) type)); } else { return false; } }