public interface Class extends ProgramUnit
| Modifier and Type | Method and Description |
|---|---|
ClassLocator |
getClassLocator()
Returns the class locator that corresponds to this class.
|
Field[] |
getDeclaredFields()
Gets the fields declared by this class.
|
Method[] |
getDeclaredMethods()
Gets the methods declared by this class.
|
Field[] |
getFields()
Gets the fields of this class (including superclass fields).
|
Class[] |
getInterfaces()
Gets all the interfaces implemented by this class.
|
Method[] |
getMethods()
Gets the methods of this class (including superclass
methods).
|
String |
getName()
Gets the class's full name.
|
Class |
getSuperclass()
Gets the superclass of this class.
|
addMetadata, getLocator, getMetadata, getMetadatas, removeMetadataClassLocator getClassLocator()
This method returns exactly the same result as
ProgramUnit.getLocator() but with a more precise
type (ClassLocator instead of
UnitLocator).
ProgramUnit.getLocator()String getName()
Field[] getFields()
Field[] getDeclaredFields()
Method[] getMethods()
Method[] getDeclaredMethods()
Class getSuperclass()
Class[] getInterfaces()
Copyright © 2009–2014 Oracle Corporation. All rights reserved.