Package org.jboss.jandex
Class ParameterizedType.Builder
- Enclosing class:
ParameterizedType
Convenient builder for
ParameterizedType.- Since:
- 3.1.0
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type.Builder
annotations, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(Class<?> clazz) Adds aClassTypeargument for the given class.addArgument(Type argument) Adds a type argument.build()Returns the built parameterized type.Sets the owner.Methods inherited from class org.jboss.jandex.Type.Builder
addAnnotation, annotationsArray, self
-
Field Details
-
arguments
-
owner
-
-
Constructor Details
-
Builder
Builder(DotName name)
-
-
Method Details
-
addArgument
Adds a type argument.- Parameters:
argument- the type argument, must not benull- Returns:
- this builder
-
addArgument
Adds aClassTypeargument for the given class.- Parameters:
clazz- the class whose type is added as a type argument, must not benull- Returns:
- this builder
-
setOwner
Sets the owner.- Parameters:
owner- the owner of the parameterized type being built, must not benull- Returns:
- this builder
- See Also:
-
build
Returns the built parameterized type.- Returns:
- the built parameterized type
-