public ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (!clazz.isInterface()) { throw new IllegalArgumentException(); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionAnnotationDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (!clazz.isAnnotation()) { throw new IllegalArgumentException("The given type is not an annotation."); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (!clazz.isInterface()) { throw new IllegalArgumentException(); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionInterfaceDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (!clazz.isInterface()) { throw new IllegalArgumentException(); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionEnumDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (!clazz.isEnum()) { throw new IllegalArgumentException("Class should be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionEnumDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (!clazz.isEnum()) { throw new IllegalArgumentException("Class should be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (clazz.isEnum()) { throw new IllegalArgumentException("Class should not be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (clazz.isEnum()) { throw new IllegalArgumentException("Class should not be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionEnumDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (!clazz.isEnum()) { throw new IllegalArgumentException("Class should be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }
public ReflectionClassDeclaration(Class<?> clazz, TypeSolver typeSolver) { if (clazz == null) { throw new IllegalArgumentException("Class should not be null"); } if (clazz.isInterface()) { throw new IllegalArgumentException("Class should not be an interface"); } if (clazz.isPrimitive()) { throw new IllegalArgumentException("Class should not represent a primitive class"); } if (clazz.isArray()) { throw new IllegalArgumentException("Class should not be an array"); } if (clazz.isEnum()) { throw new IllegalArgumentException("Class should not be an enum"); } this.clazz = clazz; this.typeSolver = typeSolver; this.reflectionClassAdapter = new ReflectionClassAdapter(clazz, typeSolver, this); }