gnu.gcj.runtime

Class Reflect


public class Reflect
extends Object

Method Summary

static Object
allocateObject(Class klass, Constructor constructor)
Allocate an object whose class is the indicated class, using the given constructor.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

allocateObject

public static Object allocateObject(Class klass,
                                    Constructor constructor)
Allocate an object whose class is the indicated class, using the given constructor. Unlike Constructor.newInstance, the constructor need not be declared in the indicated class -- it can be a constructor from any superclass. Only a no-argument constructor is allowed.

Copyright (C) 2006 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.