org.objectweb.easybeans.enhancer.lib
Class MethodRenamer

java.lang.Object
  extended by org.objectweb.easybeans.enhancer.lib.MethodRenamer

public final class MethodRenamer
extends java.lang.Object

Change the name of a method.

Author:
Florent Benoit

Field Summary
static java.lang.String PREFIX
          Prefix for renamed method.
 
Constructor Summary
private MethodRenamer()
          Utility class, no constructor.
 
Method Summary
static java.lang.String decode(java.lang.String name)
          Decodes a method by removing the prefix.
static java.lang.String encode(java.lang.String name)
          Encodes a name by prefixing it with the prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
Prefix for renamed method.

See Also:
Constant Field Values
Constructor Detail

MethodRenamer

private MethodRenamer()
Utility class, no constructor.

Method Detail

encode

public static java.lang.String encode(java.lang.String name)
Encodes a name by prefixing it with the prefix.

Parameters:
name - method name to rename/encode
Returns:
the encoded name

decode

public static java.lang.String decode(java.lang.String name)
Decodes a method by removing the prefix.

Parameters:
name - encoded method name to decode.
Returns:
the decoded name.