Modifier and Type | Method and Description |
---|---|
TypeReference |
AbstractCodeGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AdapterInterfacesGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AbstractAtGeneratedGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
CallbackInterfacesGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
DevkitInterfacesGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AbstractExpressionLanguageGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
TypeReference |
LicenseCheckerGenerator.ref(Class<?> clazz) |
protected TypeReference |
AbstractLicenseAdapterGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AbstractTransformerResolverGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AbstractRestClientGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBeanDefinitionParsersGenerator.generateParseNestedProcessor(GeneratedBlock block,
GeneratedVariable element,
GeneratedVariable parserContext,
GeneratedVariable builder,
String fieldName,
boolean skipElement,
boolean isList,
TypeReference factoryBean) |
Modifier and Type | Class and Description |
---|---|
class |
GeneratedClass
A generated Java class/interface/enum/....
|
class |
NullType
Special class object that represents the type of "null".
|
class |
TypeVariable
Type variable used to declare generics.
|
Modifier and Type | Method and Description |
---|---|
TypeReference |
TypeVariable._extends()
Returns the class bound of this variable.
|
abstract TypeReference |
TypeReference._extends()
Gets the super class of this class.
|
TypeReference |
NullType._extends() |
TypeReference |
GeneratedClass._extends()
Returns the class extended by this class.
|
TypeReference |
TypeReference.array() |
abstract TypeReference |
Type.array()
Create an array type of this type.
|
TypeReference |
PrimitiveType.array() |
TypeReference |
TypeReference.array(GeneratedExpression size) |
TypeReference |
TypeReference.boxify()
Deprecated.
calling this method from
TypeReference
would be meaningless, since it's always guaranteed to
return this. |
abstract TypeReference |
Type.boxify()
If this class is a primitive type, return the boxed class.
|
TypeReference |
PrimitiveType.boxify()
Obtains the wrapper class for this primitive type.
|
TypeReference |
CodeModel.directClass(String name)
Creates a dummy, unknown
TypeReference that represents a given name. |
TypeReference |
TypeReference.erasure() |
TypeReference |
GeneratedAnnotationUse.getAnnotationClass() |
TypeReference |
TypeReference.getBaseClass(Class<?> baseType) |
TypeReference |
TypeReference.getBaseClass(TypeReference baseType)
Gets the parameterization of the given base type.
|
TypeReference |
PrimitiveType.getWrapperClass()
Deprecated.
|
TypeReference[] |
GeneratedClass.listClasses()
Returns all the nested classes defined in this class.
|
TypeReference |
TypeReference.narrow(Class<?>... clazz) |
TypeReference |
TypeReference.narrow(Class<?> clazz)
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
TypeReference |
TypeReference.narrow(List<? extends TypeReference> clazz) |
TypeReference |
TypeReference.narrow(String generify) |
TypeReference |
TypeReference.narrow(Type type) |
TypeReference |
TypeReference.narrow(TypeReference... clazz) |
TypeReference |
TypeReference.narrow(TypeReference clazz)
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
TypeReference |
TypeReference.outer()
Returns the class in which this class is nested, or null if
this is a top-level class.
|
TypeReference |
GeneratedClass.outer() |
TypeReference |
CodeModel.ref(Class<?> clazz)
Obtains a reference to an existing class from its Class object.
|
TypeReference |
GeneratedPackage.ref(String name)
Reference a class within this package.
|
protected TypeReference |
TypeVariable.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
protected abstract TypeReference |
TypeReference.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings)
Substitutes the type variables with their actual arguments.
|
protected TypeReference |
NullType.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
protected TypeReference |
GeneratedClass.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
TypeReference |
TypeReference.wildcard()
Create "? extends T" from T.
|
TypeReference |
CodeModel.wildcard()
Gets a
TypeReference representation for "?",
which is equivalent to "? extends Object". |
Modifier and Type | Method and Description |
---|---|
Iterator<TypeReference> |
TypeVariable._implements()
Returns the interface bounds of this variable.
|
abstract Iterator<TypeReference> |
TypeReference._implements()
Iterates all super interfaces directly implemented by
this class/interface.
|
Iterator<TypeReference> |
NullType._implements() |
Iterator<TypeReference> |
GeneratedClass._implements()
Returns an iterator that walks the nested classes defined in this
class.
|
List<TypeReference> |
TypeReference.getTypeParameters()
If this class is parameterized, return the type parameter of the given index.
|
Modifier and Type | Method and Description |
---|---|
GeneratedCatchBlock |
GeneratedTry._catch(TypeReference exception) |
GeneratedClass |
GeneratedPackage._class(int modifiers,
String name,
TypeReference _extends)
Adds a public class to this package.
|
GeneratedClass |
GeneratedPackage._class(String name,
TypeReference _extends)
Adds a public class to this package.
|
GeneratedClass |
GeneratedPackage._class(String name,
TypeReference _extends,
Class<?>[] _implements)
Adds a public class to this package.
|
GeneratedClass |
GeneratedClass._extends(TypeReference superClass)
This class extends the specifed class.
|
GeneratedClass |
GeneratedClass._implements(TypeReference iface)
This class implements the specifed interface.
|
static GeneratedInvocation |
ExpressionFactory._new(TypeReference c) |
GeneratedMethod |
GeneratedMethod._throws(TypeReference exception)
Add an exception to the list of exceptions that this
method may throw.
|
CommentPart |
GeneratedJavaDocComment.addThrows(TypeReference exception)
add an @throws tag to the javadoc
|
GeneratedAnnotationUse |
GeneratedVariable.annotate(TypeReference clazz)
Adds an annotation to this variable.
|
GeneratedAnnotationUse |
GeneratedPackage.annotate(TypeReference clazz) |
GeneratedAnnotationUse |
GeneratedMethod.annotate(TypeReference clazz)
Adds an annotation to this variable.
|
GeneratedAnnotationUse |
GeneratedClass.annotate(TypeReference clazz)
Adding ability to annotate a class
|
GeneratedAnnotationUse |
EnumConstant.annotate(TypeReference clazz)
Adds an annotation to this variable.
|
GeneratedAnnotationUse |
AnnotationArrayMember.annotate(TypeReference clazz)
Adds a new annotation to the array.
|
GeneratedAnnotationUse |
Annotable.annotate(TypeReference clazz)
Adds an annotation to this program element.
|
GeneratedClass |
CodeModel.anonymousClass(TypeReference baseType)
Creates a new anonymous class.
|
TypeVariable |
TypeVariable.bound(TypeReference c)
Adds a bound to this variable.
|
TypeVariable |
Generifiable.generify(String name,
TypeReference bound)
Adds a new type variable to this declaration with a bound.
|
TypeVariable |
GeneratedClass.generify(String name,
TypeReference bound) |
TypeReference |
TypeReference.getBaseClass(TypeReference baseType)
Gets the parameterization of the given base type.
|
boolean |
TypeReference.isAssignableFrom(TypeReference derived)
Checks the relationship between two classes.
|
TypeReference |
TypeReference.narrow(TypeReference... clazz) |
TypeReference |
TypeReference.narrow(TypeReference clazz)
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
GeneratedClass |
CodeModel.newAnonymousClass(TypeReference baseType)
Deprecated.
The naming convention doesn't match the rest of the CodeModel.
Use
CodeModel.anonymousClass(TypeReference) instead. |
void |
GeneratedPackage.remove(TypeReference c)
Removes a class from this package.
|
GeneratedInvocation |
GeneratedBlock.staticInvoke(TypeReference type,
String method)
Creates a static invocation statement.
|
Formatter |
Formatter.t(TypeReference type)
Print a type name.
|
Modifier and Type | Method and Description |
---|---|
TypeReference |
TypeReference.narrow(List<? extends TypeReference> clazz) |
protected TypeReference |
TypeVariable.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
protected abstract TypeReference |
TypeReference.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings)
Substitutes the type variables with their actual arguments.
|
protected TypeReference |
NullType.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
protected TypeReference |
GeneratedClass.substituteParams(TypeVariable[] variables,
List<TypeReference> bindings) |
Modifier and Type | Method and Description |
---|---|
TypeReference |
StaticJavaFile.getJClass()
Returns a class object that represents a statically generated code.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<TypeReference> |
ClassNameComparator.theInstance |
Modifier and Type | Method and Description |
---|---|
int |
ClassNameComparator.compare(TypeReference l,
TypeReference r) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
AbstractOAuthAdapterGenerator.ref(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractOAuthAdapterGenerator.generateCatchAndReThrow(GeneratedTry tryStatement,
Class<? extends Exception> exceptionToCatch,
TypeReference exceptionToThrow) |
protected GeneratedClass |
AbstractOAuthAdapterGenerator.getOAuthAdapterClass(Module module,
String classSuffix,
TypeReference interf) |
Modifier and Type | Method and Description |
---|---|
protected TypeReference |
OAuth1ManagerGenerator.getExtendManagerClass() |
protected abstract TypeReference |
AbstractOAuthManagerGenerator.getExtendManagerClass()
Returns the concrete class to be used a superclass of the generated Manager (either for OAuth1 or OAuth2)
|
protected TypeReference |
AbstractOAuth2ManagerGenerator.getExtendManagerClass() |
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.