org.jboss.reflect.plugins.javassist
Class JavassistReflectionFactory

java.lang.Object
  extended by org.jboss.reflect.plugins.javassist.JavassistReflectionFactory

public class JavassistReflectionFactory
extends Object

JavassistReflectionFactory. TODO JBMICROCONT-122 proper classpool with pruning TODO JBMICROCONT-121 non compiler based implementation

Version:
$Revision: 69888 $
Author:
Adrian Brock

Constructor Summary
JavassistReflectionFactory(boolean check)
          Create a new JavassistReflectionFactory.
 
Method Summary
 JavassistConstructor createConstructor(javassist.CtConstructor ctConstructor)
          Create a javassist constructor
 JavassistField createField(javassist.CtField ctField)
          Create a javassist field
 JavassistMethod createMethod(javassist.CtMethod ctMethod)
          Create a javassist method
protected  String getBoxedType(javassist.CtClass type)
          Get the boxed type TODO JBMICROCONT-119 integer progression?
protected  void unbox(org.jboss.util.JBossStringBuilder buffer, javassist.CtClass primitive)
          Unbox a primitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavassistReflectionFactory

public JavassistReflectionFactory(boolean check)
Create a new JavassistReflectionFactory.

Parameters:
check - whether to check arguments
Method Detail

createMethod

public JavassistMethod createMethod(javassist.CtMethod ctMethod)
                             throws Throwable
Create a javassist method

Parameters:
ctMethod - the method
Returns:
the method
Throws:
Throwable - for any error

createConstructor

public JavassistConstructor createConstructor(javassist.CtConstructor ctConstructor)
                                       throws Throwable
Create a javassist constructor

Parameters:
ctConstructor - the constructor
Returns:
the constructor
Throws:
Throwable - for any error

createField

public JavassistField createField(javassist.CtField ctField)
                           throws Throwable
Create a javassist field

Parameters:
ctField - the field
Returns:
the field
Throws:
Throwable - for any error

unbox

protected void unbox(org.jboss.util.JBossStringBuilder buffer,
                     javassist.CtClass primitive)
Unbox a primitive

Parameters:
buffer - the buffer
primitive - the primitive

getBoxedType

protected String getBoxedType(javassist.CtClass type)
Get the boxed type TODO JBMICROCONT-119 integer progression?

Parameters:
type - the type to box
Returns:
the boxed type name


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.