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.
Type | Name and description |
---|---|
void |
configureAnnotation(AnnotationNode an) |
void |
configureClassNode(CompileUnit compileUnit, ClassNode classNode) |
Object |
getInvokeSpecialHandle(Method m, Object receiver) Returns a handle with bound receiver to invokeSpecial the given method. |
Class[] |
getPluginDefaultGroovyMethods() |
Class[] |
getPluginStaticGroovyMethods() |
int |
getVersion() Gives the version the plguin is made for |
void |
invalidateCallSites() |
Object |
invokeHandle(Object handle, Object[] args) Invokes a handle produced by #getInvokeSpecialdHandle |
void |
setAdditionalClassInformation(ClassNode c) |
Returns a handle with bound receiver to invokeSpecial the given method. This method will require at least Java 7, but since the source has to compile on older Java versions as well it is not marked to return a MethodHandle and uses Object instead
Gives the version the plguin is made for
Invokes a handle produced by #getInvokeSpecialdHandle
handle
- the handleargs
- arguments for the method call, can be empty but not null