Class CharacterCachedClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.CharacterCachedClass
-
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
ConstructorsConstructorDescriptionCharacterCachedClass(Class klazz, ClassInfo classInfo, boolean allowNull) Constructs a cached class representation for the given character class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAssignableFrom(Class classToTransformFrom) Determines if the given class can be transformed to char/Character.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
-
CharacterCachedClass
Constructs a cached class representation for the given character 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 aCharacterinstance, ornullis allowed,falseotherwise
-
isAssignableFrom
Determines if the given class can be transformed to char/Character.- Overrides:
isAssignableFromin classCachedClass- Parameters:
classToTransformFrom- the source class to check- Returns:
trueif the class can be transformed to char,falseotherwise
-