|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.staccatocommons.instrument.context.internal.AbstractAnnotationContext
net.sf.staccatocommons.instrument.context.internal.DefaultArgumentAnnotationContext
public class DefaultArgumentAnnotationContext
| Constructor Summary | |
|---|---|
DefaultArgumentAnnotationContext(javassist.ClassPool pool,
org.slf4j.Logger logger)
Creates a new DefaultArgumentAnnotationContext |
|
| Method Summary | |
|---|---|
javassist.CtBehavior |
getArgumentBehavior()
|
String |
getArgumentIdentifier()
|
int |
getArgumentNumber()
|
javassist.CtClass |
getDeclaringClass()
Answers the class were the annotated element is declared. |
javassist.CtClass |
getElementType()
Returns the type of the element annotated: When the annotated element is a class, the type is that class When the annotated element is a constructor, the type is the class that declared such constructor When the annotated element is a method, the type is the return type of the method When the annotated element is an argument, the type is argument type |
boolean |
isConstructorArgument()
|
boolean |
isPublic()
If this annotated contextis public, that is: When the annotated element is a class, method or constructor, whether it is marked with the Java public keyword When the annotated element is an argument, whether the enclosing CtBehavior is public
|
void |
setBehavior(javassist.CtBehavior behavior)
|
void |
setParameterNumber(int parameterNumber)
Sets the zero-base argument number |
| Methods inherited from class net.sf.staccatocommons.instrument.context.internal.AbstractAnnotationContext |
|---|
getClass, getClassPool, getLogger, getPackage, getPresentAnnotationsTypes, logDebugMessage, logErrorMessage, logInfoMessage, logWarnMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.staccatocommons.instrument.context.AnnotationContext |
|---|
getClass, getClassPool, getPackage, logDebugMessage, logErrorMessage, logInfoMessage, logWarnMessage |
| Constructor Detail |
|---|
public DefaultArgumentAnnotationContext(@NonNull
javassist.ClassPool pool,
@NonNull
org.slf4j.Logger logger)
DefaultArgumentAnnotationContext
| Method Detail |
|---|
public javassist.CtBehavior getArgumentBehavior()
getArgumentBehavior in interface ArgumentAnnotationContextpublic void setBehavior(javassist.CtBehavior behavior)
behavior - the behavior to setpublic int getArgumentNumber()
getArgumentNumber in interface ArgumentAnnotationContextpublic boolean isConstructorArgument()
isConstructorArgument in interface ArgumentAnnotationContextpublic void setParameterNumber(int parameterNumber)
parameterNumber - the parameterNumber to setpublic javassist.CtClass getDeclaringClass()
AnnotationContext
getDeclaringClass in interface AnnotationContextpublic String getArgumentIdentifier()
getArgumentIdentifier in interface ArgumentAnnotationContext
public javassist.CtClass getElementType()
throws javassist.NotFoundException
AnnotationContext
getElementType in interface AnnotationContextCtClass that represents the type of the annotated element
javassist.NotFoundException - if such type is not availablepublic boolean isPublic()
AnnotationContextCtBehavior is public
isPublic in interface AnnotationContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||