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.
Fields inherited from class | Fields |
---|---|
class CachedClass |
EMPTY_ARRAY, classInfo, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods |
Constructor and description |
---|
CachedSAMClass
(Class klazz, ClassInfo classInfo) |
Type | Name and description |
---|---|
Object |
coerceArgument(Object argument) |
static Object |
coerceToSAM(Closure argument, Method method, Class clazz, boolean isInterface) |
static Method |
getSAMMethod(Class<?> c) returns the abstract method from a SAM type, if it is a SAM type. |
boolean |
isAssignableFrom(Class argument) |
Methods inherited from class | Name |
---|---|
class CachedClass |
addNewMopMethods, coerceArgument, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isAssignableFrom, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
returns the abstract method from a SAM type, if it is a SAM type.
c
- the SAM classCopyright © 2003-2015 The Apache Software Foundation. All rights reserved.