|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.util.Util
public final class Util
Utility methods and constants used in the AspectWerkz system.
Field Summary | |
---|---|
static Boolean |
BOOLEAN_DEFAULT_VALUE
|
static Byte |
BYTE_DEFAULT_VALUE
|
static Character |
CHARACTER_DEFAULT_VALUE
|
static Double |
DOUBLE_DEFAULT_VALUE
|
static Float |
FLOAT_DEFAULT_VALUE
|
static Integer |
INTEGER_DEFAULT_VALUE
|
static Long |
LONG_DEFAULT_VALUE
|
static Short |
SHORT_DEFAULT_VALUE
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static Boolean |
booleanValueOf(boolean b)
Helper method to support Java 1.4 like Boolean.valueOf(boolean) in Java 1.3 |
static Integer |
calculateHash(String className,
ReflectionInfo info)
Calculates the hash for the class name and the meta-data. |
static String |
classLoaderToString(ClassLoader loader)
Returns a String representation of a classloader Avoid to do a toString() if the resulting string is too long (occurs on Tomcat) |
static void |
fakeStackTrace(Throwable exception,
String className)
Removes the AspectWerkz specific elements from the stack trace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Integer INTEGER_DEFAULT_VALUE
public static final Float FLOAT_DEFAULT_VALUE
public static final Double DOUBLE_DEFAULT_VALUE
public static final Long LONG_DEFAULT_VALUE
public static final Boolean BOOLEAN_DEFAULT_VALUE
public static final Character CHARACTER_DEFAULT_VALUE
public static final Short SHORT_DEFAULT_VALUE
public static final Byte BYTE_DEFAULT_VALUE
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static Integer calculateHash(String className, ReflectionInfo info)
className
- the class nameinfo
- the meta-data
public static void fakeStackTrace(Throwable exception, String className)
exception
- the Throwable to modify the stack trace onclassName
- the name of the fake origin class of the exceptionpublic static String classLoaderToString(ClassLoader loader)
loader
-
public static Boolean booleanValueOf(boolean b)
b
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |