Uses of Interface
org.aopalliance.reflect.CodeLocator
Packages that use CodeLocator
Package
Description
This package provides an API for program instrumentation.
This package provides a set of interfaces for implementing a
generic reflection API.
-
Uses of CodeLocator in org.aopalliance.instrument
Methods in org.aopalliance.instrument with parameters of type CodeLocatorModifier and TypeMethodDescriptionInstrumentor.addAfterCode(CodeLocator location, Code afterCode, Instrumentation before, Instrumentation after) Adds some code after a given method code body.Instrumentor.addAroundCode(CodeLocator location, Code aroundCode, String proceedMethodName, Instrumentation before, Instrumentation after) Adds some code around a given method code body.Instrumentor.addBeforeCode(CodeLocator location, Code beforeCode, Instrumentation before, Instrumentation after) Adds some code before a given method code body. -
Uses of CodeLocator in org.aopalliance.reflect
Methods in org.aopalliance.reflect that return CodeLocatorModifier and TypeMethodDescriptionCode.getCallLocator(Method calleeMethod) Returns a call locator for the given callee method.Method.getCallLocator()This locator contains all the points in the program that call this method.Method.getCallLocator(int side) A full version ofMethod.getCallLocator().Code.getCatchLocator(Class exceptionType) Returns a exception catching locator in the current body.Code.getLocator()Returns the code locator that corresponds to this code.Code.getReadLocator(Field readField) Returns a field reading locator in the current body.Field.getReadLocator()Same asgetReadLocator(USER_SIDE).Field.getReadLocator(int side) This methods returns the points where the current field is read.Code.getThrowLocator(Class exceptionType) Returns a exception throwing locator in the current body.Code.getWriteLocator(Field writtenField) Returns a field writing locator in the current body.Field.getWriteLocator()Same asgetWriteLocator(USER_SIDE).Field.getWriteLocator(int side) This methods returns the points where the current field is written.