class APClassInfo extends APMetadataInfo implements ClassInfo
Modifier and Type | Field and Description |
---|---|
private javax.lang.model.element.TypeElement |
el |
private boolean |
isSpecial |
private javax.lang.model.type.TypeMirror |
mirror |
processEnv
Constructor and Description |
---|
APClassInfo(javax.annotation.processing.ProcessingEnvironment processEnv,
javax.lang.model.element.TypeElement element) |
APClassInfo(javax.annotation.processing.ProcessingEnvironment processEnv,
javax.lang.model.type.TypeMirror mirror) |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annClass) |
java.util.Collection<MethodInfo> |
getConstructors() |
ClassInfo |
getDeclaringClass() |
java.util.Collection<java.lang.String> |
getEnumConstants() |
java.util.Collection<FieldInfo> |
getFields() |
java.util.Collection<MethodInfo> |
getMethods() |
java.lang.String |
getName() |
java.lang.String |
getPackageName() |
java.lang.String |
getQualifiedName() |
ClassInfo |
getSuperClass() |
boolean |
isAbstract() |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInner() |
boolean |
isPublic() |
boolean |
isStrictFP() |
java.lang.String |
toString() |
getElement
private final javax.lang.model.element.TypeElement el
private final boolean isSpecial
private final javax.lang.model.type.TypeMirror mirror
public APClassInfo(javax.annotation.processing.ProcessingEnvironment processEnv, javax.lang.model.element.TypeElement element)
public APClassInfo(javax.annotation.processing.ProcessingEnvironment processEnv, javax.lang.model.type.TypeMirror mirror)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
getAnnotation
in interface ClassInfo
T
- annotation typeannClass
- annotation classpublic java.util.Collection<MethodInfo> getConstructors()
getConstructors
in interface ClassInfo
public java.lang.String getName()
public java.lang.String getQualifiedName()
getQualifiedName
in interface ClassInfo
public java.util.Collection<FieldInfo> getFields()
public java.util.Collection<MethodInfo> getMethods()
getMethods
in interface ClassInfo
public java.lang.String getPackageName()
getPackageName
in interface ClassInfo
public ClassInfo getSuperClass()
getSuperClass
in interface ClassInfo
public ClassInfo getDeclaringClass()
getDeclaringClass
in interface ClassInfo
public boolean isAbstract()
isAbstract
in interface ClassInfo
public boolean isPublic()
public boolean isStrictFP()
isStrictFP
in interface ClassInfo
public boolean isFinal()
public boolean isInner()
public boolean isEnum()
public java.util.Collection<java.lang.String> getEnumConstants()
getEnumConstants
in interface ClassInfo
public java.lang.String toString()
toString
in class java.lang.Object