public class ParameterTypeContext extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowMixedTypes() |
ParameterTypeContext |
allowMixedTypes(boolean value) |
ParameterTypeContext |
annotate(AnnotatedElement element) |
AnnotatedElement |
annotatedElement()
Deprecated.
This will likely go away when languages whose compilers
and interpreters produce class files that support annotations on type
uses.
|
AnnotatedType |
annotatedType() |
ParameterTypeContext |
arrayComponentContext() |
List<Weighted<Generator<?>>> |
explicitGenerators() |
static ParameterTypeContext |
forClass(Class<?> clazz) |
static ParameterTypeContext |
forField(Field field) |
static ParameterTypeContext |
forParameter(Parameter parameter) |
static ParameterTypeContext |
forParameter(Parameter parameter,
ru.vyarus.java.generics.resolver.context.MethodGenericsContext generics) |
Class<?> |
getRawClass() |
List<org.javaruntype.type.TypeParameter<?>> |
getTypeParameters() |
boolean |
isArray() |
boolean |
isEnum() |
ParameterTypeContext |
methodReturnTypeContext(Method method)
Gives a context for generation of the return type of a lambda method.
|
String |
name() |
boolean |
topLevel()
Deprecated.
This will likely go away when languages whose compilers
and interpreters produce class files that support annotations on type
uses.
|
Type |
type() |
List<ParameterTypeContext> |
typeParameterContexts(SourceOfRandomness random) |
public static ParameterTypeContext forClass(Class<?> clazz)
public static ParameterTypeContext forField(Field field)
public static ParameterTypeContext forParameter(Parameter parameter)
public static ParameterTypeContext forParameter(Parameter parameter, ru.vyarus.java.generics.resolver.context.MethodGenericsContext generics)
public ParameterTypeContext annotate(AnnotatedElement element)
public ParameterTypeContext allowMixedTypes(boolean value)
public boolean allowMixedTypes()
public ParameterTypeContext methodReturnTypeContext(Method method)
method - method whose return type we want to resolvepublic String name()
public AnnotatedType annotatedType()
public Type type()
@Deprecated public AnnotatedElement annotatedElement()
@Deprecated public boolean topLevel()
public ParameterTypeContext arrayComponentContext()
public boolean isArray()
public Class<?> getRawClass()
public boolean isEnum()
public List<org.javaruntype.type.TypeParameter<?>> getTypeParameters()
public List<ParameterTypeContext> typeParameterContexts(SourceOfRandomness random)
Copyright © 2020. All rights reserved.