Class BooleanCachedClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.BooleanCachedClass
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.reflection.CachedClass
CachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString -
Field Summary
Fields inherited from class org.codehaus.groovy.reflection.CachedClass
classInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods -
Constructor Summary
ConstructorsConstructorDescriptionBooleanCachedClass(Class klazz, ClassInfo classInfo, boolean allowNull) Constructs a cached class representation for the given boolean class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAssignableFrom(Class classToTransformFrom) Determines if the given class can be transformed to boolean/Boolean.booleanisDirectlyAssignable(Object argument) Checks if the given argument is directly assignable without type conversion.Methods inherited from class org.codehaus.groovy.reflection.CachedClass
addNewMopMethods, coerceArgument, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString
-
Constructor Details
-
BooleanCachedClass
Constructs a cached class representation for the given boolean class.
-
-
Method Details
-
isDirectlyAssignable
Checks if the given argument is directly assignable without type conversion.- Overrides:
isDirectlyAssignablein classCachedClass- Parameters:
argument- the argument to check- Returns:
trueif the argument is aBooleaninstance, ornullis allowed,falseotherwise
-
isAssignableFrom
Determines if the given class can be transformed to boolean/Boolean.- Overrides:
isAssignableFromin classCachedClass- Parameters:
classToTransformFrom- the source class to check- Returns:
trueif the class can be transformed to boolean,falseotherwise
-