net.sf.staccatocommons.instrument.context
Interface ArgumentAnnotationContext

All Superinterfaces:
AnnotationContext
All Known Implementing Classes:
DefaultArgumentAnnotationContext

public interface ArgumentAnnotationContext
extends AnnotationContext

The context of an annotated argument

Author:
flbulgarelli

Method Summary
 javassist.CtBehavior getArgumentBehavior()
           
 String getArgumentIdentifier()
           
 int getArgumentNumber()
           
 boolean isConstructorArgument()
           
 
Methods inherited from interface net.sf.staccatocommons.instrument.context.AnnotationContext
getClass, getClassPool, getDeclaringClass, getElementType, getPackage, isPublic, logDebugMessage, logErrorMessage, logInfoMessage, logWarnMessage
 

Method Detail

getArgumentBehavior

javassist.CtBehavior getArgumentBehavior()
Returns:
the behavior whose parameter is annotated

isConstructorArgument

boolean isConstructorArgument()
Returns:
if the annotated argument is a constructor or method parameter

getArgumentNumber

int getArgumentNumber()
Returns:
the annotated argument number, zero based

getArgumentIdentifier

String getArgumentIdentifier()
Returns:
the annotated argument name


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.