org.jboss.metadata.spi.signature
Class MethodParametersSignature

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

public class MethodParametersSignature
extends Signature

Method parameters 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
MethodParametersSignature(org.jboss.reflect.spi.MethodInfo method, int param)
          Create a new Signature.
MethodParametersSignature(Method method, int param)
          Create a new Signature.
MethodParametersSignature(String name, int param, Class<?>... parameters)
          Create a new Signature.
MethodParametersSignature(String name, String[] parameters, int param)
          Create a new Signature.
 
Method Summary
protected  void checkParam()
          Check the param number makes sense
 int getParam()
          Get the param.
protected  void internalToString(StringBuilder builder)
          Build the to String
 
Methods inherited from class org.jboss.metadata.spi.signature.Signature
convertParameters, convertParameterTypes, equals, 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

MethodParametersSignature

public MethodParametersSignature(String name,
                                 String[] parameters,
                                 int param)
Create a new Signature.

Parameters:
name - the name
param - the parameter number
parameters - the parameters

MethodParametersSignature

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

Parameters:
name - the name
param - the parameter number
parameters - the parameters

MethodParametersSignature

public MethodParametersSignature(Method method,
                                 int param)
Create a new Signature.

Parameters:
method - the method
param - the parameter number

MethodParametersSignature

public MethodParametersSignature(org.jboss.reflect.spi.MethodInfo method,
                                 int param)
Create a new Signature.

Parameters:
method - the method info
param - the parameter number
Method Detail

getParam

public int getParam()
Get the param.

Returns:
the param.

checkParam

protected void checkParam()
Check the param number makes sense


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 © 2008 JBoss Inc.. All Rights Reserved.