public class TypeDef extends ModifierSupport
| Modifier and Type | Field and Description |
|---|---|
static TypeDef |
OBJECT |
static ClassRef |
OBJECT_REF |
ABSTRACT, FINAL, PRIVATE, PROTECTED, PUBLIC, STATIC, SYNCHRONIZEDALSO_IMPORT, INIT| Constructor and Description |
|---|
TypeDef(Kind kind,
String packageName,
String name,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
TypeDef outerType,
List<TypeDef> innerTypes,
int modifiers,
Map<AttributeKey,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<AnnotationRef> |
getAnnotations() |
List<Method> |
getConstructors() |
List<ClassRef> |
getExtendsList() |
String |
getFullyQualifiedName()
Returns the fully qualified name of the type.
|
List<ClassRef> |
getImplementsList() |
Set<String> |
getImports() |
List<TypeDef> |
getInnerTypes() |
Kind |
getKind() |
List<Method> |
getMethods() |
String |
getName() |
TypeDef |
getOuterType() |
String |
getPackageName() |
List<TypeParamDef> |
getParameters() |
List<Property> |
getProperties() |
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(Collection<TypeRef> arguments)
Creates a
ClassRef for the current definition with the specified arguments. |
ClassRef |
toReference(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. |
String |
toString() |
ClassRef |
toUnboundedReference()
Creates a
ClassRef without bounds. |
getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isTransientgetAttribute, getAttributes, hasAttributepublic TypeDef(Kind kind, String packageName, String name, List<AnnotationRef> annotations, List<ClassRef> extendsList, List<ClassRef> implementsList, List<TypeParamDef> parameters, List<Property> properties, List<Method> constructors, List<Method> methods, TypeDef outerType, List<TypeDef> innerTypes, int modifiers, Map<AttributeKey,Object> attributes)
public String getFullyQualifiedName()
public boolean isAssignableFrom(TypeDef o)
public Kind getKind()
public List<AnnotationRef> getAnnotations()
public String getPackageName()
public String getName()
public List<TypeParamDef> getParameters()
public TypeDef getOuterType()
public boolean isClass()
public boolean isInterface()
public boolean isEnum()
public boolean isAnnotation()
public 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(List<TypeRef> arguments)
ClassRef for the current definition with the specified arguments.arguments - The arguments to be passed to the reference.public ClassRef toReference(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.Copyright © 2016. All Rights Reserved.