public final class DescriptionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Type |
resolve(ImportBuilder importer,
TypeDescription type)
Returns the resolved type.
|
static Annotation |
resolveAnnotation(ImportBuilder importer,
AnnotationDescription annotation)
Returns the resolved annotation.
|
static Expression |
resolveConstant(ImportBuilder importer,
ValueDescription constant)
Returns the resolved constant value.
|
static Expression |
resolveValue(ImportBuilder importer,
ValueDescription value)
Returns the resolved value.
|
static ClassDescription |
toDescription(CompileEnvironment environment,
DeclaredType type)
Returns the description.
|
static ClassDescription |
toDescription(CompileEnvironment environment,
TypeElement element)
Returns the description.
|
static TypeDescription |
toDescription(CompileEnvironment environment,
TypeMirror type)
Returns the description.
|
public static TypeDescription toDescription(CompileEnvironment environment, TypeMirror type)
environment
- the current environmenttype
- the target typepublic static ClassDescription toDescription(CompileEnvironment environment, TypeElement element)
environment
- the current environmentelement
- the target elementpublic static ClassDescription toDescription(CompileEnvironment environment, DeclaredType type)
environment
- the current environmenttype
- the target typepublic static Type resolve(ImportBuilder importer, TypeDescription type)
importer
- the current import buildertype
- the target class descriptionpublic static Expression resolveValue(ImportBuilder importer, ValueDescription value)
importer
- the current import buildervalue
- the target constant valuepublic static Expression resolveConstant(ImportBuilder importer, ValueDescription constant)
importer
- the current import builderconstant
- the target constant valuepublic static Annotation resolveAnnotation(ImportBuilder importer, AnnotationDescription annotation)
importer
- the current import builderannotation
- the target annotation descriptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.