Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
static interface |
MopWriter.Factory |
Modifiers | Name | Description |
---|---|---|
static MopWriter.Factory |
FACTORY |
Type | Name and description |
---|---|
def |
MopWriter(WriterController wc) |
void |
createMopMethods() |
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. |
static String |
getMopMethodName(MethodNode method, boolean useThis) creates a MOP method name from a method |
static boolean |
isMopMethod(String methodName) method to determine if a method is a MOP method. |
generates a Meta Object Protocol method, that is used to call a non public method, or to make a call to super.
mopCalls
- list of methods a mop call method should be generated foruseThis
- true if "this" should be used for the namingcreates a MOP method name from a method
method
- the method to be called by the mop methoduseThis
- if true, then it is a call on "this", "super" elsemethod 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
methodName
- name of the method to test