|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotationContext
Base interface for an annotated element context
| Method Summary | |
|---|---|
javassist.CtClass |
getClass(String className)
Shortcut for getClassPoll().get(className) |
javassist.ClassPool |
getClassPool()
Returns the class pool in use by the instrumenter |
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 |
String |
getPackage()
Answers the package of the annotated element |
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 |
logDebugMessage(String message,
Object... arguments)
|
void |
logErrorMessage(String message,
Object... arguments)
|
void |
logInfoMessage(String message,
Object... arguments)
|
void |
logWarnMessage(String message,
Object... arguments)
|
| Method Detail |
|---|
void logDebugMessage(String message,
Object... arguments)
message - arguments -
void logInfoMessage(String message,
Object... arguments)
message - arguments -
void logWarnMessage(String message,
Object... arguments)
message - arguments -
void logErrorMessage(String message,
Object... arguments)
message - arguments -
@NonNull
javassist.CtClass getDeclaringClass()
throws javassist.NotFoundException
javassist.NotFoundException - if such class is not available@NonNull javassist.ClassPool getClassPool()
ClassPool
@NonNull
javassist.CtClass getClass(@NonNull
String className)
throws javassist.NotFoundException
getClassPoll().get(className)
javassist.NotFoundException
@NonNull
javassist.CtClass getElementType()
throws javassist.NotFoundException
CtClass that represents the type of the annotated element
javassist.NotFoundException - if such type is not availableString getPackage()
boolean isPublic()
CtBehavior is public
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||