Package org.aopalliance.reflect
Interface Class
- All Superinterfaces:
ProgramUnit
This element represents classes in the base program.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class locator that corresponds to this class.Field[]
Gets the fields declared by this class.Method[]
Gets the methods declared by this class.Field[]
Gets the fields of this class (including superclass fields).Class[]
Gets all the interfaces implemented by this class.Method[]
Gets the methods of this class (including superclass methods).getName()
Gets the class's full name.Gets the superclass of this class.Methods inherited from interface org.aopalliance.reflect.ProgramUnit
addMetadata, getLocator, getMetadata, getMetadatas, removeMetadata
-
Method Details
-
getClassLocator
ClassLocator getClassLocator()Returns the class locator that corresponds to this class.This method returns exactly the same result as
ProgramUnit.getLocator()
but with a more precise type (ClassLocator
instead ofUnitLocator
).- See Also:
-
getName
String getName()Gets the class's full name. -
getFields
Field[] getFields()Gets the fields of this class (including superclass fields). -
getDeclaredFields
Field[] getDeclaredFields()Gets the fields declared by this class. -
getMethods
Method[] getMethods()Gets the methods of this class (including superclass methods). -
getDeclaredMethods
Method[] getDeclaredMethods()Gets the methods declared by this class. -
getSuperclass
Class getSuperclass()Gets the superclass of this class. -
getInterfaces
Class[] getInterfaces()Gets all the interfaces implemented by this class.
-