public class TypeDef extends ModifierSupport
| Modifier and Type | Field and Description |
|---|---|
static TypeDef |
ENUM |
static ClassRef |
ENUM_REF |
static TypeDef |
OBJECT |
static ClassRef |
OBJECT_REF |
ABSTRACT, FINAL, PRIVATE, PROTECTED, PUBLIC, STATIC, SYNCHRONIZEDALSO_IMPORT, INIT, INIT_FUNCTION, LAZY_INIT| Constructor and Description |
|---|
TypeDef(Kind kind,
java.lang.String packageName,
java.lang.String name,
java.util.List<AnnotationRef> annotations,
java.util.List<ClassRef> extendsList,
java.util.List<ClassRef> implementsList,
java.util.List<TypeParamDef> parameters,
java.util.List<Property> properties,
java.util.List<Method> constructors,
java.util.List<Method> methods,
TypeDef outerType,
java.util.List<TypeDef> innerTypes,
int modifiers,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<AnnotationRef> |
getAnnotations() |
java.util.List<Method> |
getConstructors() |
java.util.List<ClassRef> |
getExtendsList() |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of the type.
|
java.util.List<ClassRef> |
getImplementsList() |
java.util.Set<java.lang.String> |
getImports() |
java.util.List<TypeDef> |
getInnerTypes() |
Kind |
getKind() |
java.util.List<Method> |
getMethods() |
java.lang.String |
getName() |
TypeDef |
getOuterType() |
java.lang.String |
getPackageName() |
java.util.List<TypeParamDef> |
getParameters() |
java.util.List<Property> |
getProperties() |
java.util.List<ClassRef> |
getReferences() |
int |
hashCode() |
boolean |
isAnnotation() |
boolean |
isAssignableFrom(TypeDef o) |
boolean |
isClass() |
boolean |
isEnum() |
boolean |
isInterface() |
ClassRef |
toInternalReference()
Creates a
ClassRef for internal use inside the scope of the type (methods, properties
etc). |
ClassRef |
toReference(java.util.Collection<TypeRef> arguments)
Creates a
ClassRef for the current definition with the specified arguments. |
ClassRef |
toReference(java.util.List<TypeRef> arguments)
Creates a
ClassRef for the current definition with the specified arguments. |
ClassRef |
toReference(TypeRef... arguments)
Creates a
ClassRef for the current definition with the specified arguments. |
java.lang.String |
toString() |
ClassRef |
toUnboundedReference()
Creates a
ClassRef without bounds. |
getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isTransientgetAttribute, getAttributes, hasAttributepublic static TypeDef OBJECT
public static TypeDef ENUM
public static ClassRef OBJECT_REF
public static ClassRef ENUM_REF
public TypeDef(Kind kind, java.lang.String packageName, java.lang.String name, java.util.List<AnnotationRef> annotations, java.util.List<ClassRef> extendsList, java.util.List<ClassRef> implementsList, java.util.List<TypeParamDef> parameters, java.util.List<Property> properties, java.util.List<Method> constructors, java.util.List<Method> methods, TypeDef outerType, java.util.List<TypeDef> innerTypes, int modifiers, java.util.Map<AttributeKey,java.lang.Object> attributes)
public java.lang.String getFullyQualifiedName()
public boolean isAssignableFrom(TypeDef o)
public Kind getKind()
public java.util.List<AnnotationRef> getAnnotations()
public java.lang.String getPackageName()
public java.lang.String getName()
public java.util.List<ClassRef> getExtendsList()
public java.util.List<ClassRef> getImplementsList()
public java.util.List<TypeParamDef> getParameters()
public java.util.List<Property> getProperties()
public java.util.List<Method> getConstructors()
public java.util.List<Method> getMethods()
public TypeDef getOuterType()
public java.util.List<TypeDef> getInnerTypes()
public boolean isClass()
public boolean isInterface()
public boolean isEnum()
public boolean isAnnotation()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ClassRef toReference(TypeRef... arguments)
ClassRef for the current definition with the specified arguments.arguments - The arguments to be passed to the reference.public ClassRef toReference(java.util.List<TypeRef> arguments)
ClassRef for the current definition with the specified arguments.arguments - The arguments to be passed to the reference.public ClassRef toReference(java.util.Collection<TypeRef> arguments)
ClassRef for the current definition with the specified arguments.arguments - The arguments to be passed to the reference.public ClassRef toInternalReference()
ClassRef for internal use inside the scope of the type (methods, properties
etc). It uses as arguments the same 'letters' as the parameters definition.public java.util.Set<java.lang.String> getImports()
public java.util.List<ClassRef> getReferences()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.