| Modifier and Type | Method and Description |
|---|---|
static Expression |
ExpressionUtils.equalize(Expression expression,
Type target)
Prepare expression to be in the same type as the requested type (supports autocasts)
|
| Modifier and Type | Method and Description |
|---|---|
Type |
Module.add(Type type)
Add reference to type to the module
|
Type |
TypeLoader.load(Type type)
Load type by this loader
|
default Type |
ModuleResource.requireType(Class<?> associatedClass)
Get type associated with the given class.
|
static Type |
ModuleLoaderUtils.requireType(Context context,
Class<?> associatedClass) |
static Type |
ModuleLoaderUtils.requireType(Context context,
String name) |
default Type |
ModuleResource.requireType(String name)
Get type with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Option<Type> |
ModuleResource.forClass(Class<?> associatedClass)
Find reference using the given class
|
io.vavr.control.Option<Type> |
ModuleResource.forName(CharSequence typeName)
Find reference using the given name
|
Collection<Type> |
Module.getAllTypes()
Get all types (also from submodules)
Iterable is used instead of collection because of the performance reasons.
|
Collection<Type> |
Module.getTypes()
Get types that belongs to the module
|
Collection<Map.Entry<String,Type>> |
TypesMap.getTypes()
Get collection of entries that contains types
|
| Modifier and Type | Method and Description |
|---|---|
Type |
Module.add(Type type)
Add reference to type to the module
|
boolean |
Imports.importType(String name,
Type type)
Import reference
|
Type |
TypeLoader.load(Type type)
Load type by this loader
|
boolean |
TypesMap.put(Type type)
Add reference to map
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Initializer<T extends Type> |
| Modifier and Type | Method and Description |
|---|---|
Type[] |
ExecutableProperty.getParameterTypes()
Get references to types of executable's parameters
|
Type |
ExecutableProperty.getReturnType()
Get return type of executable
|
Type |
Properties.getType()
Get associated type
|
Type |
Property.getType()
Get associated type
|
Type |
Typed.getType()
Get associated type
|
Type |
Type.toArray(TypeLoader typeLoader)
Get type to the array type of this type
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends Type> |
Type.getBases()
Get supertypes of type
|
io.vavr.control.Option<Type> |
Type.getSuperclass()
Get super class
|
| Modifier and Type | Method and Description |
|---|---|
void |
Type.addAutocast(Type to,
Autocast<?,?> autocast)
Support automatic casting to other type
|
void |
Type.addBase(Type baseType)
Inherit the given type
|
DynamicClass |
DynamicClass.append(Type type) |
R |
Autocast.cast(Type originalType,
T object,
Type resultType) |
Optional<Autocast<?,?>> |
Type.getAutocast(Type to)
Get autocast for the given type
|
io.vavr.control.Option<TypeConstructor> |
Constructors.getConstructor(Type[] types)
Get constructor that fits to the given types
|
io.vavr.control.Option<TypeMethod> |
Methods.getMethod(String name,
Type[] parameterTypes)
Get method with the given name and types
|
boolean |
Type.isAssignableFrom(@Nullable Type type)
Check if current declaration is assignable from the given declaration
|
static boolean |
TypeModels.isClass(Type type) |
static boolean |
TypeModels.isInterface(Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
Type.addInitializer(Initializer<Type> staticInitializer)
Add static initializer
|
| Modifier and Type | Method and Description |
|---|---|
default Type |
Accessor.getType() |
| Modifier and Type | Method and Description |
|---|---|
Type |
AbstractDynamicExpression.getReturnType() |
Type |
DynamicExpression.getReturnType() |
Type |
ThisExpression.getReturnType() |
Type |
PandaExpression.getType() |
Type |
StaticExpression.getType() |
| Modifier and Type | Method and Description |
|---|---|
static Expression |
ThisExpression.of(Type type) |
| Constructor and Description |
|---|
AbstractDynamicExpression(Type returnType) |
PandaDynamicExpression(Type type,
ExpressionEvaluator evaluator) |
PandaExpression(ExpressionValueType type,
Type returnType,
ExpressionEvaluator evaluator,
Object value) |
PandaExpression(Type returnType,
Object value) |
StaticExpression(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Type |
PandaModule.add(Type type) |
static Type |
PandaImportsUtils.getTypeOrThrow(Context context,
Snippetable nameSource,
String message,
String note) |
static Type |
PandaImportsUtils.getTypeOrThrow(Context context,
String className,
@Nullable Snippet source) |
Type |
PandaTypeLoader.load(Type type) |
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Option<Type> |
PandaImports.forClass(@Nullable Class<?> associatedClass)
Imports does not support this method
|
io.vavr.control.Option<Type> |
PandaModule.forClass(Class<?> associatedClass) |
io.vavr.control.Option<Type> |
PandaTypeLoader.forClass(Class<?> associatedClass) |
io.vavr.control.Option<Type> |
PandaImports.forName(CharSequence name) |
io.vavr.control.Option<Type> |
PandaModule.forName(CharSequence typeName) |
io.vavr.control.Option<Type> |
PandaTypeLoader.forName(CharSequence typeName) |
Collection<Type> |
PandaModule.getAllTypes() |
Collection<Type> |
PandaModule.getTypes() |
| Modifier and Type | Method and Description |
|---|---|
Type |
PandaModule.add(Type type) |
boolean |
PandaImports.importType(String name,
Type type) |
Type |
PandaTypeLoader.load(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Type |
PandaVariableData.getType() |
| Constructor and Description |
|---|
PandaVariable(int pointer,
Type type,
String name,
boolean mutable,
boolean nillable) |
PandaVariableData(Type type,
String name) |
PandaVariableData(Type type,
String name,
boolean mutable,
boolean nillable) |
| Modifier and Type | Class and Description |
|---|---|
class |
PandaType |
| Modifier and Type | Field and Description |
|---|---|
protected Type |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder.returnType |
protected Type |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder.type |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Type,Autocast<?,?>> |
PandaType.autocasts |
protected Collection<Type> |
PandaType.bases |
protected List<Initializer<Type>> |
PandaType.initializers |
static ContextComponent<Type> |
TypeComponents.PROTOTYPE |
| Modifier and Type | Method and Description |
|---|---|
static Type |
PandaTypeUtils.generateOf(Module module,
Class<?> type) |
static Type |
PandaTypeUtils.generateOf(Module module,
String name,
Class<?> type) |
Type[] |
AbstractExecutableProperty.getParameterTypes() |
Type |
AbstractExecutableProperty.getReturnType() |
Type |
AutocastDynamicExpression.getReturnType() |
Type |
AbstractExecutableProperty.getType() |
Type |
PandaType.getType() |
Type |
TypeExecutableExpression.getType() |
Type |
TypeScope.getType() |
static Type |
PandaTypeUtils.of(Module module,
Class<?> type) |
static Type |
PandaTypeUtils.of(Module module,
String name,
Class<?> javaType) |
Type |
PandaType.toArray(TypeLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Type> |
PandaType.getBases() |
io.vavr.control.Option<Type> |
PandaType.getSuperclass() |
| Modifier and Type | Method and Description |
|---|---|
void |
PandaType.addAutocast(Type to,
Autocast<?,?> autocast) |
void |
PandaType.addBase(Type baseType) |
Optional<Autocast<?,?>> |
PandaType.getAutocast(Type to) |
boolean |
PandaType.isAssignableFrom(@Nullable Type type) |
T |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder.returnType(Type returnType) |
T |
AbstractExecutableProperty.PandaParametrizedExecutableBuilder.type(Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
PandaType.addInitializer(Initializer<Type> staticInitializer) |
| Constructor and Description |
|---|
AutocastDynamicExpression(Expression original,
Type to,
Autocast<?,?> autocast) |
PandaPropertyParameter(int parameterIndex,
Type type,
String name) |
PandaPropertyParameter(int parameterIndex,
Type type,
String name,
boolean varargs,
boolean mutable,
boolean nillable) |
TypeScope(Location location,
Type type) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType |
| Modifier and Type | Method and Description |
|---|---|
static Type |
ArrayClassTypeFetcher.getArrayOf(TypeLoader typeLoader,
Type baseType,
int dimensions) |
Type |
ArrayType.getArrayType() |
| Modifier and Type | Method and Description |
|---|---|
static io.vavr.control.Option<Type> |
ArrayClassTypeFetcher.fetch(TypeLoader typeLoader,
Class<?> type) |
static io.vavr.control.Option<Type> |
ArrayClassTypeFetcher.fetch(TypeLoader typeLoader,
String typeName) |
| Modifier and Type | Method and Description |
|---|---|
static Type |
ArrayClassTypeFetcher.getArrayOf(TypeLoader typeLoader,
Type baseType,
int dimensions) |
| Constructor and Description |
|---|
ArrayType(Module module,
Class<?> associated,
Type type) |
ArrayType(Module module,
String name,
Class<?> associated,
Type type) |
| Modifier and Type | Field and Description |
|---|---|
protected Type |
PandaDynamicClass.type |
| Modifier and Type | Method and Description |
|---|---|
DynamicClass |
PandaDynamicClass.append(Type toAppend) |
| Constructor and Description |
|---|
PandaDynamicClass(Type type,
Class<?> clazz) |
PandaDynamicClass(Type type,
Class<?> clazz,
String customName,
String module) |
PandaDynamicClass(Type type,
String name,
String module,
String model) |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeGeneratorManager.generate(Module module,
String name,
Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
static Type[] |
TypedUtils.toTypes(Collection<? extends Typed> typed) |
static Type[] |
ParameterUtils.toTypes(Expression... expressions) |
static Type[] |
TypedUtils.toTypes(Typed... typed) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
StateComparator.requireInheritance(Context context,
Type type,
Snippetable source) |
static boolean |
StateComparator.requireInstantiation(Context context,
Type type,
Snippetable source) |
| Modifier and Type | Method and Description |
|---|---|
static ExpressionResult |
ExpressionParserUtils.toExpressionResult(Type type,
Object value) |
Copyright © 2020. All rights reserved.