Top Fields Constructors Methods
io.vertx.codegen.type

public Class ParameterizedTypeInfo

extends TypeInfo
Class Inheritance
Imports
java.util.Collection, .List, java.util.stream.Collectors

Author
Julien Viet

Field Summary

Modifier and TypeField and Description
pack-priv final List<TypeInfo>
pack-priv final boolean
pack-priv final ClassTypeInfo

Constructor Summary

AccessConstructor and Description
public
ParameterizedTypeInfo(ClassTypeInfo raw, boolean nullable, List<TypeInfo> args)

Method Summary

Modifier and TypeMethod and Description
public void
collectImports(Collection<ClassTypeInfo>
the imports
imports
)

Overrides io.vertx.codegen.type.TypeInfo.collectImports.

Collect the import fqcn needed by this type.

public boolean
equals(Object
the reference object with which to compare.
obj
)

Implements abstract io.vertx.codegen.type.TypeInfo.equals.

Indicates whether some other object is "equal to" this one.

public String
format(boolean
true when class fqcn should be used, otherwise simple names will be used
qualified
)

Implements abstract io.vertx.codegen.type.TypeInfo.format.

Renders the type name.

public TypeInfo

Returns:

a specific type argument
getArg
(int
the type argument index
index
)

public List<TypeInfo>

Returns:

the type arguments
getArgs
()

public TypeInfo
public ClassKind
public ClassTypeInfo
public boolean
public boolean
public String
Inherited from io.vertx.codegen.type.TypeInfo:
getDataObjectgetNamegetSimpleNamehashCodeisDataObjectHolderisVariableisVoidtoStringtranslateName

Field Detail

argsback to summary
pack-priv final List<TypeInfo> args
nullableback to summary
pack-priv final boolean nullable
rawback to summary
pack-priv final ClassTypeInfo raw

Constructor Detail

ParameterizedTypeInfoback to summary
public ParameterizedTypeInfo(ClassTypeInfo raw, boolean nullable, List<TypeInfo> args)

Method Detail

collectImportsback to summary
public void collectImports(Collection<ClassTypeInfo> imports)

Overrides io.vertx.codegen.type.TypeInfo.collectImports.

Doc from io.vertx.codegen.type.TypeInfo.collectImports.

Collect the import fqcn needed by this type.

Parameters
imports:Collection<ClassTypeInfo>

the imports

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Implements abstract io.vertx.codegen.type.TypeInfo.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
obj:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
formatback to summary
public String format(boolean qualified)

Implements abstract io.vertx.codegen.type.TypeInfo.format.

Doc from io.vertx.codegen.type.TypeInfo.format.

Renders the type name.

Parameters
qualified:boolean

true when class fqcn should be used, otherwise simple names will be used

Returns:String

the representation of the type

Annotations
@Override
getArgback to summary
public TypeInfo getArg(int index)
Parameters
index:int

the type argument index

Returns:TypeInfo

a specific type argument

getArgsback to summary
public List<TypeInfo> getArgs()
Returns:List<TypeInfo>

the type arguments

getErasedback to summary
public TypeInfo getErased()

Overrides io.vertx.codegen.type.TypeInfo.getErased.

Returns:TypeInfo

Doc from io.vertx.codegen.type.TypeInfo.getErased.

the erased type of this type

Annotations
@Override
getKindback to summary
public ClassKind getKind()

Implements abstract io.vertx.codegen.type.TypeInfo.getKind.

Returns:ClassKind

Doc from io.vertx.codegen.type.TypeInfo.getKind.

the class kind this type resolves to

Annotations
@Override
getRawback to summary
public ClassTypeInfo getRaw()

Overrides io.vertx.codegen.type.TypeInfo.getRaw.

Returns:ClassTypeInfo

Doc from io.vertx.codegen.type.TypeInfo.getRaw.

the corresponding raw type or null

isNullableback to summary
public boolean isNullable()

Overrides io.vertx.codegen.type.TypeInfo.isNullable.

Returns:boolean

Doc from io.vertx.codegen.type.TypeInfo.isNullable.

true if the type is nullable

Annotations
@Override
isParameterizedback to summary
public boolean isParameterized()

Overrides io.vertx.codegen.type.TypeInfo.isParameterized.

Returns:boolean

Doc from io.vertx.codegen.type.TypeInfo.isParameterized.

true if the type is a parameterized type

Annotations
@Override
translateNameback to summary
public String translateName(TypeNameTranslator translator)

Overrides io.vertx.codegen.type.TypeInfo.translateName.

Annotations
@Override