Package org.codehaus.groovy.classgen.asm
Class MopWriter
java.lang.Object
org.codehaus.groovy.classgen.asm.MopWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static String
getMopMethodName
(MethodNode method, boolean useThis) creates a MOP method name from a methodstatic boolean
isMopMethod
(String methodName) method to determine if a method is a MOP method.
-
Constructor Details
-
MopWriter
-
-
Method Details
-
createMopMethods
public void createMopMethods() -
getMopMethodName
creates a MOP method name from a method- Parameters:
method
- the method to be called by the mop methoduseThis
- if true, then it is a call on "this", "super" else- Returns:
- the mop method name
-
isMopMethod
method to determine if a method is a MOP method. This is done by the method name. If the name starts with "this$" or "super$" but does not contain "$dist$", then it is an MOP method- Parameters:
methodName
- name of the method to test- Returns:
- true if the method is a MOP method
-