Top Fields Constructors Methods
io.vertx.codegen.type

public Class ClassTypeInfo

extends TypeInfo
Class Inheritance
Known Direct Subclasses
io.vertx.codegen.type.EnumTypeInfo, io.vertx.codegen.type.ApiTypeInfo
Imports
io.vertx.codegen.format.CamelCase, .Case, io.vertx.codegen.Helper, .ModuleInfo, .TypeParamInfo, java.util.Collection, .Collections, .HashMap, .List

Author
Julien Viet

Field Summary

Modifier and TypeField and Description
pack-priv final DataObjectInfo
pack-priv final ClassKind
pack-priv final ModuleInfo
pack-priv final String
pack-priv final boolean
pack-priv final String
pack-priv final List<TypeParamInfo.Class>
pack-priv static final HashMap<String, ClassTypeInfo>
pack-priv final String

Constructor Summary

AccessConstructor and Description
public
ClassTypeInfo(ClassKind kind, String name, ModuleInfo module, boolean nullable, List<TypeParamInfo.Class> params, DataObjectInfo dataObject)

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 DataObjectInfo
public ClassKind
public ModuleInfo

Returns:

the optional module name only present for io.vertx.codegen.annotations.VertxGen annotated types.
getModule
()

public String

Returns:

the optional module name only present for io.vertx.codegen.annotations.VertxGen annotated types.
getModuleName
()

public String
public List<TypeParamInfo.Class>
public ClassTypeInfo
public String
public boolean
public String
translateName(String
the target language, for instance groovy
id
)

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

Translate the current type name based on the module group package name and the specified lang parameter.

public String
public String
public String
Inherited from io.vertx.codegen.type.TypeInfo:
getErasedgetNamegetSimpleNamehashCodeisDataObjectHolderisParameterizedisVariableisVoidtoString

Field Detail

dataObjectback to summary
pack-priv final DataObjectInfo dataObject
kindback to summary
pack-priv final ClassKind kind
moduleback to summary
pack-priv final ModuleInfo module
nameback to summary
pack-priv final String name
nullableback to summary
pack-priv final boolean nullable
packageNameback to summary
pack-priv final String packageName
paramsback to summary
pack-priv final List<TypeParamInfo.Class> params
PRIMITIVESback to summary
pack-priv static final HashMap<String, ClassTypeInfo> PRIMITIVES
simpleNameback to summary
pack-priv final String simpleName

Constructor Detail

ClassTypeInfoback to summary
public ClassTypeInfo(ClassKind kind, String name, ModuleInfo module, boolean nullable, List<TypeParamInfo.Class> params, DataObjectInfo dataObject)

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
getDataObjectback to summary
public DataObjectInfo getDataObject()

Overrides io.vertx.codegen.type.TypeInfo.getDataObject.

Returns:DataObjectInfo

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

the DataObjectInfo when this type can be adapted to a data object otherwise null

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

getModuleback to summary
public ModuleInfo getModule()
Returns:ModuleInfo

the optional module name only present for io.vertx.codegen.annotations.VertxGen annotated types.

getModuleNameback to summary
public String getModuleName()
Returns:String

the optional module name only present for io.vertx.codegen.annotations.VertxGen annotated types.

getPackageNameback to summary
public String getPackageName()
getParamsback to summary
public List<TypeParamInfo.Class> getParams()
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

Annotations
@Override
getSimpleNameback to summary
public String getSimpleName(Case _case)
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

translateNameback to summary
public String translateName(String id)

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

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

Translate the current type name based on the module group package name and the specified lang parameter. This has effect only for ApiTypeInfo or ParameterizedTypeInfo types.

Parameters
id:String

the target language, for instance groovy

Returns:String

the translated name

translateNameback to summary
public String translateName(TypeNameTranslator translator)

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

Annotations
@Override
translatePackageNameback to summary
public String translatePackageName(String id)
translatePackageNameback to summary
public String translatePackageName(TypeNameTranslator translator)