JBoss MetaData Repository 2.2.0.SP1

org.jboss.metadata.spi.signature
Class MethodSignature

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

public class MethodSignature
extends Signature

Method 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
MethodSignature(Method method)
          Create a new Signature.
MethodSignature(org.jboss.reflect.spi.MethodInfo method)
          Create a new Signature.
MethodSignature(String name, Class<?>... parameters)
          Create a new Signature.
MethodSignature(String name, String[] parameters)
          Create a new Signature.
 
Method Summary
 Method getMethod()
          Get the method.
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

MethodSignature

public MethodSignature(String name,
                       String[] parameters)
Create a new Signature.

Parameters:
name - the name
parameters - the parameters

MethodSignature

public MethodSignature(String name,
                       Class<?>... parameters)
Create a new Signature.

Parameters:
name - the name
parameters - the parameters

MethodSignature

public MethodSignature(Method method)
Create a new Signature.

Parameters:
method - the method

MethodSignature

public MethodSignature(org.jboss.reflect.spi.MethodInfo method)
Create a new Signature.

Parameters:
method - the method
Method Detail

getMethod

public Method getMethod()
Get the method.

Returns:
the method could be null if not created using a method

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

JBoss MetaData Repository 2.2.0.SP1

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