tcl.pkg.java.reflect
Class PkgInvoker
java.lang.Object
tcl.pkg.java.reflect.PkgInvoker
public class PkgInvoker
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PkgInvoker
public PkgInvoker()
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.