org.codehaus.aspectwerkz.util
Class Util

java.lang.Object
  extended byorg.codehaus.aspectwerkz.util.Util

public final class Util
extends java.lang.Object

Utility methods and constants used in the AspectWerkz system.

Author:
Jonas Bonér

Field Summary
static java.lang.Boolean BOOLEAN_DEFAULT_VALUE
           
static java.lang.Byte BYTE_DEFAULT_VALUE
           
static java.lang.Character CHARACTER_DEFAULT_VALUE
           
static java.lang.Double DOUBLE_DEFAULT_VALUE
           
static java.lang.Float FLOAT_DEFAULT_VALUE
           
static java.lang.Integer INTEGER_DEFAULT_VALUE
           
static java.lang.Long LONG_DEFAULT_VALUE
           
static java.lang.Short SHORT_DEFAULT_VALUE
           
 
Constructor Summary
Util()
           
 
Method Summary
static java.lang.Integer calculateHash(java.lang.String className, MetaData metaData)
          Calculates the hash for the class name and the meta-data.
static void fakeStackTrace(java.lang.Throwable exception, java.lang.String className)
          Removes the AspectWerkz specific elements from the stack trace.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGER_DEFAULT_VALUE

public static final java.lang.Integer INTEGER_DEFAULT_VALUE

FLOAT_DEFAULT_VALUE

public static final java.lang.Float FLOAT_DEFAULT_VALUE

DOUBLE_DEFAULT_VALUE

public static final java.lang.Double DOUBLE_DEFAULT_VALUE

LONG_DEFAULT_VALUE

public static final java.lang.Long LONG_DEFAULT_VALUE

BOOLEAN_DEFAULT_VALUE

public static final java.lang.Boolean BOOLEAN_DEFAULT_VALUE

CHARACTER_DEFAULT_VALUE

public static final java.lang.Character CHARACTER_DEFAULT_VALUE

SHORT_DEFAULT_VALUE

public static final java.lang.Short SHORT_DEFAULT_VALUE

BYTE_DEFAULT_VALUE

public static final java.lang.Byte BYTE_DEFAULT_VALUE
Constructor Detail

Util

public Util()
Method Detail

calculateHash

public static java.lang.Integer calculateHash(java.lang.String className,
                                              MetaData metaData)
Calculates the hash for the class name and the meta-data.

Parameters:
className - the class name
metaData - the meta-data
Returns:
the hash

fakeStackTrace

public static void fakeStackTrace(java.lang.Throwable exception,
                                  java.lang.String className)
Removes the AspectWerkz specific elements from the stack trace. TODO: how to mess w/ the stacktrace in JDK 1.3.x?

Parameters:
exception - the Throwable to modify the stack trace on
className - the name of the fake origin class of the exception


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.