org.codehaus.aspectwerkz.transform
Class Klass

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

public class Klass
extends java.lang.Object

The AspectWerkz class concept.

Contains informations and data about the class being transformed.

Author:
Jonas Bonér

Constructor Summary
Klass(java.lang.String name, byte[] bytecode)
          Creates a new class.
 
Method Summary
static org.apache.bcel.generic.ClassGen fromByte(byte[] bytecode)
          Transforms byte code to a BCEL class gen.
 byte[] getBytecode()
          Returns the byte code for the class.
 org.apache.bcel.generic.ClassGen getClassGen()
          Returns the BCEL class gen for the class.
 java.lang.String getName()
          Returns the name of the class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Klass

public Klass(java.lang.String name,
             byte[] bytecode)
      throws java.io.IOException,
             org.apache.bcel.classfile.ClassFormatException
Creates a new class.

Parameters:
name - the name
bytecode - the byte code
Throws:
java.io.IOException
org.apache.bcel.classfile.ClassFormatException
Method Detail

getName

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

Returns:
the name

getClassGen

public org.apache.bcel.generic.ClassGen getClassGen()
Returns the BCEL class gen for the class.

Returns:
the class gen

getBytecode

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

Returns:

fromByte

public static org.apache.bcel.generic.ClassGen fromByte(byte[] bytecode)
                                                 throws java.io.IOException,
                                                        org.apache.bcel.classfile.ClassFormatException
Transforms byte code to a BCEL class gen.

Parameters:
bytecode - the byte code
Returns:
the BCEL class gen
Throws:
java.io.IOException
org.apache.bcel.classfile.ClassFormatException


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