Class ClassMeta<T>
- Type Parameters:
- T- The class type of the wrapped class.
- All Implemented Interfaces:
- Type
Class object that provides cached information about that class.
 
 Instances of this class can be created through the BeanContext.getClassMeta(Class) method.
 
 The BeanContext class will cache and reuse instances of this class except for the following class types:
 
- Arrays
- Maps with non-Object key/values.
- Collections with non-Object key/values.
 This class is tied to the BeanContext class because it's that class that makes the determination of what is
 a bean.
 
See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanCreateNewBean(Object outer) Returnstrue if this class can be instantiated as a bean.booleanReturnstrue if this class has a no-arg constructor or invocation handler.booleancanCreateNewInstance(Object outer) Returnstrue if this class has a no-arg constructor or invocation handler.booleanReturnstrue if this class can call thenewInstanceFromString(Object, String)method.Cast this object to this type.booleanprotected static <T> Constructor<? extends T>findNoArgConstructor(Class<?> c, Visibility v) Locates the no-arg constructor for the specified class.<A extends Annotation>
 Optional<A>firstAnnotation(Class<A> type, Predicate<A> filter) Returns the first matching annotation on this class or parent classes/interfaces in parent-to-child order.<A extends Annotation>
 ClassMeta<T>forEachAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations of the specified type defined on this class or parent classes/interfaces in parent-to-child order.ClassMeta<?>getArg(int index) Returns the argument metadata at the specified index if this is an args metadata object.ClassMeta<?>[]getArgs()Returns the argument types of this meta.Returns theBeanContextthat created this object.Returns theBeanMetaassociated with this class.Returns the bean registry for this class.Returns the type property name associated with this class and subclasses.BuilderSwap<T,?> getBuilderSwap(BeanSession session) Returns the builder swap associated with this class.protected ObjectSwap<?,?> getChildObjectSwapForSwap(Class<?> normalClass) Returns theObjectSwapwhere the specified class is the same/subclass of the normal class of one of the child POJO swaps associated with this class.protected ObjectSwap<?,?> getChildObjectSwapForUnswap(Class<?> swapClass) Returns theObjectSwapwhere the specified class is the same/subclass of the swap class of one of the child POJO swaps associated with this class.org.apache.juneau.ClassMeta.ClassCategoryReturns the category of this class.Returns the no-arg constructor for this class.Returns the bean dictionary name associated with this class.ClassMeta<?>For array andCollectiontypes, returns the class type of the components of the array orCollection.getExample(BeanSession session, JsonParserSession jpSession) Returns the example of this class.getFromMutater(Class<I> c) Returns the transform for this class for creating instances from other object types.Returns a readable name for this class (e.g.getImplClassConstructor(Visibility conVis) Returns the no-arg constructor for this class based on theMarshalled.implClass()value.getInfo()Returns theClassInfowrapper for the underlying class.Returns any exception that was throw in theinit() method.Returns theClassobject that this class type wraps.Returns the transform for this class for creating instances from an InputStream.ClassMeta<?>ForMaptypes, returns the class type of the keys of theMap.<A extends Annotation>
 AgetLastAnnotation(Class<A> a) Shortcut for callinggetInnerClass().getAnnotation(a) .getName()Shortcut for callingClass.getName()on the inner class of this metadata.Returns the method or field annotated with@NameProperty.Returns the reason why this class is not a bean, ornull if it is a bean.Optional<?>If this is anOptional, returns an empty optional.Returns the method or field annotated with@ParentProperty.Returns the default value for primitives such asint orInteger .<T2> Optional<T2>getProperty(String name, Function<ClassMeta<?>, T2> function) Returns a calculated property on this context.Returns the interface proxy invocation handler for this class.All public methods on this class including static methods.Returns the transform for this class for creating instances from a Reader.ClassMeta<?>getSerializedClassMeta(BeanSession session) Returns the serialized (swapped) form of this class if there is anObjectSwapassociated with it.Shortcut for callingClass.getSimpleName()on the inner class of this metadata.Returns the transform for this class for creating instances from a String.ObjectSwap<T,?> getSwap(BeanSession session) Returns theObjectSwapassociated with this class that's the best match for the specified session.getToMutater(Class<O> c) Returns the transform for this class for creating instances from other object types.ClassMeta<?>ForMaptypes, returns the class type of the values of theMap.booleanhasAnnotation(Class<? extends Annotation> a) Shortcut for callinggetInnerClass().getAnnotation(a) !protected booleanReturnstrue if this class or any child classes has aObjectSwapassociated with it.inthashCode()booleanReturnstrue if this class has a transform associated with it that allows it to be created from an InputStream.booleanhasMutaterFrom(Class<?> c) Returnstrue if this class can be instantiated from the specified type.booleanhasMutaterFrom(ClassMeta<?> c) Returnstrue if this class can be instantiated from the specified type.booleanhasMutaterTo(Class<?> c) Returnstrue if this class can be transformed to the specified type.booleanhasMutaterTo(ClassMeta<?> c) Returnstrue if this class can be transformed to the specified type.booleanReturnstrue if this class has a transform associated with it that allows it to be created from a Reader.booleanReturnstrue if this class has a transform associated with it that allows it to be created from a String.booleanReturnstrue if the specified class is an exact match for this metadata.booleanReturnstrue if this class is abstract.booleanisArgs()Returnstrue if this metadata represents an array of argument types.booleanisArray()Returnstrue if this class is an array.booleanisAssignableFrom(Class<?> c) Returnstrue if this class is a superclass of or the same as the specified class.booleanisBean()Returnstrue if this class is a bean.booleanReturnstrue if this class is a subclass ofBeanMap.booleanReturnstrue if this class is aBoolean.booleanReturnstrue if this class isbyte []booleanReturnstrue if this class is aCalendar.booleanisChar()Returnstrue if this class is aCharacter.booleanReturnstrue if this class is a subclass ofCharSequence.booleanReturnstrue if this metadata represents the specified type.booleanisClass()Returnstrue if this class isClass.booleanReturnstrue if this class is a subclass ofCollection.booleanReturnstrue if this class is a subclass ofCollectionor is an array.booleanbooleanisDate()Returnstrue if this class is aDate.booleanbooleanbooleanbooleanReturnstrue if this class implementsDelegate, meaning it's a representation of some other object.booleanisDouble()booleanisEnum()Returnstrue if this class is anEnum.booleanisFloat()booleanReturnstrue if this class is anInputStream.booleanisInstance(Object o) Returnstrue if the specified object is an instance of this class.booleanisInstanceOf(Class<?> c) Returnstrue if this class is a subclass of or the same as the specified class.booleanbooleanisList()Returnstrue if this class extends fromList.booleanisLong()booleanisMap()Returnstrue if this class is a subclass ofMap.booleanReturnstrue if this class is a subclass ofMapor it's a bean.booleanReturnstrue if this class is an inner class.booleanisMethod()Returnstrue if this class isMethod.booleanReturnstrue if this class is notObject.booleanReturnstrue if instance of this object can benull .booleanisNumber()Returnstrue if this class is a subclass ofNumber.booleanisObject()Returnstrue if this class isObject.booleanReturnstrue if this class is a subclass ofOptional.booleanReturnstrue if this class is a primitive.booleanisReader()Returnstrue if this class is aReader.booleanisSet()Returnstrue if this class extends fromSet.booleanisShort()booleanisString()Returnstrue if this class is aString.booleanReturnstrue if this class is aTemporal.booleanisUri()booleanisVoid()<A extends Annotation>
 Optional<A>lastAnnotation(Class<A> type, Predicate<A> filter) Returns the last matching annotation on this class or parent classes/interfaces in parent-to-child order.mutateFrom(Object o) Transforms the specified object into an instance of this class.<O> OTransforms the specified object into an instance of this class.<O> OTransforms the specified object into an instance of this class.Create a new instance of the main class of this declared type.newInstance(Object outer) Same asnewInstance()except for instantiating non-static member classes.newInstanceFromString(Object outer, String arg) Create a new instance of the main class of this declared type from aString input.booleanSimilar toequals(Object)except primitive and Object types that are similar are considered the same.toString()toString(boolean simple) Same astoString()except use simple class names.Converts the specified object to a string.protected StringBuildertoString(StringBuilder sb, boolean simple) Appends this object as a readable string to the specified string builder.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.TypegetTypeName
- 
Method Details- 
getInfoReturns theClassInfowrapper for the underlying class.- Returns:
- The ClassInfowrapper for the underlying class, nevernull .
 
- 
getBeanTypePropertyNameReturns the type property name associated with this class and subclasses.If null ,"_type" should be assumed.- Returns:
- The type property name associated with this bean class, or null if there is no explicit type property name defined or this isn't a bean.
 
- 
getDictionaryNameReturns the bean dictionary name associated with this class.The lexical name is defined by @Bean(typeName).- Returns:
- The type name associated with this bean class, or null if there is no type name defined or this isn't a bean.
 
- 
getBeanRegistryReturns the bean registry for this class.This bean registry contains names specified in the @Bean(dictionary)annotation defined on the class, regardless of whether the class is an actual bean. This allows interfaces to define subclasses with type names.- Returns:
- The bean registry for this class, or null if no bean registry is associated with it.
 
- 
getClassCategoryReturns the category of this class.- Returns:
- The category of this class.
 
- 
isAssignableFromReturnstrue if this class is a superclass of or the same as the specified class.- Parameters:
- c- The comparison class.
- Returns:
- true if this class is a superclass of or the same as the specified class.
 
- 
isInstanceOfReturnstrue if this class is a subclass of or the same as the specified class.- Parameters:
- c- The comparison class.
- Returns:
- true if this class is a subclass of or the same as the specified class.
 
- 
hasChildSwapsReturnstrue if this class or any child classes has aObjectSwapassociated with it.Used when transforming bean properties to prevent having to look up transforms if we know for certain that no transforms are associated with a bean property. - Returns:
- true if this class or any child classes has a- ObjectSwapassociated with it.
 
- 
getChildObjectSwapForSwapReturns theObjectSwapwhere the specified class is the same/subclass of the normal class of one of the child POJO swaps associated with this class.- Parameters:
- normalClass- The normal class being resolved.
- Returns:
- The resolved ObjectSwapornull if none were found.
 
- 
getChildObjectSwapForUnswapReturns theObjectSwapwhere the specified class is the same/subclass of the swap class of one of the child POJO swaps associated with this class.- Parameters:
- swapClass- The swap class being resolved.
- Returns:
- The resolved ObjectSwapornull if none were found.
 
- 
findNoArgConstructorLocates the no-arg constructor for the specified class.Constructor must match the visibility requirements specified by parameter 'v'. If class is abstract, always returns null . Note that this also returns the 1-arg constructor for non-static member classes.- Type Parameters:
- T- The class from which to locate the no-arg constructor.
- Parameters:
- c- The class from which to locate the no-arg constructor.
- v- The minimum visibility.
- Returns:
- The constructor, or null if no no-arg constructor exists with the required visibility.
 
- 
getInnerClassReturns theClassobject that this class type wraps.- Returns:
- The wrapped class object.
 
- 
getSerializedClassMetaReturns the serialized (swapped) form of this class if there is anObjectSwapassociated with it.- Parameters:
- session- The bean session.
 Required because the swap used may depend on the media type being serialized or parsed.
- Returns:
- The serialized class type, or this object if no swap is associated with the class.
 
- 
getExampleReturns the example of this class.- Parameters:
- session- The bean session.
 Required because the example method may take it in as a parameter.
- jpSession- The JSON parser for parsing examples into POJOs.
- Returns:
- The serialized class type, or this object if no swap is associated with the class.
 
- 
getElementTypeFor array andCollectiontypes, returns the class type of the components of the array orCollection.- Returns:
- The element class type, or null if this class is not an array or Collection.
 
- 
getKeyTypeForMaptypes, returns the class type of the keys of theMap.- Returns:
- The key class type, or null if this class is not a Map.
 
- 
getValueTypeForMaptypes, returns the class type of the values of theMap.- Returns:
- The value class type, or null if this class is not a Map.
 
- 
isDelegateReturnstrue if this class implementsDelegate, meaning it's a representation of some other object.- Returns:
- true if this class implements- Delegate.
 
- 
isReturnstrue if the specified class is an exact match for this metadata.- Parameters:
- value- The value to check against.
- Returns:
- true if the specified class is an exact match for this metadata.
 
- 
isChildOfReturnstrue if this metadata represents the specified type.- Parameters:
- c- The class to test against.
- Returns:
- true if this metadata represents the specified type.
 
- 
isMapReturnstrue if this class is a subclass ofMap.- Returns:
- true if this class is a subclass of- Map.
 
- 
isMapOrBeanReturnstrue if this class is a subclass ofMapor it's a bean.- Returns:
- true if this class is a subclass of- Mapor it's a bean.
 
- 
isBeanMapReturnstrue if this class is a subclass ofBeanMap.- Returns:
- true if this class is a subclass of- BeanMap.
 
- 
isCollectionReturnstrue if this class is a subclass ofCollection.- Returns:
- true if this class is a subclass of- Collection.
 
- 
isOptionalReturnstrue if this class is a subclass ofOptional.- Returns:
- true if this class is a subclass of- Optional.
 
- 
isCollectionOrArrayReturnstrue if this class is a subclass ofCollectionor is an array.- Returns:
- true if this class is a subclass of- Collectionor is an array.
 
- 
isCollectionOrArrayOrOptional- Returns:
- true if this class is a subclass of- Collectionor is an array or- Optional.
 
- 
isSetReturnstrue if this class extends fromSet.- Returns:
- true if this class extends from- Set.
 
- 
isListReturnstrue if this class extends fromList.- Returns:
- true if this class extends from- List.
 
- 
isByteArrayReturnstrue if this class isbyte []- Returns:
- true if this class is- byte []
 
- 
isClassReturnstrue if this class isClass.- Returns:
- true if this class is- Class.
 
- 
isMethodReturnstrue if this class isMethod.- Returns:
- true if this class is- Method.
 
- 
isEnumReturnstrue if this class is anEnum.- Returns:
- true if this class is an- Enum.
 
- 
isArrayReturnstrue if this class is an array.- Returns:
- true if this class is an array.
 
- 
isBeanReturnstrue if this class is a bean.- Returns:
- true if this class is a bean.
 
- 
isObjectReturnstrue if this class isObject.- Returns:
- true if this class is- Object.
 
- 
isNotObjectReturnstrue if this class is notObject.- Returns:
- true if this class is not- Object.
 
- 
isNumberReturnstrue if this class is a subclass ofNumber.- Returns:
- true if this class is a subclass of- Number.
 
- 
isDecimal
- 
isFloat- Returns:
- true if this class is either- Floator- float .
 
- 
isDouble- Returns:
- true if this class is either- Doubleor- double .
 
- 
isShort- Returns:
- true if this class is either- Shortor- short .
 
- 
isInteger- Returns:
- true if this class is either- Integeror- int .
 
- 
isLong- Returns:
- true if this class is either- Longor- long .
 
- 
isBooleanReturnstrue if this class is aBoolean.- Returns:
- true if this class is a- Boolean.
 
- 
isCharSequenceReturnstrue if this class is a subclass ofCharSequence.- Returns:
- true if this class is a subclass of- CharSequence.
 
- 
isStringReturnstrue if this class is aString.- Returns:
- true if this class is a- String.
 
- 
isCharReturnstrue if this class is aCharacter.- Returns:
- true if this class is a- Character.
 
- 
isPrimitiveReturnstrue if this class is a primitive.- Returns:
- true if this class is a primitive.
 
- 
isDateOrCalendar
- 
isDateOrCalendarOrTemporal
- 
isDateReturnstrue if this class is aDate.- Returns:
- true if this class is a- Date.
 
- 
isTemporalReturnstrue if this class is aTemporal.- Returns:
- true if this class is a- Temporal.
 
- 
isCalendarReturnstrue if this class is aCalendar.- Returns:
- true if this class is a- Calendar.
 
- 
isUri
- 
isReaderReturnstrue if this class is aReader.- Returns:
- true if this class is a- Reader.
 
- 
isInputStreamReturnstrue if this class is anInputStream.- Returns:
- true if this class is an- InputStream.
 
- 
isVoid- Returns:
- true if this class is- Voidor- void .
 
- 
isArgsReturnstrue if this metadata represents an array of argument types.- Returns:
- true if this metadata represents an array of argument types.
 
- 
getArgsReturns the argument types of this meta.- Returns:
- The argument types of this meta, or null if this isn't an array of argument types.
 
- 
getArgReturns the argument metadata at the specified index if this is an args metadata object.- Parameters:
- index- The argument index.
- Returns:
- The The argument metadata.  Never null .
- Throws:
- BeanRuntimeException- If this metadata object is not a list of arguments, or the index is out of range.
 
- 
isNullableReturnstrue if instance of this object can benull .Objects can be null , but primitives cannot, except for chars which can be represented by(.char )0- Returns:
- true if instance of this class can be null.
 
- 
isAbstractReturnstrue if this class is abstract.- Returns:
- true if this class is abstract.
 
- 
isMemberClassReturnstrue if this class is an inner class.- Returns:
- true if this class is an inner class.
 
- 
getPublicMethodsAll public methods on this class including static methods.Keys are method signatures. - Returns:
- The public methods on this class.
 
- 
getSwapReturns theObjectSwapassociated with this class that's the best match for the specified session.- Parameters:
- session- The current bean session.
 If multiple swaps are associated with a class, only the first one with a matching media type will be returned.
- Returns:
- The ObjectSwapassociated with this class, ornull if there are no POJO swaps associated with this class.
 
- 
getBuilderSwapReturns the builder swap associated with this class.- Parameters:
- session- The current bean session.
- Returns:
- The builder swap associated with this class, or null if it doesn't exist.
 
- 
getBeanMetaReturns theBeanMetaassociated with this class.- Returns:
- The BeanMetaassociated with this class, ornull if there is no bean meta associated with this class.
 
- 
getConstructorReturns the no-arg constructor for this class.- Returns:
- The no-arg constructor for this class, or null if it does not exist.
 
- 
getImplClassConstructorReturns the no-arg constructor for this class based on theMarshalled.implClass()value.- Parameters:
- conVis- The constructor visibility.
- Returns:
- The no-arg constructor for this class, or null if it does not exist.
 
- 
getProxyInvocationHandlerReturns the interface proxy invocation handler for this class.- Returns:
- The interface proxy invocation handler, or null if it does not exist.
 
- 
canCreateNewInstanceReturnstrue if this class has a no-arg constructor or invocation handler.- Returns:
- true if a new instance of this class can be constructed.
 
- 
canCreateNewInstanceReturnstrue if this class has a no-arg constructor or invocation handler. Returnsfalse if this is a non-static member class and the outer object does not match the class type of the defining class.- Parameters:
- outer- The outer class object for non-static member classes. Can be- null for non-member or static classes.
- Returns:
- true if a new instance of this class can be created within the context of the specified outer object.
 
- 
canCreateNewBeanReturnstrue if this class can be instantiated as a bean. Returnsfalse if this is a non-static member class and the outer object does not match the class type of the defining class.- Parameters:
- outer- The outer class object for non-static member classes. Can be- null for non-member or static classes.
- Returns:
- true if a new instance of this bean can be created within the context of the specified outer object.
 
- 
canCreateNewInstanceFromStringReturnstrue if this class can call thenewInstanceFromString(Object, String)method.- Parameters:
- outer- The outer class object for non-static member classes. Can be- null for non-member or static classes.
- Returns:
- true if this class has a no-arg constructor or invocation handler.
 
- 
getNamePropertyReturns the method or field annotated with@NameProperty.- Returns:
- The method or field  annotated with @NamePropertyornull if method does not exist.
 
- 
getParentPropertyReturns the method or field annotated with@ParentProperty.- Returns:
- The method or field annotated with @ParentPropertyornull if method does not exist.
 
- 
getNotABeanReasonReturns the reason why this class is not a bean, ornull if it is a bean.- Returns:
- The reason why this class is not a bean, or null if it is a bean.
 
- 
getInitExceptionReturns any exception that was throw in theinit() method.- Returns:
- The cached exception.
 
- 
getBeanContextReturns theBeanContextthat created this object.- Returns:
- The bean context.
 
- 
getPrimitiveDefaultReturns the default value for primitives such asint orInteger .- Returns:
- The default value, or null if this class type is not a primitive.
 
- 
getOptionalDefaultIf this is anOptional, returns an empty optional.Note that if this is a nested optional, will recursively create empty optionals. - Returns:
- An empty optional, or null if this isn't an optional.
 
- 
toStringConverts the specified object to a string.- Parameters:
- t- The object to convert.
- Returns:
- The object converted to a string, or null if the object was null.
 
- 
newInstanceFromStringCreate a new instance of the main class of this declared type from aString input.In order to use this method, the class must have one of the following methods: - public static T valueOf(String in);
- public static T fromString(String in);
- public T(String in);
 - Parameters:
- outer- The outer class object for non-static member classes. Can be- null for non-member or static classes.
- arg- The input argument value.
- Returns:
- A new instance of the object, or null if there is no string constructor on the object.
- Throws:
- ExecutableException- Exception occurred on invoked constructor/method/field.
 
- 
newInstanceCreate a new instance of the main class of this declared type.- Returns:
- A new instance of the object, or null if there is no no-arg constructor on the object.
- Throws:
- ExecutableException- Exception occurred on invoked constructor/method/field.
 
- 
newInstanceSame asnewInstance()except for instantiating non-static member classes.- Parameters:
- outer- The instance of the owning object of the member class instance. Can be- null if instantiating a non-member or static class.
- Returns:
- A new instance of the object, or null if there is no no-arg constructor on the object.
- Throws:
- ExecutableException- Exception occurred on invoked constructor/method/field.
 
- 
sameSimilar toequals(Object)except primitive and Object types that are similar are considered the same. (e.g.boolean ==Boolean ).- Parameters:
- cm- The class meta to compare to.
- Returns:
- true if the specified class-meta is equivalent to this one.
 
- 
toString
- 
toStringSame astoString()except use simple class names.- Parameters:
- simple- Print simple class names only (no package).
- Returns:
- A new string.
 
- 
toStringAppends this object as a readable string to the specified string builder.- Parameters:
- sb- The string builder to append this object to.
- simple- Print simple class names only (no package).
- Returns:
- The passed-in string builder.
 
- 
isInstanceReturnstrue if the specified object is an instance of this class.This is a simple comparison on the base class itself and not on any generic parameters. - Parameters:
- o- The object to check.
- Returns:
- true if the specified object is an instance of this class.
 
- 
getFullNameReturns a readable name for this class (e.g."java.lang.String" ,"boolean[]" ).- Returns:
- The readable name for this class.
 
- 
getNameShortcut for callingClass.getName()on the inner class of this metadata.- Returns:
- The name of the inner class.
 
- 
getSimpleNameShortcut for callingClass.getSimpleName()on the inner class of this metadata.- Returns:
- The simple name of the inner class.
 
- 
hasReaderMutaterReturnstrue if this class has a transform associated with it that allows it to be created from a Reader.- Returns:
- true if this class has a transform associated with it that allows it to be created from a Reader.
 
- 
getReaderMutaterReturns the transform for this class for creating instances from a Reader.- Returns:
- The transform, or null if no such transform exists.
 
- 
hasInputStreamMutaterReturnstrue if this class has a transform associated with it that allows it to be created from an InputStream.- Returns:
- true if this class has a transform associated with it that allows it to be created from an InputStream.
 
- 
getInputStreamMutaterReturns the transform for this class for creating instances from an InputStream.- Returns:
- The transform, or null if no such transform exists.
 
- 
hasStringMutaterReturnstrue if this class has a transform associated with it that allows it to be created from a String.- Returns:
- true if this class has a transform associated with it that allows it to be created from a String.
 
- 
getStringMutaterReturns the transform for this class for creating instances from a String.- Returns:
- The transform, or null if no such transform exists.
 
- 
hasMutaterFromReturnstrue if this class can be instantiated from the specified type.- Parameters:
- c- The class type to convert from.
- Returns:
- true if this class can be instantiated from the specified type.
 
- 
hasMutaterFromReturnstrue if this class can be instantiated from the specified type.- Parameters:
- c- The class type to convert from.
- Returns:
- true if this class can be instantiated from the specified type.
 
- 
hasMutaterToReturnstrue if this class can be transformed to the specified type.- Parameters:
- c- The class type to convert from.
- Returns:
- true if this class can be transformed to the specified type.
 
- 
hasMutaterToReturnstrue if this class can be transformed to the specified type.- Parameters:
- c- The class type to convert from.
- Returns:
- true if this class can be transformed to the specified type.
 
- 
mutateFromTransforms the specified object into an instance of this class.- Parameters:
- o- The object to transform.
- Returns:
- The transformed object.
 
- 
mutateToTransforms the specified object into an instance of this class.- Type Parameters:
- O- The transform-to class.
- Parameters:
- o- The object to transform.
- c- The class
- Returns:
- The transformed object.
 
- 
mutateToTransforms the specified object into an instance of this class.- Type Parameters:
- O- The transform-to class.
- Parameters:
- o- The object to transform.
- c- The class
- Returns:
- The transformed object.
 
- 
getFromMutaterReturns the transform for this class for creating instances from other object types.- Type Parameters:
- I- The transform-from class.
- Parameters:
- c- The transform-from class.
- Returns:
- The transform, or null if no such transform exists.
 
- 
getToMutaterReturns the transform for this class for creating instances from other object types.- Type Parameters:
- O- The transform-to class.
- Parameters:
- c- The transform-from class.
- Returns:
- The transform, or null if no such transform exists.
 
- 
hasAnnotationShortcut for callinggetInnerClass().getAnnotation(a) !=.null - Parameters:
- a- The annotation to check for.
- Returns:
- true if the inner class has the annotation.
 
- 
getLastAnnotationShortcut for callinggetInnerClass().getAnnotation(a) .- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- a- The annotation to retrieve.
- Returns:
- The specified annotation, or null if the class does not have the specified annotation.
 
- 
forEachAnnotationpublic <A extends Annotation> ClassMeta<T> forEachAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations of the specified type defined on this class or parent classes/interfaces in parent-to-child order.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation to search for.
- filter- A predicate to apply to the entries to determine if action should be performed. Can be- null .
- action- An action to perform on the entry.
- Returns:
- This object.
 
- 
firstAnnotationReturns the first matching annotation on this class or parent classes/interfaces in parent-to-child order.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation to search for.
- filter- A predicate to apply to the entries to determine if annotation should be used. Can be- null .
- Returns:
- This object.
 
- 
lastAnnotationReturns the last matching annotation on this class or parent classes/interfaces in parent-to-child order.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation to search for.
- filter- A predicate to apply to the entries to determine if annotation should be used. Can be- null .
- Returns:
- This object.
 
- 
getPropertyReturns a calculated property on this context.- Type Parameters:
- T2- The type to convert the property to.
- Parameters:
- name- The name of the property.
- function- The function used to create this property.
- Returns:
- The property value.  Never null .
 
- 
castCast this object to this type.- Parameters:
- o- The object to cast.
- Returns:
- The cast object.
 
- 
hashCode
- 
equals
 
-