com.caucho.config.gen
Class MethodHeadGenerator<X>

java.lang.Object
  extended by com.caucho.config.gen.AbstractAspectGenerator<X>
      extended by com.caucho.config.gen.MethodHeadGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>
Direct Known Subclasses:
CandiMethodHeadGenerator, LifecycleMethodHeadGenerator, MessageMethodHeadGenerator, SingletonMethodHeadGenerator, StatefulMethodHeadGenerator, StatelessMethodHeadGenerator

@Module
public class MethodHeadGenerator<X>
extends AbstractAspectGenerator<X>

Generates the method aspect code for the head or proxy of the method.


Constructor Summary
MethodHeadGenerator(MethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void generate(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> prologueMap)
          Generates the overridden method.
protected  java.lang.String getMethodName()
           
protected  java.lang.String getMethodNamePrefix()
           
 int hashCode()
           
protected  boolean isOverride()
           
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodHeadGenerator

public MethodHeadGenerator(MethodHeadFactory<X> factory,
                           AnnotatedMethod<? super X> method,
                           AspectGenerator<X> next)
Method Detail

getMethodNamePrefix

protected java.lang.String getMethodNamePrefix()

getMethodName

protected java.lang.String getMethodName()

isOverride

protected boolean isOverride()

generate

public final void generate(JavaWriter out,
                           java.util.HashMap<java.lang.String,java.lang.Object> prologueMap)
                    throws java.io.IOException
Generates the overridden method.

Specified by:
generate in interface AspectGenerator<X>
Overrides:
generate in class AbstractAspectGenerator<X>
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object