JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Class BytecodeParameterInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
              extended by org.jboss.reflect.plugins.bytecode.BytecodeParameterInfo
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ParameterInfo, org.jboss.util.JBossInterface

public class BytecodeParameterInfo
extends BytecodeAnnotatedInfo
implements ParameterInfo

JavassistParameterInfo.

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

Field Summary
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
annotationHelper, annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
BytecodeParameterInfo(AnnotationHelper annotationHelper, BytecodeBehaviourInfo annotated, int index, TypeInfo parameterType)
          Create a new JavassistParameterInfo.
 
Method Summary
 boolean equals(Object obj)
           
protected  BytecodeBehaviourInfo getAnnotated()
          Get the annotated info
 AnnotationValue[] getAnnotations()
          Get the annotations
protected  int getHashCode()
           
 String getName()
          Get the parameter name
 TypeInfo getParameterType()
          Get the parameter type
 void setAnnotations(AnnotationValue[] annotations)
           
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
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, 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
 

Constructor Detail

BytecodeParameterInfo

public BytecodeParameterInfo(AnnotationHelper annotationHelper,
                             BytecodeBehaviourInfo annotated,
                             int index,
                             TypeInfo parameterType)
Create a new JavassistParameterInfo.

Parameters:
annotationHelper - the annotation helper
annotated - the annotated object
index - the index
parameterType - the type
Method Detail

getAnnotated

protected BytecodeBehaviourInfo getAnnotated()
Get the annotated info

Returns:
the annotated

getName

public String getName()
Description copied from interface: ParameterInfo
Get the parameter name

Specified by:
getName in interface ParameterInfo
Returns:
the parameter name

getParameterType

public TypeInfo getParameterType()
Description copied from interface: ParameterInfo
Get the parameter type

Specified by:
getParameterType in interface ParameterInfo
Returns:
the parameter types

equals

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

getHashCode

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

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class org.jboss.util.JBossObject

toString

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

getAnnotations

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

Specified by:
getAnnotations in interface AnnotatedInfo
Returns:
the annotations. If there are no annotations a zero length array is returned

setAnnotations

public void setAnnotations(AnnotationValue[] annotations)

JBoss Reflection 2.2.1.SP1

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