Package com.embabel.agent.core
Class JvmType
-
- All Implemented Interfaces:
-
com.embabel.agent.core.DomainType,com.embabel.common.core.types.Described,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Named,com.embabel.common.core.types.NamedAndDescribed
public final class JvmType implements DomainType
Typed backed by a JVM object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJvmType.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleancreationPermittedprivate final List<JvmType>parentsprivate final Class<?>clazzprivate final Stringnameprivate final StringownLabelprivate final Stringdescriptionprivate final List<PropertyDefinition>ownPropertiesprivate final StringclassNameprivate final List<PropertyDefinition>propertiesprivate final Set<String>labelspublic final static JvmType.CompanionCompanion
-
Method Summary
Modifier and Type Method Description BooleangetCreationPermitted()Is instance creation permitted? List<JvmType>getParents()Supports inheritance final Class<?>getClazz()StringgetName()StringgetOwnLabel()StringgetDescription()List<PropertyDefinition>getOwnProperties()Properties defined on this type only (not inherited) final StringgetClassName()BooleanisAssignableFrom(Class<?> other)BooleanisAssignableFrom(DomainType other)BooleanisAssignableTo(Class<?> other)BooleanisAssignableTo(DomainType other)Collection<JvmType>children(Collection<String> additionalBasePackages)Get all descendant types from the classpath. StringinfoString(Boolean verbose, Integer indent)-
-
Method Detail
-
getCreationPermitted
Boolean getCreationPermitted()
Is instance creation permitted? Or is this reference data?
-
getParents
List<JvmType> getParents()
Supports inheritance
-
getOwnLabel
String getOwnLabel()
-
getDescription
String getDescription()
-
getOwnProperties
List<PropertyDefinition> getOwnProperties()
Properties defined on this type only (not inherited)
-
getClassName
final String getClassName()
-
isAssignableFrom
Boolean isAssignableFrom(Class<?> other)
-
isAssignableFrom
Boolean isAssignableFrom(DomainType other)
-
isAssignableTo
Boolean isAssignableTo(Class<?> other)
-
isAssignableTo
Boolean isAssignableTo(DomainType other)
-
children
Collection<JvmType> children(Collection<String> additionalBasePackages)
Get all descendant types from the classpath. For JvmType: scans the classpath for classes that extend or implement this type. For DynamicType: returns empty list as dynamic types don't have classpath descendants.
- Parameters:
additionalBasePackages- additional base packages to scan for descendants We always include the package of this type as a base package.
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-