org.jboss.reflect.plugins.javassist
Class JavassistConstructorInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
              extended by org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo
                  extended by org.jboss.reflect.plugins.javassist.JavassistConstructorInfo
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ConstructorInfo, MemberInfo, ModifierInfo, org.jboss.util.JBossInterface

public class JavassistConstructorInfo
extends JavassistAnnotatedParameterInfo
implements ConstructorInfo

JavassistConstructor.

Version:
$Revision: 66537 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo
exceptionTypes, parameters, parameterTypes, typeInfo
 
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
annotationHelper, annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC
 
Constructor Summary
JavassistConstructorInfo(AnnotationHelper annotationHelper, JavassistTypeInfo typeInfo, javassist.CtConstructor ctConstructor)
          Create a new JavassistConstructor.
 
Method Summary
protected  void createParameterAnnotations()
           
 boolean equals(Object obj)
           
protected  void generateParameters()
          Generate parameters
 AnnotationValue[] getAnnotations()
          Get the annotations
 ClassInfo getDeclaringClass()
          Get the declaring class
 ClassInfo[] getExceptionTypes()
          Get the exception types
protected  int getHashCode()
           
 int getModifiers()
          Get the modifiers
 ParameterInfo[] getParameters()
          Get the parameters
 TypeInfo[] getParameterTypes()
          Get the parameter types
 boolean isPublic()
          Whether it is public
 boolean isStatic()
          Whether it is static
 boolean isVolatile()
          Whether it is volatile
 Object newInstance(Object[] args)
          Create a new instance
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedParameterInfo
setupParameterAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Constructor Detail

JavassistConstructorInfo

public JavassistConstructorInfo(AnnotationHelper annotationHelper,
                                JavassistTypeInfo typeInfo,
                                javassist.CtConstructor ctConstructor)
Create a new JavassistConstructor.

Parameters:
annotationHelper - the annotation helper
typeInfo - the type ifo
ctConstructor - the constructor
Method Detail

getModifiers

public int getModifiers()
Description copied from interface: ModifierInfo
Get the modifiers

Specified by:
getModifiers in interface ModifierInfo
Returns:
the modifiers

isPublic

public boolean isPublic()
Description copied from interface: ModifierInfo
Whether it is public

Specified by:
isPublic in interface ModifierInfo
Returns:
true when public

isStatic

public boolean isStatic()
Description copied from interface: ModifierInfo
Whether it is static

Specified by:
isStatic in interface ModifierInfo
Returns:
true when static

isVolatile

public boolean isVolatile()
Description copied from interface: ModifierInfo
Whether it is volatile

Specified by:
isVolatile in interface ModifierInfo
Returns:
true if volatile

getDeclaringClass

public ClassInfo getDeclaringClass()
Description copied from interface: MemberInfo
Get the declaring class

Specified by:
getDeclaringClass in interface MemberInfo
Returns:
the declaring class

getExceptionTypes

public ClassInfo[] getExceptionTypes()
Description copied from interface: ConstructorInfo
Get the exception types

Specified by:
getExceptionTypes in interface ConstructorInfo
Returns:
the exception types

getParameters

public ParameterInfo[] getParameters()
Description copied from interface: ConstructorInfo
Get the parameters

Specified by:
getParameters in interface ConstructorInfo
Returns:
the parameters

getParameterTypes

public TypeInfo[] getParameterTypes()
Description copied from interface: ConstructorInfo
Get the parameter types

Specified by:
getParameterTypes in interface ConstructorInfo
Returns:
the parameters types

newInstance

public Object newInstance(Object[] args)
                   throws Throwable
Description copied from interface: ConstructorInfo
Create a new instance

Specified by:
newInstance in interface ConstructorInfo
Parameters:
args - the arguments
Returns:
the instance
Throws:
Throwable - for any error

getHashCode

protected int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject

generateParameters

protected void generateParameters()
Generate parameters


getAnnotations

public AnnotationValue[] getAnnotations()
Description copied from interface: AnnotatedInfo
Get the annotations

Specified by:
getAnnotations in interface AnnotatedInfo
Returns:
the annotations

createParameterAnnotations

protected void createParameterAnnotations()
Specified by:
createParameterAnnotations in class JavassistAnnotatedParameterInfo


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