tcl.pkg.java.reflect
Class PkgInvoker

java.lang.Object
  extended by tcl.pkg.java.reflect.PkgInvoker

public class PkgInvoker
extends Object


Constructor Summary
PkgInvoker()
           
 
Method Summary
 Object getField(Field field, Object obj)
           
static PkgInvoker getPkgInvoker(Class cls)
           
 Object invokeConstructor(Constructor constructor, Object[] args)
           
 Object invokeMethod(Method method, Object obj, Object[] args)
           
static boolean isAccessible(Class cls)
           
static boolean isAccessible(Constructor cons)
           
static boolean isAccessible(Field fld)
           
static boolean isAccessible(Method meth)
           
 void setField(Field field, Object obj, Object value)
           
static boolean usesDefaultInvoker(Class cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgInvoker

public PkgInvoker()
Method Detail

invokeConstructor

public Object invokeConstructor(Constructor constructor,
                                Object[] args)
                         throws InstantiationException,
                                IllegalAccessException,
                                IllegalArgumentException,
                                InvocationTargetException
Throws:
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException

invokeMethod

public Object invokeMethod(Method method,
                           Object obj,
                           Object[] args)
                    throws IllegalAccessException,
                           IllegalArgumentException,
                           InvocationTargetException
Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException

getField

public Object getField(Field field,
                       Object obj)
                throws IllegalArgumentException,
                       IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setField

public void setField(Field field,
                     Object obj,
                     Object value)
              throws IllegalArgumentException,
                     IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getPkgInvoker

public static final PkgInvoker getPkgInvoker(Class cls)

usesDefaultInvoker

public static boolean usesDefaultInvoker(Class cls)

isAccessible

public static boolean isAccessible(Class cls)

isAccessible

public static boolean isAccessible(Method meth)

isAccessible

public static boolean isAccessible(Constructor cons)

isAccessible

public static boolean isAccessible(Field fld)


Copyright © 2015. All rights reserved.