org.codehaus.aspectwerkz.transform.delegation
Class Klass

java.lang.Object
  extended byorg.codehaus.aspectwerkz.transform.delegation.Klass

public class Klass
extends Object

The AspectWerkz class concept.

Contains informations and data about the class being transformed.

Author:
Jonas Bonér , Alexandre Vasseur

Constructor Summary
Klass(String name, byte[] bytecode, ClassLoader loader)
          Creates a new class.
 
Method Summary
 void flushJoinPointIndex()
          Flushes the index count.
 byte[] getBytecode()
          Returns the byte code for the class.
 javassist.CtClass getCtClass()
          Returns the Javassist class gen for the class.
 javassist.CtClass getInitialCtClass()
          Returns the Javassist initial class gen for the class.
 int getJoinPointIndex()
          Returns the current join point index.
 String getName()
          Returns the name of the class.
 void incrementJoinPointIndex()
          Increments the join point index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Klass

public Klass(String name,
             byte[] bytecode,
             ClassLoader loader)
Creates a new class.

Parameters:
name - the name
bytecode - the byte code
Method Detail

getName

public String getName()
Returns the name of the class.

Returns:
the name

getCtClass

public javassist.CtClass getCtClass()
Returns the Javassist class gen for the class.

Returns:
the class gen

getInitialCtClass

public javassist.CtClass getInitialCtClass()
Returns the Javassist initial class gen for the class.

Returns:
the initial class gen

getBytecode

public byte[] getBytecode()
Returns the byte code for the class.

Returns:

getJoinPointIndex

public int getJoinPointIndex()
Returns the current join point index.

Returns:

incrementJoinPointIndex

public void incrementJoinPointIndex()
Increments the join point index.


flushJoinPointIndex

public void flushJoinPointIndex()
Flushes the index count.



Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.