@Module public class CandiMethodHeadGenerator<X> extends MethodHeadGenerator<X>
Constructor and Description |
---|
CandiMethodHeadGenerator(MethodHeadFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next) |
Modifier and Type | Method and Description |
---|---|
void |
generatePreTry(JavaWriter out)
Generates code before the "try" block
|
equals, generate, getMethodName, getMethodNamePrefix, hashCode, isOverride
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getInstanceName, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
public CandiMethodHeadGenerator(MethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
public void generatePreTry(JavaWriter out) throws java.io.IOException
retType myMethod(...)
{
[pre-try]
try {
...
}
generatePreTry
in interface AspectGenerator<X>
generatePreTry
in class AbstractAspectGenerator<X>
java.io.IOException