org.jboss.metadata.spi.signature
Class DeclaredMethodSignature

java.lang.Object
  extended by org.jboss.metadata.spi.signature.Signature
      extended by org.jboss.metadata.spi.signature.DeclaredMethodSignature

public class DeclaredMethodSignature
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
DeclaredMethodSignature(Method method)
          Create a new Signature.
DeclaredMethodSignature(org.jboss.reflect.spi.MethodInfo method)
          Create a new Signature.
DeclaredMethodSignature(String declaringClass, String name, Class<?>... parameters)
          Create a new Signature.
DeclaredMethodSignature(String declaringClass, String name, String[] parameters)
          Create a new Signature.
 
Method Summary
 boolean equals(Object obj)
           
 String getDeclaringClass()
          Get the declaringClass.
 Method getMethod()
          Get the method.
protected  Class<?>[] getParameterTypes()
          Get the parameter types (for override by sub-classes)
protected  void internalToString(StringBuilder builder)
          Build the to String
 
Methods inherited from class org.jboss.metadata.spi.signature.Signature
convertParameters, convertParameterTypes, getName, getParameters, getParametersTypes, getPrimativeArrayType, getSignature, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeclaredMethodSignature

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

Parameters:
declaringClass - the declaring class
name - the name
parameters - the parameters

DeclaredMethodSignature

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

Parameters:
declaringClass - the declaring class
name - the name
parameters - the parameters

DeclaredMethodSignature

public DeclaredMethodSignature(Method method)
Create a new Signature.

Parameters:
method - the method

DeclaredMethodSignature

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

Parameters:
method - the method
Method Detail

getDeclaringClass

public String getDeclaringClass()
Get the declaringClass.

Returns:
the declaringClass.

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

equals

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

internalToString

protected void internalToString(StringBuilder builder)
Description copied from class: Signature
Build the to String

Overrides:
internalToString in class Signature
Parameters:
builder - the builder to use


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