| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final WriterController | |
| public static final MopWriter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static boolean | |
| protected void | generateMopCalls(LinkedList<MethodNode>
list of methods a mop call method should be generated for mopCalls, boolean true if "this" should be used for the naming useThis)Generates a Meta Object Protocol method, that is used to call a non public method, or to make a call to super. |
| public static String | Returns: the mop method namethe method to be called by the mop method method, boolean if true, then it is a call on "this", "super" else useThis)Creates a MOP method name from a method. |
| public static boolean | Returns: true if the method is a MOP methodname of the method to test methodName)Determines if a method is a MOP method. |
| private void | visitMopMethodList(List<MethodNode>
unfiltered list of methods for MOP methods, boolean if true, then we are creating a MOP method on "this", "super" else isThis, Set<MopWriter.Filters a list of method for MOP methods. |
| controller | back to summary |
|---|---|
| private final WriterController controller | |
| FACTORY | back to summary |
|---|---|
| public static final MopWriter. | |
| MopWriter | back to summary |
|---|---|
| public MopWriter(WriterController controller) | |
| createMopMethods | back to summary |
|---|---|
| public void createMopMethods() | |
| equalParameterTypes | back to summary |
|---|---|
| public static boolean equalParameterTypes(Parameter[] p1, Parameter[] p2)
Deprecated
| |
| generateMopCalls | back to summary |
|---|---|
| protected void generateMopCalls(LinkedList<MethodNode> mopCalls, boolean useThis) Generates a Meta Object Protocol method, that is used to call a non public method, or to make a call to super.
| |
| getMopMethodName | back to summary |
|---|---|
| public static String getMopMethodName(MethodNode method, boolean useThis) Creates a MOP method name from a method.
| |
| isMopMethod | back to summary |
|---|---|
| public static boolean isMopMethod(String methodName) Determines 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.
| |
| visitMopMethodList | back to summary |
|---|---|
| private void visitMopMethodList(List<MethodNode> methods, boolean isThis, Set<MopWriter. Filters a list of method for MOP methods. For all methods that are no MOP methods a MOP method is created if the method is not public and the call would be a call on "this" (isThis == true). If the call is not on "this", then the call is a call on "super" and all methods are used, unless they are already a MOP method.
| |
| Modifier and Type | Method and Description |
|---|---|
| public MopWriter |
| create | back to summary |
|---|---|
| public MopWriter create(WriterController controller) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final String | |
| pack-priv final Parameter[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int |
| hash | back to summary |
|---|---|
| pack-priv final int hash | |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| params | back to summary |
|---|---|
| pack-priv final Parameter[] params | |
| MopKey | back to summary |
|---|---|
| pack-priv MopKey(String name, Parameter[] params) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |