org.apache.felix.scrplugin.tags
Class ClassUtil

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.ClassUtil

public class ClassUtil
extends Object

Utility class.


Field Summary
static ClassLoader classLoader
           
 
Constructor Summary
ClassUtil()
           
 
Method Summary
static Class<?> getClass(String name)
          Get the compiled class.
static String[] getInitializationExpression(Class<?> clazz, String fieldName)
          Try to get the initial value of a static field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

public static ClassLoader classLoader
Constructor Detail

ClassUtil

public ClassUtil()
Method Detail

getInitializationExpression

public static String[] getInitializationExpression(Class<?> clazz,
                                                   String fieldName)
Try to get the initial value of a static field

Parameters:
clazz - The class.
fieldName - The name of the field.
Returns:
The initial value or null.

getClass

public static Class<?> getClass(String name)
Get the compiled class.



Copyright © 2011 Apache Software Foundation. All Rights Reserved.