abbot.util
Class Reflector

java.lang.Object
  extended by abbot.util.Reflector

public class Reflector
extends Object

Utility for performing some common reflection tasks.


Method Summary
static String getFieldName(Class cls, int value, String prefix)
          Convert the value back into a field name.
static int getFieldValue(Class cls, String fieldName)
          Look up the given static field value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldName

public static String getFieldName(Class cls,
                                  int value,
                                  String prefix)
Convert the value back into a field name.


getFieldValue

public static int getFieldValue(Class cls,
                                String fieldName)
Look up the given static field value.



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge