org.codehaus.aspectwerkz.reflect
Interface ClassInfo

All Superinterfaces:
ReflectionInfo
All Known Implementing Classes:
AsmClassInfo, ClassInfo.NullClassInfo, JavaClassInfo, JavassistClassInfo

public interface ClassInfo
extends ReflectionInfo

Interface for the class info implementations.

Author:
Jonas Bonér

Nested Class Summary
static class ClassInfo.NullClassInfo
           
 
Method Summary
 ClassInfo getComponentType()
          Returns the component type if array type else null.
 ConstructorInfo getConstructor(int hash)
          Returns a constructor info by its hash.
 ConstructorInfo[] getConstructors()
          Returns the constructors info.
 FieldInfo getField(int hash)
          Returns a field info by its hash.
 FieldInfo[] getFields()
          Returns the fields info.
 ClassInfo[] getInterfaces()
          Returns the interfaces.
 MethodInfo getMethod(int hash)
          Returns a method info by its hash.
 MethodInfo[] getMethods()
          Returns the methods info.
 ClassInfo getSuperClass()
          Returns the super class.
 boolean isArray()
          Is the class an array type.
 boolean isInterface()
          Is the class an interface.
 boolean isPrimitive()
          Is the class a primitive type.
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.ReflectionInfo
getAnnotations, getModifiers, getName
 

Method Detail

getConstructor

public ConstructorInfo getConstructor(int hash)
Returns a constructor info by its hash.

Parameters:
hash -
Returns:

getConstructors

public ConstructorInfo[] getConstructors()
Returns the constructors info.

Returns:
the constructors info

getMethod

public MethodInfo getMethod(int hash)
Returns a method info by its hash.

Parameters:
hash -
Returns:

getMethods

public MethodInfo[] getMethods()
Returns the methods info.

Returns:
the methods info

getField

public FieldInfo getField(int hash)
Returns a field info by its hash.

Parameters:
hash -
Returns:

getFields

public FieldInfo[] getFields()
Returns the fields info.

Returns:
the fields info

getInterfaces

public ClassInfo[] getInterfaces()
Returns the interfaces.

Returns:
the interfaces

getSuperClass

public ClassInfo getSuperClass()
Returns the super class.

Returns:
the super class

getComponentType

public ClassInfo getComponentType()
Returns the component type if array type else null.

Returns:
the component type

isInterface

public boolean isInterface()
Is the class an interface.

Returns:

isPrimitive

public boolean isPrimitive()
Is the class a primitive type.

Returns:

isArray

public boolean isArray()
Is the class an array type.

Returns:


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.