| Modifier and Type | Method and Description |
|---|---|
void |
addAutocast(Type to,
Autocast<?,?> autocast)
Support automatic casting to other type
|
void |
addBase(Type baseType)
Inherit the given type
|
void |
addInitializer(Initializer<Type> staticInitializer)
Add static initializer
|
DynamicClass |
getAssociatedClass()
Get Java class associated with the type
|
Optional<Autocast<?,?>> |
getAutocast(Type to)
Get autocast for the given type
|
Collection<? extends Type> |
getBases()
Get supertypes of type
|
Constructors |
getConstructors()
Get constructors that belongs to the type
|
Fields |
getFields()
Get fields that belongs to the type
|
Methods |
getMethods()
Get methods that belongs to the type
|
String |
getModel()
Get represented model of type
|
Module |
getModule()
Get associated module
|
default String |
getName()
Get property name
|
<T extends ExecutableProperty> |
getProperties(Class<T> propertyType)
Get properties of the given type
|
String |
getSimpleName()
Get simple name of property (without extra data)
|
State |
getState()
Get state of type
|
io.vavr.control.Option<Type> |
getSuperclass()
Get super class
|
io.vavr.control.Option<TypeLoader> |
getTypeLoader()
Get loader that loaded this type
|
void |
initialize(TypeLoader typeLoader)
Execute all registered initializers
|
boolean |
isArray()
Check if the type represents array type
|
boolean |
isAssignableFrom(@Nullable Type type)
Check if current declaration is assignable from the given declaration
|
boolean |
isInitialized()
Check if the type has been initialized
|
Type |
toArray(TypeLoader typeLoader)
Get type to the array type of this type
|
getLocation, getType, getVisibility, isNativevoid initialize(TypeLoader typeLoader)
Type toArray(TypeLoader typeLoader)
typeLoader - the loader to usevoid addBase(Type baseType)
baseType - the type to inherit fromvoid addAutocast(Type to, Autocast<?,?> autocast)
to - the type to cast toautocast - the autocastvoid addInitializer(Initializer<Type> staticInitializer)
staticInitializer - the static initializer to addboolean isAssignableFrom(@Nullable
@Nullable Type type)
type - to compare withboolean isArray()
boolean isInitialized()
Methods getMethods()
Fields getFields()
Constructors getConstructors()
<T extends ExecutableProperty> Optional<Properties<T>> getProperties(Class<T> propertyType)
T - generic type that represents the property typepropertyType - the property classOptional<Autocast<?,?>> getAutocast(Type to)
to - the type to search forCollection<? extends Type> getBases()
io.vavr.control.Option<Type> getSuperclass()
DynamicClass getAssociatedClass()
State getState()
String getModel()
io.vavr.control.Option<TypeLoader> getTypeLoader()
Module getModule()
String getSimpleName()
getSimpleName in interface PropertyCopyright © 2020. All rights reserved.