/** * This is used to determine if the class is an inner class. If * the class is a inner class and not static then this returns * false. Only static inner classes can be instantiated using * reflection as they do not require a "this" argument. * * @return this returns true if the class is a static inner */ public boolean isInstantiable() { return detail.isInstantiable(); }
/** * This is used to determine if the class is an inner class. If * the class is a inner class and not static then this returns * false. Only static inner classes can be instantiated using * reflection as they do not require a "this" argument. * * @return this returns true if the class is a static inner */ public boolean isInstantiable() { return detail.isInstantiable(); }
/** * This is used to determine if the class is an inner class. If * the class is a inner class and not static then this returns * false. Only static inner classes can be instantiated using * reflection as they do not require a "this" argument. * * @return this returns true if the class is a static inner */ public boolean isInstantiable() { return detail.isInstantiable(); }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }