Code example for Constructor

Methods: getDeclaringClass, setAccessible

0
 
    public CachedConstructor(CachedClass clazz, Constructor c) {
        this.cachedConstructor = c;
        this.clazz = clazz;
        try { 
            c.setAccessible(true);
        } 
        catch (SecurityException e) {
            // IGNORE 
        } 
    } 
 
    public CachedConstructor(Constructor c) {
        this(ReflectionCache.getCachedClass(c.getDeclaringClass()), c);
    } 
 
    protected Class[] getPT() {
        return cachedConstructor.getParameterTypes();
    } 
 
    public static CachedConstructor find(Constructor constructor) {