com.caucho.config.gen
Class AspectGeneratorUtil
java.lang.Object
com.caucho.config.gen.AspectGeneratorUtil
@Module
public class AspectGeneratorUtil
- extends java.lang.Object
Generates the method aspect code for the head or proxy of the method.
Method Summary |
static void |
generateHeader(JavaWriter out,
boolean isOverride,
java.lang.String accessModifier,
java.lang.String methodName,
AnnotatedMethod<?> method,
java.util.Set<VarType<?>> typeVariables,
java.lang.Class<?>[] exnList)
Generates the method's signature before the call:
|
protected static void |
generateThrows(JavaWriter out,
java.lang.Class<?>[] exnCls)
Generates the method's "throws" declaration in the
method signature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectGeneratorUtil
public AspectGeneratorUtil()
generateHeader
public static void generateHeader(JavaWriter out,
boolean isOverride,
java.lang.String accessModifier,
java.lang.String methodName,
AnnotatedMethod<?> method,
java.util.Set<VarType<?>> typeVariables,
java.lang.Class<?>[] exnList)
throws java.io.IOException
- Generates the method's signature before the call:
MyValue myCall(int a0, String, a1, ...)
throws MyException, ...
- Parameters:
prefix
- TODO
- Throws:
java.io.IOException
generateThrows
protected static void generateThrows(JavaWriter out,
java.lang.Class<?>[] exnCls)
throws java.io.IOException
- Generates the method's "throws" declaration in the
method signature.
- Parameters:
out
- generated Java outputexnCls
- the exception classes
- Throws:
java.io.IOException