| Modifier and Type | Field and Description |
|---|---|
protected DynamicClass |
associated |
protected Map<Type,Autocast<?,?>> |
autocasts |
protected Collection<Type> |
bases |
protected Constructors |
constructors |
protected Fields |
fields |
protected List<Initializer<Type>> |
initializers |
protected Methods |
methods |
protected String |
model |
protected Module |
module |
protected State |
state |
protected TypeLoader |
typeLoader |
| Constructor and Description |
|---|
PandaType(PandaTypeMetadata<?,?> metadata) |
| 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
|
static <T> PandaTypeMetadata<?,?> |
builder() |
boolean |
equals(@Nullable Object o) |
DynamicClass |
getAssociatedClass()
Get Java class associated with the type
|
Optional<Autocast<?,?>> |
getAutocast(Type to)
Get autocast for the given type
|
Collection<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
|
<T extends ExecutableProperty> |
getProperties(Class<T> propertyType)
Get properties of the given type
|
State |
getState()
Get state of type
|
io.vavr.control.Option<Type> |
getSuperclass()
Get super class
|
Type |
getType()
Get associated type
|
io.vavr.control.Option<TypeLoader> |
getTypeLoader()
Get loader that loaded this type
|
int |
hashCode() |
void |
initialize(TypeLoader typeLoader)
Execute all registered initializers
|
boolean |
isArray()
Check if the type represents array type
|
boolean |
isAssignableFrom(@Nullable Type to)
Check if current declaration is assignable from the given declaration
|
boolean |
isInitialized()
Check if the type has been initialized
|
Type |
toArray(TypeLoader loader)
Get type to the array type of this type
|
String |
toString() |
getLocation, getSimpleName, getVisibility, isNativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, getSimpleNamegetLocation, getVisibility, isNativeprotected final Module module
protected final String model
protected final State state
protected final DynamicClass associated
protected final Collection<Type> bases
protected final List<Initializer<Type>> initializers
protected final Fields fields
protected final Constructors constructors
protected final Methods methods
protected TypeLoader typeLoader
public PandaType(PandaTypeMetadata<?,?> metadata)
public void initialize(TypeLoader typeLoader)
Typeinitialize in interface Typepublic void addBase(Type baseType)
Typepublic void addAutocast(Type to, Autocast<?,?> autocast)
TypeaddAutocast in interface Typeto - the type to cast toautocast - the autocastpublic void addInitializer(Initializer<Type> staticInitializer)
TypeaddInitializer in interface TypestaticInitializer - the static initializer to addpublic Type toArray(TypeLoader loader)
Typepublic boolean isAssignableFrom(@Nullable
@Nullable Type to)
TypeisAssignableFrom in interface Typeto - to compare withpublic boolean isArray()
Typepublic boolean isInitialized()
TypeisInitialized in interface Typepublic <T extends ExecutableProperty> Optional<Properties<T>> getProperties(Class<T> propertyType)
TypegetProperties in interface TypeT - generic type that represents the property typepropertyType - the property classpublic Optional<Autocast<?,?>> getAutocast(Type to)
TypegetAutocast in interface Typeto - the type to search forpublic Methods getMethods()
TypegetMethods in interface Typepublic Fields getFields()
Typepublic Constructors getConstructors()
TypegetConstructors in interface Typepublic Collection<Type> getBases()
Typepublic io.vavr.control.Option<Type> getSuperclass()
TypegetSuperclass in interface Typepublic String getModel()
Typepublic DynamicClass getAssociatedClass()
TypegetAssociatedClass in interface Typepublic io.vavr.control.Option<TypeLoader> getTypeLoader()
TypegetTypeLoader in interface Typepublic static <T> PandaTypeMetadata<?,?> builder()
Copyright © 2020. All rights reserved.