org.jboss.metadata.spi.signature
Class ConstructorSignature

java.lang.Object
  extended by org.jboss.metadata.spi.signature.Signature
      extended by org.jboss.metadata.spi.signature.ConstructorSignature
Direct Known Subclasses:
JavassistConstructorSignature

public class ConstructorSignature
extends Signature

Constructor Signature.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.metadata.spi.signature.Signature
NO_NAME, NO_PARAMETER_TYPES, NO_PARAMETERS
 
Constructor Summary
ConstructorSignature(Class<?>... parameters)
          Create a new Signature.
ConstructorSignature(Constructor<?> constructor)
          Create a new Signature.
ConstructorSignature(org.jboss.reflect.spi.ConstructorInfo constructor)
          Create a new Signature.
ConstructorSignature(String[] parameters)
          Create a new Signature.
 
Method Summary
 Constructor<?> getConstructor()
          Get the constructor.
protected  Class<?>[] getParameterTypes()
          Get the parameter types (for override by sub-classes)
 
Methods inherited from class org.jboss.metadata.spi.signature.Signature
convertParameters, convertParameterTypes, equals, getName, getParameters, getParametersTypes, getPrimativeArrayType, getSignature, getSignature, hashCode, internalToString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstructorSignature

public ConstructorSignature(String[] parameters)
Create a new Signature.

Parameters:
parameters - the parameters

ConstructorSignature

public ConstructorSignature(Class<?>... parameters)
Create a new Signature.

Parameters:
parameters - the parameters

ConstructorSignature

public ConstructorSignature(Constructor<?> constructor)
Create a new Signature.

Parameters:
constructor - the constructor

ConstructorSignature

public ConstructorSignature(org.jboss.reflect.spi.ConstructorInfo constructor)
Create a new Signature.

Parameters:
constructor - the constructor
Method Detail

getConstructor

public Constructor<?> getConstructor()
Get the constructor.

Returns:
the constructor (could be null if not created using a constructor .

getParameterTypes

protected Class<?>[] getParameterTypes()
Description copied from class: Signature
Get the parameter types (for override by sub-classes)

Overrides:
getParameterTypes in class Signature
Returns:
the parameters types


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