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, SYNCHRONIZED
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT
Constructor and Description |
---|
TypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
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) |
getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isTransient
getAttribute, getAttributes, hasAttribute
public static TypeDef OBJECT
public static TypeDef ENUM
public static ClassRef OBJECT_REF
public static ClassRef ENUM_REF
public TypeDef(Kind kind, String packageName, String name, List<String> comments, 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 © 2019 JBoss by Red Hat. All rights reserved.