org.jboss.reflect.spi
Interface ClassInfo

All Superinterfaces:
AnnotatedInfo, Cloneable, org.jboss.util.JBossInterface, ModifierInfo, Serializable, TypeInfo
All Known Subinterfaces:
AnnotationInfo, ArrayInfo, EnumInfo, InterfaceInfo
All Known Implementing Classes:
AnnotationInfoImpl, ArrayInfoImpl, ClassInfoImpl, DelegateClassInfo, EnumInfoImpl, InterfaceInfoImpl, JavassistAnnotationInfo, JavassistArrayInfoImpl, JavassistEnumInfo, JavassistTypeInfo, NumberInfo, ParameterizedArrayInfo, ParameterizedClassInfo, ReflectClassInfoImpl

public interface ClassInfo
extends AnnotatedInfo, ModifierInfo, TypeInfo

Class info

Author:
Bill Burke, Adrian Brock

Field Summary
 
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC
 
Method Summary
 TypeInfo[] getActualTypeArguments()
          Get the actual type parameters
 TypeInfo getComponentType()
          Get the component type if it is a collection or an array
 ConstructorInfo getDeclaredConstructor(TypeInfo[] parameters)
          Get a declared constructor
 ConstructorInfo[] getDeclaredConstructors()
          Get the declared constructors
 FieldInfo getDeclaredField(String name)
          Get the declared field
 FieldInfo[] getDeclaredFields()
          Get the declared fields
 MethodInfo getDeclaredMethod(String name, TypeInfo[] parameters)
          Get the declared method
 MethodInfo[] getDeclaredMethods()
          Get the declared methods
 InterfaceInfo[] getGenericInterfaces()
          Get the generic interfaces
 ClassInfo getGenericSuperclass()
          Get the generic super class
 InterfaceInfo[] getInterfaces()
          Get the interfaces
 TypeInfo getKeyType()
          Get the key type if it is a map
 String getName()
          Get the class name
 TypeInfo getOwnerType()
          Get the owner type
 PackageInfo getPackage()
          Get the package
 ClassInfo getRawType()
          Get the raw type
 ClassInfo getSuperclass()
          Get the super class
 TypeInfo getValueType()
          Get the value type if it is a map
 boolean isInterface()
          Whether it is an interface
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo
getModifiers, isPublic, isStatic, isVolatile
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Method Detail

getName

String getName()
Get the class name

Specified by:
getName in interface TypeInfo
Returns:
the name

isInterface

boolean isInterface()
Whether it is an interface

Returns:
true when an interface

getInterfaces

InterfaceInfo[] getInterfaces()
Get the interfaces

Returns:
the interfaces

getGenericInterfaces

InterfaceInfo[] getGenericInterfaces()
Get the generic interfaces

Returns:
the generic interfaces

getDeclaredMethod

MethodInfo getDeclaredMethod(String name,
                             TypeInfo[] parameters)
Get the declared method

Parameters:
name - the method name
parameters - the parameters
Returns:
the method info

getDeclaredMethods

MethodInfo[] getDeclaredMethods()
Get the declared methods

Returns:
the methods

getDeclaredField

FieldInfo getDeclaredField(String name)
Get the declared field

Parameters:
name - the field name
Returns:
the field

getDeclaredFields

FieldInfo[] getDeclaredFields()
Get the declared fields

Returns:
the fields

getDeclaredConstructors

ConstructorInfo[] getDeclaredConstructors()
Get the declared constructors

Returns:
the constructors

getDeclaredConstructor

ConstructorInfo getDeclaredConstructor(TypeInfo[] parameters)
Get a declared constructor

Parameters:
parameters - the parameters
Returns:
the constructor

getSuperclass

ClassInfo getSuperclass()
Get the super class

Returns:
the super class

getGenericSuperclass

ClassInfo getGenericSuperclass()
Get the generic super class

Returns:
the super class

getActualTypeArguments

TypeInfo[] getActualTypeArguments()
Get the actual type parameters

Returns:
the type parameters

getRawType

ClassInfo getRawType()
Get the raw type

Returns:
the raw type

getOwnerType

TypeInfo getOwnerType()
Get the owner type

Returns:
the owner type

getComponentType

TypeInfo getComponentType()
Get the component type if it is a collection or an array

Returns:
the component type

getKeyType

TypeInfo getKeyType()
Get the key type if it is a map

Returns:
the key type

getValueType

TypeInfo getValueType()
Get the value type if it is a map

Returns:
the value type

getPackage

PackageInfo getPackage()
Get the package

Returns:
the package


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.