|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdebugger.ClassRipper
public class ClassRipper
Copyright (c) Ontos AG (http://www.ontosearch.com).
This class is part of JAPE Debugger component for
GATE (Copyright (c) "The University of Sheffield" see http://gate.ac.uk/)
Contains helper static methods to access private class fields
Method Summary | |
---|---|
static boolean |
getBoolean(Object classInstance,
String fieldName)
|
static byte |
getByte(Object classInstance,
String fieldName)
|
static char |
getChar(Object classInstance,
String fieldName)
|
static double |
getDouble(Object classInstance,
String fieldName)
|
static Object |
getFieldValue(Object classInstance,
String fieldName)
Obtains field value from given class instance regardless either this field private or not |
static float |
getFloat(Object classInstance,
String fieldName)
|
static int |
getInt(Object classInstance,
String fieldName)
|
static long |
getLong(Object classInstance,
String fieldName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object getFieldValue(Object classInstance, String fieldName) throws IllegalAccessException
classInstance
- class instance which value to extractfieldName
- field name
IllegalAccessException
public static boolean getBoolean(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static byte getByte(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static char getChar(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static int getInt(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static float getFloat(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static long getLong(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
public static double getDouble(Object classInstance, String fieldName) throws IllegalAccessException
IllegalAccessException
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |