public final class JTypeName extends Object
JType into TypeName| Modifier and Type | Field and Description |
|---|---|
static com.squareup.javapoet.WildcardTypeName |
DEFAULT_WILDCARD
Default wildcard : ?
|
| Modifier and Type | Method and Description |
|---|---|
static com.squareup.javapoet.ParameterizedTypeName |
parameterizedName(Class clazz,
com.google.gwt.core.ext.typeinfo.JType... types)
parameterizedName
|
static com.squareup.javapoet.TypeName |
rawName(boolean boxed,
com.google.gwt.core.ext.typeinfo.JType type)
rawName
|
static com.squareup.javapoet.TypeName |
rawName(com.google.gwt.core.ext.typeinfo.JType type)
rawName
|
static com.squareup.javapoet.TypeName |
typeName(boolean boxed,
com.google.gwt.core.ext.typeinfo.JType type)
typeName
|
static com.squareup.javapoet.TypeName |
typeName(com.google.gwt.core.ext.typeinfo.JType type)
typeName
|
static com.squareup.javapoet.TypeVariableName |
typeVariableName(com.google.gwt.core.ext.typeinfo.JTypeParameter type)
typeVariableName
|
public static final com.squareup.javapoet.WildcardTypeName DEFAULT_WILDCARD
public static com.squareup.javapoet.TypeName typeName(com.google.gwt.core.ext.typeinfo.JType type)
typeName
type - the typeTypeNamepublic static com.squareup.javapoet.TypeName typeName(boolean boxed,
com.google.gwt.core.ext.typeinfo.JType type)
typeName
boxed - true if the primitive should be boxed. Useful when use in a parameterized type.type - the typeTypeNamepublic static com.squareup.javapoet.ParameterizedTypeName parameterizedName(Class clazz, com.google.gwt.core.ext.typeinfo.JType... types)
parameterizedName
clazz - the raw typetypes - the parametersParameterizedTypeNamepublic static com.squareup.javapoet.TypeName rawName(com.google.gwt.core.ext.typeinfo.JType type)
rawName
type - type to convertTypeName without parameterpublic static com.squareup.javapoet.TypeName rawName(boolean boxed,
com.google.gwt.core.ext.typeinfo.JType type)
rawName
boxed - true if the primitive should be boxed. Useful when use in a parameterized type.type - type to convertTypeName without parameterpublic static com.squareup.javapoet.TypeVariableName typeVariableName(com.google.gwt.core.ext.typeinfo.JTypeParameter type)
typeVariableName
type - type to convertTypeVariableNameCopyright © 2017. All Rights Reserved.