public class Class extends NonStatement
This AST element represents a Java class. Class elements contain other classes (inner classes), fields, and methods.
Note: Currently, class elements are read-only elements and cannot be generated by API users.
Modifier and Type | Method and Description |
---|---|
java.util.List<Field> |
getFields()
This convenience method is used to retrieve the list of fields.
|
java.util.List<Class> |
getInnerClasses()
This convenience method is used to retrieve the list of inner classes.
|
java.util.List<Method> |
getMethods()
This convenience method is used to retrieve the list of methods.
|
java.lang.String |
getType()
Get the class type.
|
static Class |
w(java.lang.Object object)
Internal method, do not use.
|
attachTag, getSubElements, replaceSubElement, retrieveTag
public static Class w(java.lang.Object object)
Internal method, do not use.
object
- opaque Class datapublic java.lang.String getType()
Get the class type.
public java.util.List<Class> getInnerClasses()
This convenience method is used to retrieve the list of inner classes.
public java.util.List<Field> getFields()
This convenience method is used to retrieve the list of fields.
public java.util.List<Method> getMethods()
This convenience method is used to retrieve the list of methods.