Code example for Constructor

Methods: getName, newInstance

0
        } 
 
        public Object next() {
            Constructor c = (Constructor) nested.next();
            try { 
                return c.newInstance(NO_OBJECT);
            } catch (Exception e) {
                throw new BuildException("Failed to invoke no-arg constructor" 
                                         + " on " + c.getName());
            } 
        } 
 
        public void remove() { 
            throw new UnsupportedOperationException("remove is not supported");
        } 
    } 
}